|
||||||||||
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.tensegrity.wpalo.client.ui.mvc.fasttree.FastMSTreeItem
public class FastMSTreeItem
An item that can be contained within a
FastTree
.
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 |
---|
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
FastMSTreeItem()
Creates an empty tree item. |
|
FastMSTreeItem(java.lang.String html)
Constructs a tree item with the given HTML. |
|
FastMSTreeItem(com.google.gwt.user.client.ui.Widget widget)
Constructs a tree item with the given Widget . |
Method Summary | |
---|---|
void |
addItem(FastMSTreeItem item)
Adds another item as a child to this one. |
FastMSTreeItem |
addItem(java.lang.String itemText)
Adds a child tree item containing the specified text. |
FastMSTreeItem |
addItem(com.google.gwt.user.client.ui.Widget widget)
Adds a child tree item containing the specified widget. |
protected void |
afterClose()
Called after the tree item is closed. |
protected void |
afterOpen()
Called after the tree item is opened. |
void |
becomeInteriorNode()
Become an interior node. |
protected void |
beforeClose()
Called before the tree item is closed. |
protected void |
beforeOpen()
Called before the tree item is opened. |
protected boolean |
beforeSelectionLost()
Called when tree item is being unselected. |
void |
collapseAll()
|
protected void |
ensureChildren()
Fired when a tree item receives a request to open for the first time. |
void |
expandAll()
|
void |
fastAddItem(FastMSTreeItem item)
|
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()
|
int |
getControlImageWidth()
Returns the width of the control open/close image. |
int |
getDepth()
|
com.tensegrity.palo.gwt.core.client.models.palo.XElementNode |
getElementNode()
|
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> |
getFinishHandler()
|
protected com.google.gwt.user.client.ui.HasFocus |
getFocusableWidget()
Returns the widget, if any, that should be focused on if this TreeItem is selected. |
com.google.gwt.user.client.ui.HTML |
getHtml()
|
java.lang.String |
getHTML()
|
TreeNode |
getModel()
|
FastMSTreeItem |
getParentItem()
Gets this item's parent. |
java.lang.String |
getText()
|
int |
getTotalSize()
|
FastMSTree |
getTree()
Gets the tree that contains this item. |
com.google.gwt.user.client.ui.Widget |
getWidget()
Gets the Widget associated with this tree item. |
XObjectModel |
getXObjectModel()
|
boolean |
hasBeenOpened()
Has this FastMSTreeItem ever been opened? |
boolean |
isInteriorNode()
Does this FastMSTreeItem represent an interior node? |
boolean |
isLeafNode()
Is this FastMSTreeItem a leaf node? |
boolean |
isOpen()
Is the FastMSTreeItem open? Returns false if the FastMSTreeItem
is closed or a leaf node. |
boolean |
isSelected()
Determines whether this item is currently selected. |
boolean |
isShowing()
Returns whether the tree is currently showing this FastMSTreeItem . |
boolean |
moveItemDown(FastMSTreeItem item)
|
boolean |
moveItemUp(FastMSTreeItem item)
|
protected void |
onSelected()
Called when a tree item is selected. |
void |
remove()
Removes this item from its tree. |
void |
removeItem(FastMSTreeItem item)
Removes an item from the tree. |
void |
removeItems()
Removes all of this item's children. |
void |
setElementNode(com.tensegrity.palo.gwt.core.client.models.palo.XElementNode nd)
|
void |
setFinishHandler(com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> finishHandler)
|
void |
setHTML(java.lang.String html)
|
void |
setModel(TreeNode node)
|
void |
setState(boolean open)
Sets whether this item's children are displayed. |
void |
setState(boolean open,
boolean fireEvents)
Sets whether this item's children are displayed. |
void |
setText(java.lang.String text)
|
void |
setWidget(com.google.gwt.user.client.ui.Widget widget)
|
void |
setXObjectModel(XObjectModel model)
|
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, sinkEvents, toString, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FastMSTreeItem()
public FastMSTreeItem(java.lang.String html)
html
- the item's HTMLpublic FastMSTreeItem(com.google.gwt.user.client.ui.Widget widget)
Widget
.
widget
- the item's widgetMethod Detail |
---|
public com.google.gwt.user.client.ui.HTML getHtml()
public void setFinishHandler(com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> finishHandler)
public com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> getFinishHandler()
public void setModel(TreeNode node)
public TreeNode getModel()
public void setXObjectModel(XObjectModel model)
public XObjectModel getXObjectModel()
public int getDepth()
public void fastAddItem(FastMSTreeItem item)
fastAddItem
in interface HasFastMSTreeItems
public void addItem(FastMSTreeItem item)
HasFastMSTreeItems
addItem
in interface HasFastMSTreeItems
item
- the item to be addedpublic boolean moveItemUp(FastMSTreeItem item)
public boolean moveItemDown(FastMSTreeItem item)
public FastMSTreeItem addItem(java.lang.String itemText)
HasFastMSTreeItems
addItem
in interface HasFastMSTreeItems
itemText
- the text to be added
public FastMSTreeItem addItem(com.google.gwt.user.client.ui.Widget widget)
HasFastMSTreeItems
addItem
in interface HasFastMSTreeItems
widget
- the widget to be added
public void becomeInteriorNode()
public FastMSTreeItem getChild(int index)
HasFastMSTreeItems
getChild
in interface HasFastMSTreeItems
index
- the index to be retrieved
public int getChildCount()
HasFastMSTreeItems
getChildCount
in interface HasFastMSTreeItems
public int getChildIndex(FastMSTreeItem child)
HasFastMSTreeItems
getChildIndex
in interface HasFastMSTreeItems
child
- the child item to be found
-1
if none is foundpublic int getControlImageWidth()
public java.lang.String getHTML()
getHTML
in interface com.google.gwt.user.client.ui.HasHTML
public FastMSTreeItem getParentItem()
public java.lang.String getText()
getText
in interface com.google.gwt.user.client.ui.HasText
public final FastMSTree getTree()
public com.google.gwt.user.client.ui.Widget getWidget()
Widget
associated with this tree item.
public boolean hasBeenOpened()
FastMSTreeItem
ever been opened?
FastMSTreeItem
has ever been opened.public boolean isInteriorNode()
FastMSTreeItem
represent an interior node?
public boolean isLeafNode()
FastMSTreeItem
a leaf node?
public boolean isOpen()
FastMSTreeItem
open? Returns false if the FastMSTreeItem
is closed or a leaf node.
public boolean isSelected()
true
if it is selectedpublic boolean isShowing()
FastMSTreeItem
.
public void remove()
public int getTotalSize()
public void removeItem(FastMSTreeItem item)
removeItem
in interface HasFastMSTreeItems
item
- the item to be removedpublic void removeItems()
public void setHTML(java.lang.String html)
setHTML
in interface com.google.gwt.user.client.ui.HasHTML
public final void setState(boolean open)
open
- whether the item is openpublic void setState(boolean open, boolean fireEvents)
open
- whether the item is openfireEvents
- true
to allow open/close events to be firedpublic void expandAll()
public void collapseAll()
public void setText(java.lang.String text)
setText
in interface com.google.gwt.user.client.ui.HasText
public void setWidget(com.google.gwt.user.client.ui.Widget widget)
protected void afterClose()
protected void afterOpen()
protected void beforeClose()
protected void beforeOpen()
protected boolean beforeSelectionLost()
false
cancels the unselection.
protected void ensureChildren()
protected com.google.gwt.user.client.ui.HasFocus getFocusableWidget()
protected void onSelected()
public java.util.ArrayList<FastMSTreeItem> getChildren()
public void setElementNode(com.tensegrity.palo.gwt.core.client.models.palo.XElementNode nd)
public com.tensegrity.palo.gwt.core.client.models.palo.XElementNode getElementNode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |