|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.extjs.gxt.ui.client.widget.Component
com.extjs.gxt.ui.client.widget.BoxComponent
com.extjs.gxt.ui.client.widget.Container<T>
com.extjs.gxt.ui.client.widget.ScrollContainer<DataListItem>
com.extjs.gxt.ui.client.widget.DataList
ListView
public class DataList
Displays a list of list items.
BaseEvent.setCancelled(boolean)
.BaseEvent.setCancelled(boolean)
.BaseEvent.setCancelled(boolean)
.BaseEvent.setCancelled(boolean)
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
Field Summary | |
---|---|
static Template |
defaultItemTemplate
Deprecated. The default template for data list items. |
protected int |
maxDepth
Deprecated. The max number of parent nodes to search in Container.findItem(Element)
(defaults to 15). |
Fields inherited from class com.extjs.gxt.ui.client.widget.Container |
---|
attachChildren, enableLayout, layoutExecuted, layoutNeeded, layoutOnAttach, layoutOnChange |
Fields inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
---|
adjustSize, cacheSizes, ensureVisibilityOnSizing, height, lastSize, layer, shim, width |
Fields inherited from class com.extjs.gxt.ui.client.widget.Component |
---|
afterRender, attachables, baseStyle, disabled, disabledStyle, disableTextSelection, dummy, focusable, hidden, mask, maskMessage, maskMessageStyleName, monitorWindowResize, rendered, resizeHandler, setElementRender, stateId, swallowEvents, toolTip, windowResizeDelay, windowResizeTask |
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
DataList()
Deprecated. Creates a new single select list. |
Method Summary | |
---|---|
boolean |
add(DataListItem component)
Deprecated. Creates then adds an item to the list. |
DataListItem |
add(java.lang.String text)
Deprecated. Creates then adds an item to the list. |
protected ComponentEvent |
createComponentEvent(com.google.gwt.user.client.Event event)
Deprecated. |
protected ContainerEvent |
createContainerEvent(DataListItem item)
Deprecated. |
protected void |
createStyles(java.lang.String baseStyle)
Deprecated. |
java.util.List<DataListItem> |
getChecked()
Deprecated. Returns an array of checked items. |
Menu |
getContextMenu()
Deprecated. Returns the component's context menu. |
El |
getLayoutTarget()
Deprecated. Returns the container's layout target. |
DataListItem |
getSelectedItem()
Deprecated. Returns the selected item. |
java.util.List<DataListItem> |
getSelectedItems()
Deprecated. Returns the selected items. |
Style.SelectionMode |
getSelectionMode()
Deprecated. |
DataListSelectionModel |
getSelectionModel()
Deprecated. Returns the list's selection model. |
boolean |
insert(DataListItem item,
int index)
Deprecated. Inserts an item into the list at the given index. |
boolean |
isCheckable()
Deprecated. Returns true if check boxes are enabled. |
boolean |
isFlat()
Deprecated. Returns true if the list is using the "flat" style. |
boolean |
isTrackMouseOver()
Deprecated. Returns true if rows are highlighted on mouse over. |
void |
moveSelectedDown()
Deprecated. Moves the current selections down one level. |
void |
moveSelectedUp()
Deprecated. Moves the current selections up one level. |
protected void |
onCheckChange(DataListItem item,
boolean checked)
Deprecated. |
protected void |
onClick(DataListItem item,
DataListEvent dle)
Deprecated. |
void |
onComponentEvent(ComponentEvent ce)
Deprecated. Any events a component receives will be forwarded to this method. |
protected void |
onKeyPress(DataListEvent e)
Deprecated. |
protected void |
onOverChange(DataListItem item,
boolean over,
DataListEvent e)
Deprecated. |
protected void |
onRender(com.google.gwt.user.client.Element target,
int index)
Deprecated. Subclasses must override and ensure setElement is called for lazy rendered components. |
protected void |
onRenderItem(DataListItem item,
com.google.gwt.user.client.Element target,
int index)
Deprecated. |
protected void |
onResize(int width,
int height)
Deprecated. Called after the component is resized, this method is empty by default but can be implemented by any subclass that needs to perform custom logic after a resize occurs. |
void |
onSelectChange(DataListItem item,
boolean select)
Deprecated. Called when the visual state of a item is changed. |
boolean |
remove(DataListItem item)
Deprecated. Removes the item from the list. |
boolean |
remove(DataListItem item,
boolean force)
Deprecated. Removes the item from the list. |
protected void |
renderAll()
Deprecated. |
void |
scrollIntoView(DataListItem item)
Deprecated. Scrolls the item into view. |
void |
setCheckable(boolean checkable)
Deprecated. Sets whether items shoud have a check box (defaults to false, pre-render). |
void |
setContextMenu(Menu menu)
Deprecated. Sets the component's context menu. |
void |
setFlatStyle(boolean flat)
Deprecated. Sets whether the list should use a "flat" style without rounded corners (defaults to false, pre-render). |
void |
setItemTemplate(Template itemTemplate)
Deprecated. Sets the optional template to be used by the data list items (pre-render). |
void |
setSelectedItem(DataListItem item)
Deprecated. Selects the item. |
void |
setSelectedItems(java.util.List<DataListItem> items)
Deprecated. Selects the items. |
void |
setSelectionMode(Style.SelectionMode mode)
Deprecated. Sets the list's selection mode. |
void |
setSelectionModel(DataListSelectionModel sm)
Deprecated. Sets the list's selection model. |
void |
setTrackMouseOver(boolean trackMouseOver)
Deprecated. True to highlight items when the mouse is over (defaults to true). |
void |
sort(java.util.Comparator<DataListItem> comparator)
Deprecated. Sorts the data list. |
Methods inherited from class com.extjs.gxt.ui.client.widget.ScrollContainer |
---|
addScrollListener, afterRender, getHScrollPosition, getScrollMode, getVScrollPosition, removeScrollListener, scrollIntoView, setHScrollPosition, setScrollMode, setVScrollPosition |
Methods inherited from class com.extjs.gxt.ui.client.widget.Container |
---|
adjustIndex, adopt, disable, doAttachChildren, doDetachChildren, doLayout, doLayout, enable, findItem, getItem, getItemByItemId, getItemCount, getItems, getLayout, getWidget, indexOf, isLayoutNeeded, iterator, layout, layout, notifyHide, notifyShow, onAfterLayout, onAttach, onBeforeLayoutExcecuted, onInsert, onLayoutExcecuted, onRemove, orphan, removeAll, removeAll, setLayout, setLayoutNeeded, setLayoutOnChange, wrapWidget |
Methods inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
---|
adjustPosition, adjustSize, getBounds, getHeight, getHeight, getPosition, getPositionEl, getResizeEl, getShadow, getShadowOffset, getShadowPosition, getSize, getWidth, getWidth, hideShadow, hideShim, hideUnders, isAutoHeight, isAutoWidth, isDeferHeight, isShim, onHide, onPosition, onShow, onUnload, setAutoHeight, setAutoWidth, setBounds, setBounds, setDeferHeight, setHeight, setHeight, setPagePosition, setPagePosition, setPixelSize, setPosition, setShadow, setShadowOffset, setShadowPosition, setShim, setSize, setSize, setWidth, setWidth, sync, syncSize |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, setLayoutData |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, removeStyleDependentName, setElement, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static Template defaultItemTemplate
protected int maxDepth
Container.findItem(Element)
(defaults to 15).
Constructor Detail |
---|
public DataList()
Method Detail |
---|
public boolean add(DataListItem component)
add
in class Container<DataListItem>
component
- the dataListItem to addpublic DataListItem add(java.lang.String text)
text
- the item's text
public java.util.List<DataListItem> getChecked()
public Menu getContextMenu()
Component
getContextMenu
in class Component
public El getLayoutTarget()
Container
getLayoutTarget
in class Container<DataListItem>
public DataListItem getSelectedItem()
Selectable
getSelectedItem
in interface Selectable<DataListItem>
public java.util.List<DataListItem> getSelectedItems()
Selectable
getSelectedItems
in interface Selectable<DataListItem>
public Style.SelectionMode getSelectionMode()
public DataListSelectionModel getSelectionModel()
public boolean insert(DataListItem item, int index)
insert
in class Container<DataListItem>
item
- the itemindex
- the insert locationpublic boolean isCheckable()
public boolean isFlat()
public boolean isTrackMouseOver()
public void moveSelectedDown()
public void moveSelectedUp()
public void onComponentEvent(ComponentEvent ce)
Component
Component.onBrowserEvent(com.google.gwt.user.client.Event)
method
should not be overridden or modified.
onComponentEvent
in class ScrollContainer<DataListItem>
ce
- the base eventpublic void onSelectChange(DataListItem item, boolean select)
Selectable
onSelectChange
in interface Selectable<DataListItem>
item
- the itemselect
- the select statepublic boolean remove(DataListItem item)
remove
in class Container<DataListItem>
item
- the item to be removed
public boolean remove(DataListItem item, boolean force)
remove
in class Container<DataListItem>
item
- the item to be removedforce
- true to force
public void scrollIntoView(DataListItem item)
scrollIntoView
in class Container<DataListItem>
item
- the itempublic void setCheckable(boolean checkable)
checkable
- true to enable checboxpublic void setContextMenu(Menu menu)
Component
setContextMenu
in class Component
menu
- the context menupublic void setFlatStyle(boolean flat)
flat
- the flat statepublic void setItemTemplate(Template itemTemplate)
itemTemplate
- the templatepublic void setSelectedItem(DataListItem item)
Selectable
setSelectedItem
in interface Selectable<DataListItem>
item
- the item to selectpublic void setSelectedItems(java.util.List<DataListItem> items)
Selectable
setSelectedItems
in interface Selectable<DataListItem>
items
- the items to selectpublic void setSelectionMode(Style.SelectionMode mode)
mode
- the selection modepublic void setSelectionModel(DataListSelectionModel sm)
sm
- the selection modelpublic void setTrackMouseOver(boolean trackMouseOver)
trackMouseOver
- true to highlight items on mouse overpublic void sort(java.util.Comparator<DataListItem> comparator)
comparator
- the comparatorprotected ComponentEvent createComponentEvent(com.google.gwt.user.client.Event event)
createComponentEvent
in class BoxComponent
protected ContainerEvent createContainerEvent(DataListItem item)
createContainerEvent
in class Container<DataListItem>
protected void createStyles(java.lang.String baseStyle)
createStyles
in class Component
protected void onCheckChange(DataListItem item, boolean checked)
protected void onClick(DataListItem item, DataListEvent dle)
protected void onKeyPress(DataListEvent e)
protected void onOverChange(DataListItem item, boolean over, DataListEvent e)
protected void onRender(com.google.gwt.user.client.Element target, int index)
Component
onRender
in class Component
target
- the target elementindex
- the insert locationprotected void onRenderItem(DataListItem item, com.google.gwt.user.client.Element target, int index)
protected void onResize(int width, int height)
BoxComponent
onResize
in class BoxComponent
width
- the widthheight
- the heightprotected void renderAll()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |