public class ImageCell extends AbstractCell
Image
widgets.Modifier and Type | Field and Description |
---|---|
static String |
SINGLE_IMAGE
one pixel image name
|
Constructor and Description |
---|
ImageCell() |
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 com.google.gwt.user.client.ui.Image |
getImage()
Getter for property 'image'.
|
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 static final String SINGLE_IMAGE
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.Image getImage()
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.