org.drools.guvnor.client.explorer
Class AbstractTree

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by org.drools.guvnor.client.explorer.AbstractTree
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.logical.shared.SelectionHandler<com.google.gwt.user.client.ui.TreeItem>, com.google.gwt.event.shared.EventHandler, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.IsWidget
Direct Known Subclasses:
AdministrationTree, BrowseTree, DeploymentTree, PackagesTree, QATree

public abstract class AbstractTree
extends com.google.gwt.user.client.ui.Composite
implements com.google.gwt.event.logical.shared.SelectionHandler<com.google.gwt.user.client.ui.TreeItem>


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
protected  com.google.gwt.resources.client.ImageResource image
           
protected  Map<com.google.gwt.user.client.ui.TreeItem,String> itemWidgets
           
protected  com.google.gwt.user.client.ui.Tree mainTree
           
protected  String name
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
AbstractTree()
          Constructor.
 
Method Summary
protected abstract  com.google.gwt.user.client.ui.Tree createTree()
           
 com.google.gwt.user.client.ui.HTML getHeaderHTML()
          Get a string representation of the header that includes an image and some text.
protected  void launchWizard(String format, String title, boolean showCats)
           
 void refreshTree()
           
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, 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, setStyleDependentName, setStyleName, 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
 
Methods inherited from interface com.google.gwt.event.logical.shared.SelectionHandler
onSelection
 

Field Detail

name

protected String name

image

protected com.google.gwt.resources.client.ImageResource image

mainTree

protected final com.google.gwt.user.client.ui.Tree mainTree

itemWidgets

protected Map<com.google.gwt.user.client.ui.TreeItem,String> itemWidgets
Constructor Detail

AbstractTree

public AbstractTree()
Constructor.

Method Detail

createTree

protected abstract com.google.gwt.user.client.ui.Tree createTree()

getHeaderHTML

public com.google.gwt.user.client.ui.HTML getHeaderHTML()
Get a string representation of the header that includes an image and some text.

Returns:
the header as a string

refreshTree

public void refreshTree()

launchWizard

protected void launchWizard(String format,
                            String title,
                            boolean showCats)


Copyright © 2001-2011 JBoss Inc.. All Rights Reserved.