|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.extjs.gxt.ui.client.event.BaseObservable
com.extjs.gxt.ui.client.binder.StoreBinder<TreeStore<M>,Tree,M>
com.extjs.gxt.ui.client.binder.TreeBinder<M>
M - the model typeTreePanel
public class TreeBinder<M extends ModelData>
A StoreBinder implementation for Trees.
| Constructor Summary | |
|---|---|
TreeBinder(Tree tree,
TreeStore<M> store)
Deprecated. Creates a new store binder. |
|
| Method Summary | |
|---|---|
void |
addCheckListener(CheckChangedListener<M> listener)
Deprecated. Adds the check change listener. |
Component |
findItem(M model)
Deprecated. Returns the matching component for the given model. |
java.util.List<M> |
getCheckedSelection()
Deprecated. Returns the current checked selection. |
java.lang.String |
getDisplayProperty()
Deprecated. Returns the display property. |
Tree |
getTree()
Deprecated. Returns the binder's tree. |
TreeStore<M> |
getTreeStore()
Deprecated. Returns the binder's tree store. |
boolean |
isAutoLoad()
Deprecated. Returns true if auto load is enabled. |
boolean |
isCaching()
Deprecated. Returns true if the binder is caching. |
boolean |
isChecked(M model)
Deprecated. Returns true if the model is checked. |
boolean |
isExpandOnFilter()
Deprecated. Returns the if expand all and collapse all is enabled on filter changes. |
void |
removeCheckListener(CheckChangedListener<M> listener)
Deprecated. Removes the check change listener. |
void |
setAutoLoad(boolean autoLoad)
Deprecated. Sets whether all children should automatically be loaded. |
void |
setCaching(boolean caching)
Deprecated. Sets whether the children should be cached after first being retrieved from the store (defaults to true). |
void |
setCheckedSelection(java.util.List<M> selection)
Deprecated. Sets the current checked selection. |
void |
setDisplayProperty(java.lang.String displayProperty)
Deprecated. Sets the display property name used to the item's text. |
void |
setExpandOnFilter(boolean expandOnFilter)
Deprecated. Sets whether the tree should expand all and collapse all when filters are applied (defaults to true). |
| Methods inherited from class com.extjs.gxt.ui.client.binder.StoreBinder |
|---|
addSelectionChangedListener, getSelection, getStore, init, isAutoSelect, isFiltered, isMask, removeSelectionListener, setAutoSelect, setIconProvider, setMask, setSelection, setSelection, setStringProvider, setStyleProvider |
| Methods inherited from class com.extjs.gxt.ui.client.event.BaseObservable |
|---|
addListener, fireEvent, fireEvent, getFiresEvents, getListeners, hasActiveEvent, hasListeners, hasListeners, removeAllListeners, removeListener, setFiresEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TreeBinder(Tree tree,
TreeStore<M> store)
tree - the treestore - the tree store| Method Detail |
|---|
public void addCheckListener(CheckChangedListener<M> listener)
CheckProvider
addCheckListener in interface CheckProvider<M extends ModelData>listener - the listener to be addedpublic Component findItem(M model)
StoreBinder
findItem in class StoreBinder<TreeStore<M extends ModelData>,Tree,M extends ModelData>model - the model
public java.util.List<M> getCheckedSelection()
CheckProvider
getCheckedSelection in interface CheckProvider<M extends ModelData>public java.lang.String getDisplayProperty()
public Tree getTree()
public TreeStore<M> getTreeStore()
public boolean isAutoLoad()
public boolean isCaching()
true if the binder is caching.
public boolean isChecked(M model)
CheckProvider
isChecked in interface CheckProvider<M extends ModelData>model - the model
public boolean isExpandOnFilter()
public void removeCheckListener(CheckChangedListener<M> listener)
CheckProvider
removeCheckListener in interface CheckProvider<M extends ModelData>listener - the listener to be removedpublic void setAutoLoad(boolean autoLoad)
autoLoad - true to auto loadpublic void setCaching(boolean caching)
false, the tree items will
be removed when collapsed.
caching - the caching statepublic void setCheckedSelection(java.util.List<M> selection)
CheckProvider
setCheckedSelection in interface CheckProvider<M extends ModelData>selection - the checked selectionpublic void setDisplayProperty(java.lang.String displayProperty)
displayProperty - the propertypublic void setExpandOnFilter(boolean expandOnFilter)
expandOnFilter - true to expand and collapse on filter changes
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||