public class ListCell extends AbstractCell
List
box widgets.Constructor and Description |
---|
ListCell() |
Modifier and Type | Method and Description |
---|---|
protected com.google.gwt.user.client.ui.Widget |
createActive()
This method creates an active cell element (content).
|
protected com.google.gwt.user.client.ui.Widget |
createInactive()
This method creates an inactive cell element (content).
|
protected String |
getLabelText(com.google.gwt.user.client.ui.ListBox listBox)
This method returns a text for the inactive label.
|
protected com.google.gwt.user.client.ui.ListBox |
getListBox()
Getter for property 'listBox'.
|
Object |
getNewValue()
This method returns a new value entered while the cell is active.
|
void |
setFocus(boolean focus)
This method sets focus to the cell.
|
boolean |
valueEqual(Object value)
This method compares values in this cell and in the specified cell.
|
addListeners, canBeDeactivated, displayActive, getColumn, getDefaultBlurHandler, getGrid, getLabel, getRow, getValue, isActive, isDefaultFocusListenerAdded, prepare, removeListeners, setActive, setGrid, setLabel, setPosition, setValue
add, getContainerElement, getWidget, iterator, remove, setWidget, setWidget
add, adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, 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
public boolean valueEqual(Object value)
equals
method invocation.valueEqual
in interface GridCell
valueEqual
in class AbstractCell
value
- is a value to be compared.true
if values are equal.protected com.google.gwt.user.client.ui.Widget createActive()
createActive
in class AbstractCell
protected com.google.gwt.user.client.ui.Widget createInactive()
createInactive
in class AbstractCell
protected com.google.gwt.user.client.ui.ListBox getListBox()
protected String getLabelText(com.google.gwt.user.client.ui.ListBox listBox)
listBox
- is a list box.public void setFocus(boolean focus)
focus
- is a flag meaning whether the focus must be set or lost.public Object getNewValue()
If the cell is passive, it is an equivalent of the GridCell.getValue()
method.
Copyright © 2008–2013. All rights reserved.