
public class CellBrowser extends AbstractCellTree implements ProvidesResize, RequiresResize, HasAnimation
This widget will only work in standards mode, which requires that the HTML page in which it is run have an explicit <!DOCTYPE> declaration.
| Modifier and Type | Class and Description |
|---|---|
static class |
CellBrowser.Builder<T>
Builder object to create CellBrowser.
|
static interface |
CellBrowser.PagerFactory
Pager factory used to create pagers for each
CellList of the
CellBrowser. |
static interface |
CellBrowser.Resources
A ClientBundle that provides images for this widget.
|
static interface |
CellBrowser.Style
Styles used by this widget.
|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabledHasKeyboardSelectionPolicy.KeyboardSelectionPolicyDEBUG_ID_PREFIX| Modifier | Constructor and Description |
|---|---|
protected |
CellBrowser(CellBrowser.Builder<T> builder) |
|
CellBrowser(TreeViewModel viewModel,
T rootValue)
Deprecated.
please use
CellBrowser.Builder |
|
CellBrowser(TreeViewModel viewModel,
T rootValue,
CellBrowser.Resources resources)
Deprecated.
please use
CellBrowser.Builder |
| Modifier and Type | Method and Description |
|---|---|
protected <C> Widget |
createPager(HasData<C> display)
Create a pager to control the list view.
|
int |
getDefaultColumnWidth()
Get the default width of new columns.
|
int |
getMinimumColumnWidth()
Get the minimum width of columns.
|
TreeNode |
getRootTreeNode()
Get the root
TreeNode. |
boolean |
isAnimationEnabled()
Returns true if animations are enabled, false if not.
|
void |
onBrowserEvent(Event event)
Fired whenever a browser event is received.
|
void |
onResize()
This method must be called whenever the implementor's size has been
modified.
|
void |
setAnimationEnabled(boolean enable)
Enable or disable animations.
|
void |
setDefaultColumnWidth(int width)
Set the default width of new columns.
|
void |
setMinimumColumnWidth(int minWidth)
Set the minimum width of columns.
|
addCloseHandler, addOpenHandler, getKeyboardSelectionPolicy, getNodeInfo, getTreeViewModel, isKeyboardSelectionDisabled, isLeaf, setKeyboardSelectionPolicyclaimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onDetach, render, render, resolvePotentialElement, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringfireEventpublic CellBrowser(TreeViewModel viewModel, T rootValue)
CellBrowser.BuilderCellBrowser.T - the type of data in the root nodeviewModel - the TreeViewModel that backs the treerootValue - the hidden root value of the treepublic CellBrowser(TreeViewModel viewModel, T rootValue, CellBrowser.Resources resources)
CellBrowser.BuilderCellBrowser with the specified CellBrowser.Resources.T - the type of data in the root nodeviewModel - the TreeViewModel that backs the treerootValue - the hidden root value of the treeresources - the CellBrowser.Resources used for imagesprotected CellBrowser(CellBrowser.Builder<T> builder)
public int getDefaultColumnWidth()
setDefaultColumnWidth(int)public int getMinimumColumnWidth()
setMinimumColumnWidth(int)public TreeNode getRootTreeNode()
AbstractCellTreeTreeNode.getRootTreeNode in class AbstractCellTreeTreeNode at the root of the treepublic boolean isAnimationEnabled()
HasAnimationisAnimationEnabled in interface HasAnimationpublic void onBrowserEvent(Event event)
EventListeneronBrowserEvent in interface EventListeneronBrowserEvent in class Compositeevent - the event receivedpublic void onResize()
RequiresResizeonResize in interface RequiresResizepublic void setAnimationEnabled(boolean enable)
HasAnimationsetAnimationEnabled in interface HasAnimationenable - true to enable, false to disablepublic void setDefaultColumnWidth(int width)
width - the default width in pixelsgetDefaultColumnWidth()public void setMinimumColumnWidth(int minWidth)
minWidth - the minimum width in pixelsgetMinimumColumnWidth()Copyright © 2018. All rights reserved.