public abstract class AbstractCell extends com.google.gwt.user.client.ui.SimplePanel implements GridCell
All existing cells extend this class.
| Constructor and Description |
|---|
AbstractCell() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addListeners(com.google.gwt.user.client.ui.Widget widget)
This method adds default listeners to the content widget.
|
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 abstract com.google.gwt.user.client.ui.Widget |
createActive()
This method creates an active cell element (content).
|
protected abstract com.google.gwt.user.client.ui.Widget |
createInactive()
This method creates an inactive cell element (content).
|
void |
displayActive(boolean active)
This method shows the cell.
|
int |
getColumn()
This method gets a cell column number.
|
protected com.google.gwt.event.dom.client.BlurHandler |
getDefaultBlurHandler()
Getter for property 'defaultBlurHandler'.
|
com.google.gwt.user.client.ui.FlexTable |
getGrid()
This method gets a grid instance.
|
protected com.google.gwt.user.client.ui.Label |
getLabel()
Getter for property 'label'.
|
int |
getRow()
This method gets a cell row number.
|
Object |
getValue()
This method gets a cell value.
|
boolean |
isActive()
This method checks whether the cell is active.
|
protected boolean |
isDefaultFocusListenerAdded()
Getter for property 'defaultFocusListenerAdded'.
|
protected void |
prepare(com.google.gwt.user.client.ui.Widget widget)
This method prepares a cell before displaying it.
|
protected void |
removeListeners(com.google.gwt.user.client.ui.Widget widget)
This method removes default listeners from the content widget.
|
protected void |
setActive(boolean active)
Setter for property 'active'.
|
void |
setGrid(com.google.gwt.user.client.ui.FlexTable grid)
This method sets the grid instance.
|
protected void |
setLabel(com.google.gwt.user.client.ui.Label label)
Setter for property 'label'.
|
void |
setPosition(int row,
int column)
This method specifies position of the cell in the grid (but doen't add it!).
|
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.
|
add, getContainerElement, getWidget, iterator, remove, setWidget, setWidgetadd, adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEventsaddStyleDependentName, 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, unsinkEventsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNewValue, setFocuspublic Object getValue()
public void setValue(Object value)
public void setPosition(int row,
int column)
setPosition in interface GridCellrow - is a row number.column - is a column number.public int getRow()
public int getColumn()
public com.google.gwt.user.client.ui.FlexTable getGrid()
public void setGrid(com.google.gwt.user.client.ui.FlexTable grid)
public boolean isActive()
public void displayActive(boolean active)
displayActive in interface GridCellactive - is a flag meaning whether the cell must be shown as active.public boolean valueEqual(Object value)
equals
method invocation.valueEqual in interface GridCellvalue - is a value to be compared.true if values are equal.public boolean canBeDeactivated()
canBeDeactivated in interface GridCellprotected abstract com.google.gwt.user.client.ui.Widget createActive()
protected abstract com.google.gwt.user.client.ui.Widget createInactive()
protected void setActive(boolean active)
active - Value to set for property 'active'.protected void prepare(com.google.gwt.user.client.ui.Widget widget)
widget - is a content widget.protected void addListeners(com.google.gwt.user.client.ui.Widget widget)
widget - is a content widget.protected void removeListeners(com.google.gwt.user.client.ui.Widget widget)
widget - is a content widget.protected com.google.gwt.user.client.ui.Label getLabel()
protected void setLabel(com.google.gwt.user.client.ui.Label label)
label - Value to set for property 'label'.protected com.google.gwt.event.dom.client.BlurHandler getDefaultBlurHandler()
protected boolean isDefaultFocusListenerAdded()
Copyright © 2008–2013. All rights reserved.