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.DebugIdImplEnabled
HasKeyboardSelectionPolicy.KeyboardSelectionPolicy
DEBUG_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, setKeyboardSelectionPolicy
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onDetach, render, render, resolvePotentialElement, setWidget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, 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, toString
fireEvent
@Deprecated public CellBrowser(TreeViewModel viewModel, T rootValue)
CellBrowser.Builder
CellBrowser
.T
- the type of data in the root nodeviewModel
- the TreeViewModel
that backs the treerootValue
- the hidden root value of the tree@Deprecated public CellBrowser(TreeViewModel viewModel, T rootValue, CellBrowser.Resources resources)
CellBrowser.Builder
CellBrowser
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()
AbstractCellTree
TreeNode
.getRootTreeNode
in class AbstractCellTree
TreeNode
at the root of the treepublic boolean isAnimationEnabled()
HasAnimation
isAnimationEnabled
in interface HasAnimation
public void onBrowserEvent(Event event)
EventListener
onBrowserEvent
in interface EventListener
onBrowserEvent
in class Composite
event
- the event receivedpublic void onResize()
RequiresResize
onResize
in interface RequiresResize
public void setAnimationEnabled(boolean enable)
HasAnimation
setAnimationEnabled
in interface HasAnimation
enable
- 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.