|
|||||||||
| 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<DataViewItem>
com.extjs.gxt.ui.client.widget.DataView
ListView
public class DataView
A mechanism for displaying data using custom layout templates. DataView uses
an Template as its internal templating mechanism.
itemSelector MUST be provided for the DataView to determine what
nodes it will be working with.
BaseEvent.setCancelled(boolean).BaseEvent.setCancelled(boolean).BaseEvent.setCancelled(boolean).
| Nested Class Summary | |
|---|---|
class |
DataView.DataViewSelectionModel
Deprecated. Data view selection model. |
| 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 | |
|---|---|
protected DataView.DataViewSelectionModel |
sm
Deprecated. The view's selection model. |
| 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 | |
|---|---|
DataView()
Deprecated. Creates a new data view. |
|
DataView(Template template)
Deprecated. Creates a new data view with the given template. |
|
| Method Summary | |
|---|---|
boolean |
add(DataViewItem component)
Deprecated. Adds a item to the container. |
protected java.lang.String |
bulkRenderItem(DataViewItem item)
Deprecated. |
protected ComponentEvent |
createComponentEvent(com.google.gwt.user.client.Event event)
Deprecated. |
protected ContainerEvent |
createContainerEvent(DataViewItem item)
Deprecated. |
DataViewBinder<?> |
getBinder()
Deprecated. Returns the view's binder. |
java.lang.String |
getContainerTagName()
Deprecated. Returns the container's tag name. |
Menu |
getContextMenu()
Deprecated. Returns the component's context menu. |
java.lang.String |
getDefaultTemplate()
Deprecated. Returns the default template. |
java.lang.String |
getItemSelector()
Deprecated. Returns the item selector. |
java.lang.String |
getOverStyle()
Deprecated. Returns the over style. |
DataViewItem |
getSelectedItem()
Deprecated. Returns the selected item. |
java.util.List<DataViewItem> |
getSelectedItems()
Deprecated. Returns the selected items. |
Style.SelectionMode |
getSelectionMode()
Deprecated. Returns the view's selection mode. |
DataView.DataViewSelectionModel |
getSelectionModel()
Deprecated. Returns the view's selection model. |
boolean |
getSelectOnOver()
Deprecated. Returns true if select on hover is enabled. |
java.lang.String |
getSelectStyle()
Deprecated. Returns the select style. |
Template |
getTemplate()
Deprecated. Returns the view's template. |
boolean |
insert(DataViewItem item,
int index)
Deprecated. Adds a item into the container. |
void |
onComponentEvent(ComponentEvent ce)
Deprecated. Any events a component receives will be forwarded to this method. |
protected void |
onMouseOut(DataViewItem item)
Deprecated. |
protected void |
onMouseOver(DataViewItem item)
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. |
void |
onSelectChange(DataViewItem item,
boolean select)
Deprecated. Called when the visual state of a item is changed. |
boolean |
remove(DataViewItem component)
Deprecated. Removes the item from the container. |
protected void |
renderAll()
Deprecated. |
protected void |
renderItem(DataViewItem item,
int index)
Deprecated. |
void |
setContainerTagName(java.lang.String containerTagName)
Deprecated. Sets the container's tag name (defaults to 'div', pre-render). |
void |
setContextMenu(Menu menu)
Deprecated. Sets the component's context menu. |
void |
setDefaultTemplate(java.lang.String defaultTemplate)
Deprecated. Sets the default template. |
void |
setItemSelector(java.lang.String itemSelector)
Deprecated. This is a required setting. |
void |
setOverStyle(java.lang.String overStyle)
Deprecated. Sets the style name to be applied on mouse over (defaults to 'x-view-item-over'). |
void |
setSelectedItem(DataViewItem item)
Deprecated. Selects the item. |
void |
setSelectedItems(java.util.List<DataViewItem> items)
Deprecated. Selects the items. |
void |
setSelectionMode(Style.SelectionMode mode)
Deprecated. Sets the list's selection mode. |
protected void |
setSelectionModel(DataView.DataViewSelectionModel sm)
Deprecated. |
void |
setSelectOnOver(boolean selectOnHover)
Deprecated. True to select the item when mousing over a element (defaults to false). |
void |
setSelectStyle(java.lang.String selectStyle)
Deprecated. The style to be applied to each selected item (defaults to 'x-view-item-sel'). |
void |
setStore(ListStore store)
Deprecated. Convenience method that create a new DataViewBinder using the given
store. |
void |
setTemplate(java.lang.String html)
Deprecated. Sets the view's template. |
void |
setTemplate(Template template)
Deprecated. Sets the view's template. |
| 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, getLayoutTarget, getWidget, indexOf, isLayoutNeeded, iterator, layout, layout, notifyHide, notifyShow, onAfterLayout, onAttach, onBeforeLayoutExcecuted, onInsert, onLayoutExcecuted, onRemove, orphan, remove, removeAll, removeAll, scrollIntoView, 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, onResize, 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 |
|---|
addDomHandler, addHandler, 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, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected DataView.DataViewSelectionModel sm
| Constructor Detail |
|---|
public DataView()
public DataView(Template template)
template - the template| Method Detail |
|---|
public boolean add(DataViewItem component)
Container
add in class Container<DataViewItem>component - the item to be addedpublic DataViewBinder<?> getBinder()
setStore(ListStore) is used.
public java.lang.String getContainerTagName()
public Menu getContextMenu()
Component
getContextMenu in class Componentpublic java.lang.String getDefaultTemplate()
public java.lang.String getItemSelector()
public java.lang.String getOverStyle()
public DataViewItem getSelectedItem()
Selectable
getSelectedItem in interface Selectable<DataViewItem>public java.util.List<DataViewItem> getSelectedItems()
Selectable
getSelectedItems in interface Selectable<DataViewItem>public Style.SelectionMode getSelectionMode()
public DataView.DataViewSelectionModel getSelectionModel()
public boolean getSelectOnOver()
public java.lang.String getSelectStyle()
public Template getTemplate()
public boolean insert(DataViewItem item,
int index)
Container
insert in class Container<DataViewItem>item - the item to insertindex - the insert locationpublic void onComponentEvent(ComponentEvent ce)
ComponentComponent.onBrowserEvent(com.google.gwt.user.client.Event) method
should not be overridden or modified.
onComponentEvent in class ScrollContainer<DataViewItem>ce - the base event
public void onSelectChange(DataViewItem item,
boolean select)
Selectable
onSelectChange in interface Selectable<DataViewItem>item - the itemselect - the select statepublic boolean remove(DataViewItem component)
Container
remove in class Container<DataViewItem>component - the item to remove
true if the item was removedpublic void setContainerTagName(java.lang.String containerTagName)
containerTagName - public void setContextMenu(Menu menu)
Component
setContextMenu in class Componentmenu - the context menupublic void setDefaultTemplate(java.lang.String defaultTemplate)
defaultTemplate - the default templatepublic void setItemSelector(java.lang.String itemSelector)
itemSelector - the item selectorpublic void setOverStyle(java.lang.String overStyle)
overStyle - the over stylepublic void setSelectedItem(DataViewItem item)
Selectable
setSelectedItem in interface Selectable<DataViewItem>item - the item to selectpublic void setSelectedItems(java.util.List<DataViewItem> items)
Selectable
setSelectedItems in interface Selectable<DataViewItem>items - the items to selectpublic void setSelectionMode(Style.SelectionMode mode)
mode - the selection modepublic void setSelectOnOver(boolean selectOnHover)
selectOnHover - true to select on mouse overpublic void setSelectStyle(java.lang.String selectStyle)
selectStyle - the select stylepublic void setStore(ListStore store)
DataViewBinder using the given
store.
store - the storepublic void setTemplate(java.lang.String html)
html - the HTML fragmentpublic void setTemplate(Template template)
template - the templateprotected java.lang.String bulkRenderItem(DataViewItem item)
protected ComponentEvent createComponentEvent(com.google.gwt.user.client.Event event)
createComponentEvent in class BoxComponentprotected ContainerEvent createContainerEvent(DataViewItem item)
createContainerEvent in class Container<DataViewItem>protected void onMouseOut(DataViewItem item)
protected void onMouseOver(DataViewItem item)
protected void onRender(com.google.gwt.user.client.Element target,
int index)
Component
onRender in class Componenttarget - the target elementindex - the insert locationprotected void renderAll()
protected void renderItem(DataViewItem item,
int index)
protected void setSelectionModel(DataView.DataViewSelectionModel sm)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||