org.drools.guvnor.client.categorynav
Class CategoryExplorerWidget

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.categorynav.CategoryExplorerWidget
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.logical.shared.OpenHandler<com.google.gwt.user.client.ui.TreeItem>, 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

public class CategoryExplorerWidget
extends com.google.gwt.user.client.ui.Composite
implements com.google.gwt.event.logical.shared.SelectionHandler<com.google.gwt.user.client.ui.TreeItem>, com.google.gwt.event.logical.shared.OpenHandler<com.google.gwt.user.client.ui.TreeItem>

This is a rule/resource navigator that uses the server side categories to navigate the repository. Uses the the Tree widget.


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
CategoryExplorerWidget(CategorySelectHandler handler)
          Create a new cat explorer.
 
Method Summary
 String getSelectedPath()
           
 boolean isSelected()
           
 void onOpen(com.google.gwt.event.logical.shared.OpenEvent<com.google.gwt.user.client.ui.TreeItem> event)
           
 void onSelection(com.google.gwt.event.logical.shared.SelectionEvent<com.google.gwt.user.client.ui.TreeItem> event)
           
 void refresh()
          This refreshes the view.
 void setTreeSize(String width)
           
 void showEmptyTree()
           
 
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
 

Constructor Detail

CategoryExplorerWidget

public CategoryExplorerWidget(CategorySelectHandler handler)
Create a new cat explorer.

Parameters:
handler -
Method Detail

setTreeSize

public void setTreeSize(String width)

refresh

public void refresh()
This refreshes the view.


showEmptyTree

public void showEmptyTree()

onSelection

public void onSelection(com.google.gwt.event.logical.shared.SelectionEvent<com.google.gwt.user.client.ui.TreeItem> event)
Specified by:
onSelection in interface com.google.gwt.event.logical.shared.SelectionHandler<com.google.gwt.user.client.ui.TreeItem>

onOpen

public void onOpen(com.google.gwt.event.logical.shared.OpenEvent<com.google.gwt.user.client.ui.TreeItem> event)
Specified by:
onOpen in interface com.google.gwt.event.logical.shared.OpenHandler<com.google.gwt.user.client.ui.TreeItem>

getSelectedPath

public String getSelectedPath()

isSelected

public boolean isSelected()


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