public class HeaderCellImpl extends AbstractCell implements HeaderCell
Modifier and Type | Class and Description |
---|---|
protected class |
HeaderCellImpl.SortHandler
This handler is invoked on sort event.
|
Modifier and Type | Field and Description |
---|---|
static String |
SINGLE_IMAGE
one pixel image name
|
Constructor and Description |
---|
HeaderCellImpl() |
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.
|
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).
|
void |
displayActive(boolean active)
This method shows the cell.
|
protected com.google.gwt.user.client.ui.FlexTable |
getDockPanel()
Getter for property 'dockPanel'.
|
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.
|
boolean |
isAscending()
This method checks whether the column is sorted ascending.
|
protected boolean |
isInitialized()
Getter for property 'initialized'.
|
boolean |
isSortable()
This method checks whether the column is sortable.
|
boolean |
isSorted()
This method checks whether the column is sorted.
|
protected void |
prepare(com.google.gwt.user.client.ui.Widget widget)
This method prepares a cell before displaying it.
|
void |
setAscending(boolean ascending)
This method sets asceding sort flag value.
|
void |
setFocus(boolean focus)
This method sets focus to the cell.
|
void |
setSortable(boolean sortable)
This method sets sortable flag value.
|
void |
setSorted(boolean sorted)
This method sets sorted flag value.
|
void |
sort()
This method changes the current sort order or sets the current column as sorted.
|
canBeDeactivated, getColumn, getDefaultBlurHandler, getGrid, getLabel, getRow, getValue, isActive, isDefaultFocusListenerAdded, removeListeners, setActive, setGrid, setLabel, setPosition, setValue, valueEqual
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canBeDeactivated, getColumn, getGrid, getRow, getValue, isActive, setGrid, setPosition, setValue, valueEqual
public static final String SINGLE_IMAGE
public void displayActive(boolean active)
displayActive
in interface GridCell
displayActive
in class AbstractCell
active
- is a flag meaning whether the cell must be shown as active.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 void addListeners(com.google.gwt.user.client.ui.Widget widget)
addListeners
in class AbstractCell
widget
- is a content widget.protected void prepare(com.google.gwt.user.client.ui.Widget widget)
prepare
in class AbstractCell
widget
- is a content widget.public void setFocus(boolean focus)
public Object getNewValue()
If the cell is passive, it is an equivalent of the GridCell.getValue()
method.
getNewValue
in interface GridCell
public void setSortable(boolean sortable)
setSortable
in interface HeaderCell
sortable
- is a sortable flag value.public void setAscending(boolean ascending)
setAscending
in interface HeaderCell
ascending
- is an ascending sort value.public void setSorted(boolean sorted)
setSorted
in interface HeaderCell
sorted
- is a sorted flag value.public boolean isAscending()
isAscending
in interface HeaderCell
true
if the sort order is ascending.public boolean isSortable()
isSortable
in interface HeaderCell
true
if the column is sortable.public boolean isSorted()
isSorted
in interface HeaderCell
true
if the column is sorted.public void sort()
sort
in interface HeaderCell
protected com.google.gwt.user.client.ui.FlexTable getDockPanel()
protected com.google.gwt.user.client.ui.Image getImage()
protected boolean isInitialized()
Copyright © 2008–2013. All rights reserved.