|
||||||||||
| 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.google.gwt.user.client.ui.Panel
com.tensegrity.wpalo.client.ui.mvc.fasttree.FastMSTree
public class FastMSTree
A standard hierarchical tree widget. The tree contains a hierarchy of
FastMSTreeItems.
Explicitly call FastTree.addDefaultCSS() to include the default style sheet.
| Nested Class Summary | |
|---|---|
static interface |
FastMSTree.DefaultResources
Resources used. |
| 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 int |
ADD
|
static int |
ADDONLY
|
static int |
INTERVAL
|
static int |
SELECT
|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
FastMSTree(boolean ms)
Constructs a tree. |
|
| Method Summary | |
|---|---|
void |
add(com.google.gwt.user.client.ui.Widget widget)
Adds the widget as a root tree item. |
static void |
addDefaultCSS()
Add the default style sheet and images. |
void |
addDoubleClickListener(DoubleClickListener listener)
|
void |
addFocusListener(com.google.gwt.user.client.ui.FocusListener listener)
|
void |
addItem(FastMSTreeItem item)
Adds an item to the root level of this tree. |
FastMSTreeItem |
addItem(java.lang.String itemText)
Adds a simple tree item containing the specified text. |
FastMSTreeItem |
addItem(com.google.gwt.user.client.ui.Widget widget)
Adds a new tree item containing the specified widget. |
void |
addKeyboardListener(com.google.gwt.user.client.ui.KeyboardListener listener)
|
void |
addLoadListener(com.extjs.gxt.ui.client.event.LoadListener listener)
|
void |
addMouseListener(com.google.gwt.user.client.ui.MouseListener listener)
|
void |
addSelectionCountListener(SelectionCountListener l)
|
void |
clear()
Clears all tree items from the current tree. |
void |
collapseAll()
|
void |
deepExpand(java.util.LinkedHashSet<FastMSTreeItem> nodes)
|
void |
deselectTheseItems(java.util.LinkedHashSet<FastMSTreeItem> items)
|
protected void |
doAttachChildren()
|
protected void |
doDetachChildren()
|
void |
ensureItemVisible(FastMSTreeItem item)
|
void |
ensurePathOpen(FastMSTreeItem item)
|
void |
ensureSelectedItemsVisible()
Ensures that the currently-selected item is visible, opening its parents and scrolling the tree as necessary. |
void |
ensureUnselectedItemVisible(FastMSTreeItem item)
|
void |
expandAll()
|
void |
fastAddItem(FastMSTreeItem item)
|
void |
fastSetSelectedItems(java.util.LinkedHashSet<FastMSTreeItem> items)
|
void |
fireSelectionNumberChanged()
|
FastMSTreeItem |
getChild(int index)
Gets the child at the specified index. |
int |
getChildCount()
Gets the number of children contained in this item. |
int |
getChildIndex(FastMSTreeItem child)
Gets the index of the specified child item. |
java.util.ArrayList<FastMSTreeItem> |
getChildren()
|
FastMSTreeItem |
getItem(int index)
Gets the top-level tree item at the specified index. |
int |
getItemCount()
Gets the number of items contained at the root of this tree. |
int |
getNumberOfSelectedItems()
|
FastMSTreeItem |
getRoot()
|
java.util.LinkedHashSet<FastMSTreeItem> |
getSelectedItems()
Gets the currently selected item. |
int |
getTabIndex()
|
int |
getTotalSize()
|
java.util.ArrayList<FastMSTreeItem> |
getVisibleItems()
|
boolean |
isListenToStateChange()
|
java.util.Iterator<com.google.gwt.user.client.ui.Widget> |
iterator()
|
void |
loaded(com.extjs.gxt.ui.client.data.LoadEvent le)
|
boolean |
moveItemDown(FastMSTreeItem item)
|
boolean |
moveItemUp(FastMSTreeItem item)
|
protected void |
moveSelectionBar(FastMSTreeItem item)
Moves the selection bar around the given FastMSTreeItem. |
void |
moveUnselectedFocus(FastMSTreeItem item)
|
void |
onBrowserEvent(com.google.gwt.user.client.Event event)
|
void |
onDeselection(FastMSTreeItem item)
|
protected void |
onLoad()
|
void |
onSelection(FastMSTreeItem item,
boolean fireEvents,
boolean moveFocus,
int mode)
|
protected void |
onUnload()
This method is called immediately before a widget will be detached from the browser's document. |
protected boolean |
processElementClicked(FastMSTreeItem item)
This is called when a valid selectable element is clicked in the tree. |
boolean |
remove(com.google.gwt.user.client.ui.Widget w)
|
void |
removeDoubleClickListener(DoubleClickListener listener)
|
void |
removeFocusListener(com.google.gwt.user.client.ui.FocusListener listener)
|
void |
removeItem(FastMSTreeItem item)
Removes an item from the root level of this tree. |
void |
removeItems()
Removes all items from the root level of this tree. |
void |
removeKeyboardListener(com.google.gwt.user.client.ui.KeyboardListener listener)
|
void |
removeLoadListener(com.extjs.gxt.ui.client.event.LoadListener listener)
|
void |
removeSelectionCountListener(SelectionCountListener l)
|
void |
selectTheseItems(java.util.LinkedHashSet<FastMSTreeItem> items)
|
void |
setAccessKey(char key)
|
void |
setFocus(boolean focus)
|
void |
setListenToStateChange(boolean listen)
|
void |
setMaySelectChildren(boolean childSelect)
|
void |
setSelectedItems(java.util.LinkedHashSet<FastMSTreeItem> items)
Selects a specified item. |
void |
setSelectedItems(java.util.LinkedHashSet<FastMSTreeItem> items,
boolean fireEvents)
Selects a specified item. |
void |
setTabIndex(int index)
|
java.util.Iterator<FastMSTreeItem> |
treeItemIterator()
Iterator of tree items. |
| Methods inherited from class com.google.gwt.user.client.ui.Panel |
|---|
adopt, adopt, disown, orphan |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addDomHandler, addHandler, delegateEvent, fireEvent, getHandlerCount, getParent, isAttached, isOrWasAttached, onAttach, onDetach, removeFromParent, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
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, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int SELECT
public static final int ADD
public static final int INTERVAL
public static final int ADDONLY
| Constructor Detail |
|---|
public FastMSTree(boolean ms)
| Method Detail |
|---|
public void setListenToStateChange(boolean listen)
public boolean isListenToStateChange()
public static void addDefaultCSS()
public void add(com.google.gwt.user.client.ui.Widget widget)
add in interface com.google.gwt.user.client.ui.HasWidgetsadd in class com.google.gwt.user.client.ui.Panelwidget - widget to add.HasWidgets.add(com.google.gwt.user.client.ui.Widget)public void expandAll()
public void collapseAll()
public void deepExpand(java.util.LinkedHashSet<FastMSTreeItem> nodes)
public boolean moveItemUp(FastMSTreeItem item)
public boolean moveItemDown(FastMSTreeItem item)
public int getTotalSize()
public void addFocusListener(com.google.gwt.user.client.ui.FocusListener listener)
addFocusListener in interface com.google.gwt.user.client.ui.SourcesFocusEventspublic void addItem(FastMSTreeItem item)
addItem in interface HasFastMSTreeItemsitem - the item to be addedpublic void fastAddItem(FastMSTreeItem item)
fastAddItem in interface HasFastMSTreeItemspublic FastMSTreeItem addItem(java.lang.String itemText)
addItem in interface HasFastMSTreeItemsitemText - the text of the item to be added
public FastMSTreeItem addItem(com.google.gwt.user.client.ui.Widget widget)
addItem in interface HasFastMSTreeItemswidget - the widget to be added
public void addKeyboardListener(com.google.gwt.user.client.ui.KeyboardListener listener)
addKeyboardListener in interface com.google.gwt.user.client.ui.SourcesKeyboardEventspublic void addMouseListener(com.google.gwt.user.client.ui.MouseListener listener)
public void clear()
clear in interface com.google.gwt.user.client.ui.HasWidgetsclear in class com.google.gwt.user.client.ui.Panelpublic void ensureSelectedItemsVisible()
public void ensurePathOpen(FastMSTreeItem item)
public void ensureUnselectedItemVisible(FastMSTreeItem item)
public void ensureItemVisible(FastMSTreeItem item)
public FastMSTreeItem getChild(int index)
HasFastMSTreeItems
getChild in interface HasFastMSTreeItemsindex - the index to be retrieved
public int getChildCount()
HasFastMSTreeItems
getChildCount in interface HasFastMSTreeItemspublic java.util.ArrayList<FastMSTreeItem> getChildren()
public int getChildIndex(FastMSTreeItem child)
HasFastMSTreeItems
getChildIndex in interface HasFastMSTreeItemschild - the child item to be found
-1 if none is foundpublic FastMSTreeItem getItem(int index)
index - the index to be retrieved
public int getItemCount()
public java.util.LinkedHashSet<FastMSTreeItem> getSelectedItems()
public int getNumberOfSelectedItems()
public void addSelectionCountListener(SelectionCountListener l)
public void removeSelectionCountListener(SelectionCountListener l)
public final void fireSelectionNumberChanged()
public int getTabIndex()
getTabIndex in interface com.google.gwt.user.client.ui.Focusablepublic java.util.Iterator<com.google.gwt.user.client.ui.Widget> iterator()
iterator in interface com.google.gwt.user.client.ui.HasWidgetsiterator in interface java.lang.Iterable<com.google.gwt.user.client.ui.Widget>public void onBrowserEvent(com.google.gwt.user.client.Event event)
onBrowserEvent in interface com.google.gwt.user.client.EventListeneronBrowserEvent in class com.google.gwt.user.client.ui.Widgetpublic void addDoubleClickListener(DoubleClickListener listener)
public void removeDoubleClickListener(DoubleClickListener listener)
public boolean remove(com.google.gwt.user.client.ui.Widget w)
remove in interface com.google.gwt.user.client.ui.HasWidgetsremove in class com.google.gwt.user.client.ui.Panelpublic void removeFocusListener(com.google.gwt.user.client.ui.FocusListener listener)
removeFocusListener in interface com.google.gwt.user.client.ui.SourcesFocusEventspublic void removeItem(FastMSTreeItem item)
removeItem in interface HasFastMSTreeItemsitem - the item to be removedpublic void removeItems()
public void removeKeyboardListener(com.google.gwt.user.client.ui.KeyboardListener listener)
removeKeyboardListener in interface com.google.gwt.user.client.ui.SourcesKeyboardEventspublic void setAccessKey(char key)
setAccessKey in interface com.google.gwt.user.client.ui.Focusablepublic void setFocus(boolean focus)
setFocus in interface com.google.gwt.user.client.ui.Focusablepublic void setSelectedItems(java.util.LinkedHashSet<FastMSTreeItem> items)
item - the item to be selected, or null to deselect all
itemspublic void fastSetSelectedItems(java.util.LinkedHashSet<FastMSTreeItem> items)
public void setSelectedItems(java.util.LinkedHashSet<FastMSTreeItem> items,
boolean fireEvents)
item - the item to be selected, or null to deselect all
itemsfireEvents - true to allow selection events to be firedpublic void setTabIndex(int index)
setTabIndex in interface com.google.gwt.user.client.ui.Focusablepublic java.util.Iterator<FastMSTreeItem> treeItemIterator()
protected void doAttachChildren()
doAttachChildren in class com.google.gwt.user.client.ui.Panelprotected void doDetachChildren()
doDetachChildren in class com.google.gwt.user.client.ui.Panelpublic FastMSTreeItem getRoot()
protected void moveSelectionBar(FastMSTreeItem item)
FastMSTreeItem.
item - the item to move selection bar toprotected void onLoad()
onLoad in class com.google.gwt.user.client.ui.Panelpublic void onDeselection(FastMSTreeItem item)
public void selectTheseItems(java.util.LinkedHashSet<FastMSTreeItem> items)
public void deselectTheseItems(java.util.LinkedHashSet<FastMSTreeItem> items)
public void setMaySelectChildren(boolean childSelect)
public void onSelection(FastMSTreeItem item,
boolean fireEvents,
boolean moveFocus,
int mode)
protected void onUnload()
onUnload in class com.google.gwt.user.client.ui.Panelprotected boolean processElementClicked(FastMSTreeItem item)
public void moveUnselectedFocus(FastMSTreeItem item)
public void addLoadListener(com.extjs.gxt.ui.client.event.LoadListener listener)
public void removeLoadListener(com.extjs.gxt.ui.client.event.LoadListener listener)
public void loaded(com.extjs.gxt.ui.client.data.LoadEvent le)
public java.util.ArrayList<FastMSTreeItem> getVisibleItems()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||