org.cruxframework.crux.widgets.client.maskedlabel
Class MaskedLabel

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by org.cruxframework.crux.widgets.client.maskedlabel.MaskedLabel
All Implemented Interfaces:
com.google.gwt.event.dom.client.HasAllMouseHandlers, com.google.gwt.event.dom.client.HasClickHandlers, com.google.gwt.event.dom.client.HasDoubleClickHandlers, com.google.gwt.event.dom.client.HasMouseDownHandlers, com.google.gwt.event.dom.client.HasMouseMoveHandlers, com.google.gwt.event.dom.client.HasMouseOutHandlers, com.google.gwt.event.dom.client.HasMouseOverHandlers, com.google.gwt.event.dom.client.HasMouseUpHandlers, com.google.gwt.event.dom.client.HasMouseWheelHandlers, com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.i18n.client.HasDirection, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasAutoHorizontalAlignment, com.google.gwt.user.client.ui.HasHorizontalAlignment, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.HasWordWrap, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget, HasFormatter

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

Author:
Thiago da Rosa de Bustamante

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasHorizontalAlignment
com.google.gwt.user.client.ui.HasHorizontalAlignment.AutoHorizontalAlignmentConstant, com.google.gwt.user.client.ui.HasHorizontalAlignment.HorizontalAlignmentConstant
 
Nested classes/interfaces inherited from interface com.google.gwt.i18n.client.HasDirection
com.google.gwt.i18n.client.HasDirection.Direction
 
Field Summary
static String DEFAULT_STYLE_NAME
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Fields inherited from interface com.google.gwt.user.client.ui.HasAutoHorizontalAlignment
ALIGN_CONTENT_END, ALIGN_CONTENT_START
 
Fields inherited from interface com.google.gwt.user.client.ui.HasHorizontalAlignment
ALIGN_CENTER, ALIGN_DEFAULT, ALIGN_JUSTIFY, ALIGN_LEFT, ALIGN_LOCALE_END, ALIGN_LOCALE_START, ALIGN_RIGHT
 
Constructor Summary
MaskedLabel(Formatter formatter)
           
MaskedLabel(com.google.gwt.user.client.ui.Label label, Formatter formatter)
           
 
Method Summary
 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)
           
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, 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, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
 

Field Detail

DEFAULT_STYLE_NAME

public static final String DEFAULT_STYLE_NAME
See Also:
Constant Field Values
Constructor Detail

MaskedLabel

public MaskedLabel(Formatter formatter)
Parameters:
formatter -

MaskedLabel

public MaskedLabel(com.google.gwt.user.client.ui.Label label,
                   Formatter formatter)
Parameters:
label -
formatter -
Method Detail

wrap

public static MaskedLabel wrap(com.google.gwt.dom.client.Element element,
                               Formatter formatter)
Parameters:
element -
formatter -
Returns:

setFormatter

public void setFormatter(Formatter formatter)
Sets a formatter for widget.

Parameters:
formatter -

getFormatter

public Formatter getFormatter()
Specified by:
getFormatter in interface HasFormatter
See Also:
HasFormatter.getFormatter()

getUnformattedValue

public Object getUnformattedValue()
Specified by:
getUnformattedValue in interface HasFormatter
See Also:
HasFormatter.getUnformattedValue()

setUnformattedValue

public void setUnformattedValue(Object value)
Specified by:
setUnformattedValue in interface HasFormatter
See Also:
HasFormatter.setUnformattedValue(java.lang.Object)

getHorizontalAlignment

public com.google.gwt.user.client.ui.HasHorizontalAlignment.HorizontalAlignmentConstant getHorizontalAlignment()
Specified by:
getHorizontalAlignment in interface com.google.gwt.user.client.ui.HasHorizontalAlignment
See Also:
HasHorizontalAlignment.getHorizontalAlignment()

setHorizontalAlignment

public void setHorizontalAlignment(com.google.gwt.user.client.ui.HasHorizontalAlignment.HorizontalAlignmentConstant align)
Specified by:
setHorizontalAlignment in interface com.google.gwt.user.client.ui.HasHorizontalAlignment
See Also:
HasHorizontalAlignment.setHorizontalAlignment(com.google.gwt.user.client.ui.HasHorizontalAlignment.HorizontalAlignmentConstant)

getText

public String getText()
Returns:

getWordWrap

public boolean getWordWrap()
Specified by:
getWordWrap in interface com.google.gwt.user.client.ui.HasWordWrap
See Also:
HasWordWrap.getWordWrap()

setWordWrap

