public class UneditableInput extends InlineLabel implements HasAlternateSize, IsSearchQuery, HasSize, HasId, HasStyle, IsResponsive
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
HasDirection.Direction
HasHorizontalAlignment.AutoHorizontalAlignmentConstant, HasHorizontalAlignment.HorizontalAlignmentConstant
DEFAULT_DIRECTION_ESTIMATOR
DEBUG_ID_PREFIX
ALIGN_CONTENT_END, ALIGN_CONTENT_START
ALIGN_CENTER, ALIGN_DEFAULT, ALIGN_JUSTIFY, ALIGN_LEFT, ALIGN_LOCALE_END, ALIGN_LOCALE_START, ALIGN_RIGHT
Modifier | Constructor and Description |
---|---|
|
UneditableInput()
Creates an empty widget.
|
protected |
UneditableInput(Element element)
This constructor may be used by subclasses to explicitly use an existing
element.
|
|
UneditableInput(String text)
Creates a widget with the specified text.
|
|
UneditableInput(String text,
DirectionEstimator directionEstimator)
Creates a label with the specified text and a default direction
estimator.
|
|
UneditableInput(String text,
HasDirection.Direction dir)
Creates a label with the specified text and direction.
|
Modifier and Type | Method and Description |
---|---|
void |
addStyle(Style style)
Adds the provided style to the widget.
|
String |
getId()
Get ID
|
boolean |
isSearchQuery()
is the element search-query style?
|
void |
removeStyle(Style style)
Removes the provided style from the widget.
|
void |
setAlternateSize(AlternateSize size) |
void |
setHideOn(Device device)
Sets the kind of device, this widget is hidden on.
|
void |
setId(String id)
Set ID
|
void |
setSearchQuery(boolean searchQuery)
Set search-query style to the element.
|
void |
setShowOn(Device device)
Sets the kind of device, this widget is shown on.
|
void |
setSize(int size)
Sets the widget's size.
|
void |
setStyle(Style style)
Replaces the widet's style with the provided one.
|
wrap
addClickHandler, addClickListener, addDoubleClickHandler, addDragEndHandler, addDragEnterHandler, addDragHandler, addDragLeaveHandler, addDragOverHandler, addDragStartHandler, addDropHandler, addGestureChangeHandler, addGestureEndHandler, addGestureStartHandler, addMouseDownHandler, addMouseListener, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseUpHandler, addMouseWheelHandler, addMouseWheelListener, addTouchCancelHandler, addTouchEndHandler, addTouchMoveHandler, addTouchStartHandler, asEditor, getDirection, getText, getTextDirection, removeClickListener, removeMouseListener, removeMouseWheelListener, setDirection, setText, setText
getAutoHorizontalAlignment, getDirectionEstimator, getHorizontalAlignment, getWordWrap, setAutoHorizontalAlignment, setDirectionEstimator, setDirectionEstimator, setHorizontalAlignment, setWordWrap, updateHorizontalAlignment
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
fireEvent
public UneditableInput()
protected UneditableInput(Element element)
element
- the element to be usedpublic UneditableInput(String text, HasDirection.Direction dir)
text
- the new label's textdir
- the text's direction. Note: Direction.DEFAULT
means
direction should be inherited from the widget's parent
element.public UneditableInput(String text, DirectionEstimator directionEstimator)
text
- the new label's textdirectionEstimator
- A DirectionEstimator object used for automatic direction
adjustment. For convenience,
Label.DEFAULT_DIRECTION_ESTIMATOR
can be used.public UneditableInput(String text)
text
- the new widget's textpublic void setSearchQuery(boolean searchQuery)
setSearchQuery
in interface IsSearchQuery
searchQuery
- true:add search-query css-class/false:remove search-query css-classpublic boolean isSearchQuery()
isSearchQuery
in interface IsSearchQuery
public void setAlternateSize(AlternateSize size)
setAlternateSize
in interface HasAlternateSize
public void setSize(int size)
setSize
in interface HasSize
size
- the size of the widget in the Bootstrap grid systempublic void setShowOn(Device device)
The widget is not shown on any other device.
Only works if responsive design is turned on!
setShowOn
in interface IsResponsive
Configurator.hasResponsiveDesign()
,
IsResponsive.setHideOn(Device)
public void setHideOn(Device device)
The widget is not hidden on any other device.
Only works if responsive design is turned on!
setHideOn
in interface IsResponsive
Configurator.hasResponsiveDesign()
,
IsResponsive.setShowOn(Device)
public void removeStyle(Style style)
removeStyle
in interface HasStyle
style
- the style to be removed from the Widget.Copyright © 2012-2014 gwtbootstrap. All Rights Reserved.