public class MaskedLabel extends com.google.gwt.user.client.ui.Composite implements HasFormatter, com.google.gwt.user.client.ui.HasAutoHorizontalAlignment, com.google.gwt.user.client.ui.HasWordWrap, com.google.gwt.i18n.client.HasDirection, com.google.gwt.event.dom.client.HasClickHandlers, com.google.gwt.event.dom.client.HasAllMouseHandlers, com.google.gwt.event.dom.client.HasDoubleClickHandlers
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_STYLE_NAME |
| Constructor and Description |
|---|
MaskedLabel(Formatter formatter) |
MaskedLabel(com.google.gwt.user.client.ui.Label label,
Formatter formatter) |
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addClickHandler(com.google.gwt.event.dom.client.ClickHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addDoubleClickHandler(com.google.gwt.event.dom.client.DoubleClickHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addMouseDownHandler(com.google.gwt.event.dom.client.MouseDownHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addMouseMoveHandler(com.google.gwt.event.dom.client.MouseMoveHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addMouseOutHandler(com.google.gwt.event.dom.client.MouseOutHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addMouseOverHandler(com.google.gwt.event.dom.client.MouseOverHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addMouseUpHandler(com.google.gwt.event.dom.client.MouseUpHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addMouseWheelHandler(com.google.gwt.event.dom.client.MouseWheelHandler handler) |
com.google.gwt.user.client.ui.HasHorizontalAlignment.AutoHorizontalAlignmentConstant |
getAutoHorizontalAlignment() |
com.google.gwt.i18n.client.HasDirection.Direction |
getDirection()
Deprecated.
|
Formatter |
getFormatter() |
com.google.gwt.user.client.ui.HasHorizontalAlignment.HorizontalAlignmentConstant |
getHorizontalAlignment() |
String |
getText() |
Object |
getUnformattedValue() |
boolean |
getWordWrap() |
void |
setAutoHorizontalAlignment(com.google.gwt.user.client.ui.HasHorizontalAlignment.AutoHorizontalAlignmentConstant autoHorizontalAlignment) |
void |
setDirection(com.google.gwt.i18n.client.HasDirection.Direction direction)
Deprecated.
|
void |
setFormatter(Formatter formatter)
Sets a formatter for widget.
|
void |
setHorizontalAlignment(com.google.gwt.user.client.ui.HasHorizontalAlignment.HorizontalAlignmentConstant align) |
void |
setUnformattedValue(Object value) |
void |
setWordWrap(boolean wrap) |
static MaskedLabel |
wrap(com.google.gwt.dom.client.Element element,
Formatter formatter) |
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringpublic static final String DEFAULT_STYLE_NAME
public MaskedLabel(Formatter formatter)
formatter - public MaskedLabel(com.google.gwt.user.client.ui.Label label,
Formatter formatter)
label - formatter - public static MaskedLabel wrap(com.google.gwt.dom.client.Element element, Formatter formatter)
element - formatter - public void setFormatter(Formatter formatter)
formatter - public Formatter getFormatter()
getFormatter in interface HasFormatterHasFormatter.getFormatter()public Object getUnformattedValue()
getUnformattedValue in interface HasFormatterHasFormatter.getUnformattedValue()public void setUnformattedValue(Object value)
setUnformattedValue in interface HasFormatterHasFormatter.setUnformattedValue(java.lang.Object)public com.google.gwt.user.client.ui.HasHorizontalAlignment.HorizontalAlignmentConstant getHorizontalAlignment()
getHorizontalAlignment in interface com.google.gwt.user.client.ui.HasHorizontalAlignmentHasHorizontalAlignment.getHorizontalAlignment()public void setHorizontalAlignment(com.google.gwt.user.client.ui.HasHorizontalAlignment.HorizontalAlignmentConstant align)
setHorizontalAlignment in interface com.google.gwt.user.client.ui.HasHorizontalAlignmentHasHorizontalAlignment.setHorizontalAlignment(com.google.gwt.user.client.ui.HasHorizontalAlignment.HorizontalAlignmentConstant)public String getText()
public boolean getWordWrap()
getWordWrap in interface com.google.gwt.user.client.ui.HasWordWrapHasWordWrap.getWordWrap()public void setWordWrap(boolean wrap)
setWordWrap in interface com.google.gwt.user.client.ui.HasWordWrapHasWordWrap.setWordWrap(boolean)@Deprecated public com.google.gwt.i18n.client.HasDirection.Direction getDirection()
getDirection in interface com.google.gwt.i18n.client.HasDirectionHasDirection.getDirection()@Deprecated public void setDirection(com.google.gwt.i18n.client.HasDirection.Direction direction)
setDirection in interface com.google.gwt.i18n.client.HasDirectionHasDirection.setDirection(com.google.gwt.i18n.client.HasDirection.Direction)public com.google.gwt.event.shared.HandlerRegistration addClickHandler(com.google.gwt.event.dom.client.ClickHandler handler)
addClickHandler in interface com.google.gwt.event.dom.client.HasClickHandlersHasClickHandlers.addClickHandler(com.google.gwt.event.dom.client.ClickHandler)public com.google.gwt.event.shared.HandlerRegistration addMouseDownHandler(com.google.gwt.event.dom.client.MouseDownHandler handler)
addMouseDownHandler in interface com.google.gwt.event.dom.client.HasMouseDownHandlersHasMouseDownHandlers.addMouseDownHandler(com.google.gwt.event.dom.client.MouseDownHandler)public com.google.gwt.event.shared.HandlerRegistration addMouseUpHandler(com.google.gwt.event.dom.client.MouseUpHandler handler)
addMouseUpHandler in interface com.google.gwt.event.dom.client.HasMouseUpHandlersHasMouseUpHandlers.addMouseUpHandler(com.google.gwt.event.dom.client.MouseUpHandler)public com.google.gwt.event.shared.HandlerRegistration addMouseOutHandler(com.google.gwt.event.dom.client.MouseOutHandler handler)
addMouseOutHandler in interface com.google.gwt.event.dom.client.HasMouseOutHandlersHasMouseOutHandlers.addMouseOutHandler(com.google.gwt.event.dom.client.MouseOutHandler)public com.google.gwt.event.shared.HandlerRegistration addMouseOverHandler(com.google.gwt.event.dom.client.MouseOverHandler handler)
addMouseOverHandler in interface com.google.gwt.event.dom.client.HasMouseOverHandlersHasMouseOverHandlers.addMouseOverHandler(com.google.gwt.event.dom.client.MouseOverHandler)public com.google.gwt.event.shared.HandlerRegistration addMouseMoveHandler(com.google.gwt.event.dom.client.MouseMoveHandler handler)
addMouseMoveHandler in interface com.google.gwt.event.dom.client.HasMouseMoveHandlersHasMouseMoveHandlers.addMouseMoveHandler(com.google.gwt.event.dom.client.MouseMoveHandler)public com.google.gwt.event.shared.HandlerRegistration addMouseWheelHandler(com.google.gwt.event.dom.client.MouseWheelHandler handler)
addMouseWheelHandler in interface com.google.gwt.event.dom.client.HasMouseWheelHandlersHasMouseWheelHandlers.addMouseWheelHandler(com.google.gwt.event.dom.client.MouseWheelHandler)public com.google.gwt.event.shared.HandlerRegistration addDoubleClickHandler(com.google.gwt.event.dom.client.DoubleClickHandler handler)
addDoubleClickHandler in interface com.google.gwt.event.dom.client.HasDoubleClickHandlerspublic com.google.gwt.user.client.ui.HasHorizontalAlignment.AutoHorizontalAlignmentConstant getAutoHorizontalAlignment()
getAutoHorizontalAlignment in interface com.google.gwt.user.client.ui.HasAutoHorizontalAlignmentpublic void setAutoHorizontalAlignment(com.google.gwt.user.client.ui.HasHorizontalAlignment.AutoHorizontalAlignmentConstant autoHorizontalAlignment)
setAutoHorizontalAlignment in interface com.google.gwt.user.client.ui.HasAutoHorizontalAlignmentCopyright © 2014. All rights reserved.