C
- Decorated Cell Parameterpublic class TooltipCellDecorator<C> extends Object implements Cell<C>, IsAnimated, HasTrigger, HasPlacement, HasText, HasShowDelay
Cell.Context
Modifier and Type | Field and Description |
---|---|
protected boolean |
animated
Whether the widget is animated or not.
|
protected String |
container
Appends the popover to a specific element.
|
protected int |
hideDelayInMilliseconds
The delay until the widget is hidden.
|
protected Placement |
placement
The placement of the widget relative to its trigger element.
|
protected int |
showDelayInMilliseconds
The delay until the widget is shown.
|
protected Trigger |
trigger
The action that triggers the widget.
|
Constructor and Description |
---|
TooltipCellDecorator(Cell<C> cell)
Create Decorator cell
|
Modifier and Type | Method and Description |
---|---|
boolean |
dependsOnSelection() |
boolean |
getAnimation()
Gets whether the widget is animated.
|
protected boolean |
getAnimation(Cell.Context context,
C value) |
Set<String> |
getConsumedEvents() |
String |
getContainer() |
int |
getHideDelay()
Gets the time to wait until the widget is hidden.
|
protected int |
getHideDelay(Cell.Context context,
C value) |
Placement |
getPlacement()
Gets the widget's placement.
|
protected Placement |
getPlacement(Cell.Context context,
C value) |
int |
getShowDelay()
Gets the time to wait until the widget is shown.
|
protected int |
getShowDelay(Cell.Context context,
C value) |
String |
getText() |
protected String |
getTooltipText(Cell.Context context,
C value) |
Trigger |
getTrigger()
Gets the widget's Trigger.
|
protected Trigger |
getTrigger(Cell.Context context,
C value) |
boolean |
handlesSelection() |
boolean |
isEditing(Cell.Context context,
Element parent,
C value) |
void |
onBrowserEvent(Cell.Context context,
Element parent,
C value,
NativeEvent event,
ValueUpdater<C> valueUpdater) |
void |
render(Cell.Context context,
C value,
SafeHtmlBuilder sb) |
boolean |
resetFocus(Cell.Context context,
Element parent,
C value) |
void |
setAnimation(boolean animated)
Sets whether the Widget should be animated.
|
void |
setContainer(String container)
Set specific element the Popover/Tooltip is appended to
|
void |
setHideDelay(int delayInMilliseconds)
Sets the time to wait until the widget is hidden.
|
void |
setPlacement(Placement placement)
Sets the widget's placement.
|
void |
setShowDelay(int delayInMilliseconds)
Sets the time to wait until the widget is shown.
|
void |
setText(String text) |
void |
setTrigger(Trigger trigger)
Sets the trigger that activates the widget.
|
void |
setValue(Cell.Context context,
Element parent,
C value) |
protected boolean animated
protected Placement placement
protected int showDelayInMilliseconds
protected int hideDelayInMilliseconds
public TooltipCellDecorator(Cell<C> cell)
cell
- decorated cellpublic boolean dependsOnSelection()
dependsOnSelection
in interface Cell<C>
public Set<String> getConsumedEvents()
getConsumedEvents
in interface Cell<C>
public boolean handlesSelection()
handlesSelection
in interface Cell<C>
public boolean isEditing(Cell.Context context, Element parent, C value)
public void onBrowserEvent(Cell.Context context, Element parent, C value, NativeEvent event, ValueUpdater<C> valueUpdater)
onBrowserEvent
in interface Cell<C>
public void render(Cell.Context context, C value, SafeHtmlBuilder sb)
public boolean resetFocus(Cell.Context context, Element parent, C value)
resetFocus
in interface Cell<C>
public void setValue(Cell.Context context, Element parent, C value)
public void setAnimation(boolean animated)
setAnimation
in interface IsAnimated
animated
- true
if the widget should be animated.public boolean getAnimation()
getAnimation
in interface IsAnimated
true
if the widget is animatedprotected boolean getAnimation(Cell.Context context, C value)
public void setPlacement(Placement placement)
setPlacement
in interface HasPlacement
placement
- the placementpublic Placement getPlacement()
getPlacement
in interface HasPlacement
protected Placement getPlacement(Cell.Context context, C value)
public void setTrigger(Trigger trigger)
setTrigger
in interface HasTrigger
trigger
- the triggerpublic Trigger getTrigger()
getTrigger
in interface HasTrigger
protected Trigger getTrigger(Cell.Context context, C value)
public void setShowDelay(int delayInMilliseconds)
setShowDelay
in interface HasShowDelay
delayInMilliseconds
- the delay in millisecondspublic int getShowDelay()
getShowDelay
in interface HasShowDelay
protected int getShowDelay(Cell.Context context, C value)
public void setHideDelay(int delayInMilliseconds)
setHideDelay
in interface HasShowDelay
delayInMilliseconds
- the delay in millisecondspublic int getHideDelay()
getHideDelay
in interface HasShowDelay
protected int getHideDelay(Cell.Context context, C value)
protected String getTooltipText(Cell.Context context, C value)
public String getContainer()
public void setContainer(String container)
container
- Specific element the Popover/Tooltip is appended to. E.g. 'body' or null.Copyright © 2012-2014 gwtbootstrap. All Rights Reserved.