public class ComboBoxCell extends AbstractCell
Constructor and Description |
---|
ComboBoxCell() |
Modifier and Type | Method and Description |
---|---|
boolean |
canBeDeactivated()
This method checks whether a cell can be deactivated by a grid or another component
on any input / output event produced outside the cell.
|
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 com.google.gwt.user.client.ui.Widget |
getComboBoxWidget(ComboBox comboBox)
This method returns a widget for the inactive combo box.
|
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.
|
void |
setValue(Object value)
This method sets a cell value.
|
boolean |
valueEqual(Object value)
This method compares values in this cell and in the specified cell.
|
addListeners, displayActive, getColumn, getDefaultBlurHandler, getGrid, getLabel, getRow, getValue, isActive, isDefaultFocusListenerAdded, prepare, removeListeners, setActive, setGrid, setLabel, setPosition
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.public void setValue(Object value)
setValue
in interface GridCell
setValue
in class AbstractCell
value
- is a cell value.public boolean canBeDeactivated()
canBeDeactivated
in interface GridCell
canBeDeactivated
in class AbstractCell
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
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.
protected com.google.gwt.user.client.ui.Widget getComboBoxWidget(ComboBox comboBox)
comboBox
- is a combo box.Copyright © 2008–2013. All rights reserved.