com.google.gwt.widgetideas.client
Class ListeningFastTreeItem

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.widgetideas.client.FastTreeItem
          extended by com.google.gwt.widgetideas.client.ListeningFastTreeItem
All Implemented Interfaces:
com.google.gwt.user.client.ui.HasHTML, com.google.gwt.user.client.ui.HasText, HasFastTreeItems

public abstract class ListeningFastTreeItem
extends FastTreeItem

Convenience class used to allow IDE users to quickly override the event methods on FastTreeItem.


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
ListeningFastTreeItem()
          Creates an empty tree item.
ListeningFastTreeItem(java.lang.String html)
          Constructs a tree item with the given HTML.
ListeningFastTreeItem(com.google.gwt.user.client.ui.Widget widget)
          Constructs a tree item with the given Widget.
 
Method Summary
abstract  void beforeClose()
          Called before the tree item is closed.
abstract  void beforeOpen()
          Called before the tree item is opened.
protected abstract  boolean beforeSelectionLost()
          Called when tree item is being unselected.
protected abstract  void ensureChildren()
          Fired when a tree item receives a request to open for the first time.
protected abstract  void onSelected()
          Called when a tree item is selected.
 
Methods inherited from class com.google.gwt.widgetideas.client.FastTreeItem
addItem, addItem, addItem, becomeInteriorNode, becomeLeafNode, getChild, getChildCount, getChildIndex, getControlImageWidth, getFocusableWidget, getHTML, getParentItem, getText, getTree, getWidget, hasBeenOpened, isInteriorNode, isLeafNode, isOpen, isSelected, isShowing, remove, removeItem, removeItems, setHTML, setState, setState, setText, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, 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

ListeningFastTreeItem

public ListeningFastTreeItem()
Creates an empty tree item.


ListeningFastTreeItem

public ListeningFastTreeItem(java.lang.String html)
Constructs a tree item with the given HTML.

Parameters:
html - the item's HTML

ListeningFastTreeItem

public ListeningFastTreeItem(com.google.gwt.user.client.ui.Widget widget)
Constructs a tree item with the given Widget.

Parameters:
widget - the item's widget
Method Detail

beforeClose

public abstract void beforeClose()
Description copied from class: FastTreeItem
Called before the tree item is closed.

Overrides:
beforeClose in class FastTreeItem

beforeOpen

public abstract void beforeOpen()
Description copied from class: FastTreeItem
Called before the tree item is opened.

Overrides:
beforeOpen in class FastTreeItem

beforeSelectionLost

protected abstract boolean beforeSelectionLost()
Description copied from class: FastTreeItem
Called when tree item is being unselected. Returning false cancels the unselection.

Overrides:
beforeSelectionLost in class FastTreeItem

ensureChildren

protected abstract void ensureChildren()
Description copied from class: FastTreeItem
Fired when a tree item receives a request to open for the first time. Should be overridden in child clases.

Overrides:
ensureChildren in class FastTreeItem

onSelected

protected abstract void onSelected()
Description copied from class: FastTreeItem
Called when a tree item is selected.

Overrides:
onSelected in class FastTreeItem