public void setWordWrap(boolean wrap)
Specified by:
setWordWrap in interface com.google.gwt.user.client.ui.HasWordWrap
See Also:
HasWordWrap.setWordWrap(boolean)

getDirection

@Deprecated
public com.google.gwt.i18n.client.HasDirection.Direction getDirection()
Deprecated. 

Specified by:
getDirection in interface com.google.gwt.i18n.client.HasDirection
See Also:
HasDirection.getDirection()

setDirection

@Deprecated
public void setDirection(com.google.gwt.i18n.client.HasDirection.Direction direction)
Deprecated. 

Specified by:
setDirection in interface com.google.gwt.i18n.client.HasDirection
See Also:
HasDirection.setDirection(com.google.gwt.i18n.client.HasDirection.Direction)

addClickHandler

public com.google.gwt.event.shared.HandlerRegistration addClickHandler(com.google.gwt.event.dom.client.ClickHandler handler)
Specified by:
addClickHandler in interface com.google.gwt.event.dom.client.HasClickHandlers
See Also:
HasClickHandlers.addClickHandler(com.google.gwt.event.dom.client.ClickHandler)

addMouseDownHandler

public com.google.gwt.event.shared.HandlerRegistration addMouseDownHandler(com.google.gwt.event.dom.client.MouseDownHandler handler)
Specified by:
addMouseDownHandler in interface com.google.gwt.event.dom.client.HasMouseDownHandlers
See Also:
HasMouseDownHandlers.addMouseDownHandler(com.google.gwt.event.dom.client.MouseDownHandler)

addMouseUpHandler

public com.google.gwt.event.shared.HandlerRegistration addMouseUpHandler(com.google.gwt.event.dom.client.MouseUpHandler handler)
Specified by:
addMouseUpHandler in interface com.google.gwt.event.dom.client.HasMouseUpHandlers
See Also:
HasMouseUpHandlers.addMouseUpHandler(com.google.gwt.event.dom.client.MouseUpHandler)

addMouseOutHandler

public com.google.gwt.event.shared.HandlerRegistration addMouseOutHandler(com.google.gwt.event.dom.client.MouseOutHandler handler)
Specified by:
addMouseOutHandler in interface com.google.gwt.event.dom.client.HasMouseOutHandlers
See Also:
HasMouseOutHandlers.addMouseOutHandler(com.google.gwt.event.dom.client.MouseOutHandler)

addMouseOverHandler

public com.google.gwt.event.shared.HandlerRegistration addMouseOverHandler(com.google.gwt.event.dom.client.MouseOverHandler handler)
Specified by:
addMouseOverHandler in interface com.google.gwt.event.dom.client.HasMouseOverHandlers
See Also:
HasMouseOverHandlers.addMouseOverHandler(com.google.gwt.event.dom.client.MouseOverHandler)

addMouseMoveHandler

public com.google.gwt.event.shared.HandlerRegistration addMouseMoveHandler(com.google.gwt.event.dom.client.MouseMoveHandler handler)
Specified by:
addMouseMoveHandler in interface com.google.gwt.event.dom.client.HasMouseMoveHandlers
See Also:
HasMouseMoveHandlers.addMouseMoveHandler(com.google.gwt.event.dom.client.MouseMoveHandler)

addMouseWheelHandler

public com.google.gwt.event.shared.HandlerRegistration addMouseWheelHandler(com.google.gwt.event.dom.client.MouseWheelHandler handler)
Specified by:
addMouseWheelHandler in interface com.google.gwt.event.dom.client.HasMouseWheelHandlers
See Also:
HasMouseWheelHandlers.addMouseWheelHandler(com.google.gwt.event.dom.client.MouseWheelHandler)

addDoubleClickHandler

public com.google.gwt.event.shared.HandlerRegistration addDoubleClickHandler(com.google.gwt.event.dom.client.DoubleClickHandler handler)
Specified by:
addDoubleClickHandler in interface com.google.gwt.event.dom.client.HasDoubleClickHandlers

getAutoHorizontalAlignment

public com.google.gwt.user.client.ui.HasHorizontalAlignment.AutoHorizontalAlignmentConstant getAutoHorizontalAlignment()
Specified by:
getAutoHorizontalAlignment in interface com.google.gwt.user.client.ui.HasAutoHorizontalAlignment

setAutoHorizontalAlignment

public void setAutoHorizontalAlignment(com.google.gwt.user.client.ui.HasHorizontalAlignment.AutoHorizontalAlignmentConstant autoHorizontalAlignment)
Specified by:
setAutoHorizontalAlignment in interface com.google.gwt.user.client.ui.HasAutoHorizontalAlignment


Copyright © 2014. All rights reserved.