org.drools.guvnor.client.util
Class LazyStackPanel

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.util.LazyStackPanel
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.logical.shared.HasSelectionHandlers<LazyStackPanelRow>, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.IsWidget

public class LazyStackPanel
extends com.google.gwt.user.client.ui.Composite
implements com.google.gwt.event.logical.shared.HasSelectionHandlers<LazyStackPanelRow>

The GWT StackPanel is not working as we want. So doing a custom one.


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
LazyStackPanel()
           
 
Method Summary
 void add(AbstractLazyStackPanelHeader header, LoadContentCommand contentLoad)
          Add a new (collapsed) element to the stack.
 void add(AbstractLazyStackPanelHeader header, LoadContentCommand contentLoad, boolean expanded)
           
 void add(String headerText, com.google.gwt.resources.client.ImageResource icon, LoadContentCommand contentLoad)
           
 void add(String headerText, LoadContentCommand contentLoad)
          Add a new (collapsed) element to the stack.
 void add(String headerText, LoadContentCommand contentLoad, boolean expanded)
           
 com.google.gwt.event.shared.HandlerRegistration addSelectionHandler(com.google.gwt.event.logical.shared.SelectionHandler<LazyStackPanelRow> handler)
           
 Iterator<AbstractLazyStackPanelHeader> getHeaderIterator()
           
 void remove(int index)
           
 void swap(int firstIndex, int secondIndex)
           
 
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, addBitlessDomHandler, 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, sinkBitlessEvent, 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.shared.HasHandlers
fireEvent
 

Constructor Detail

LazyStackPanel

public LazyStackPanel()
Method Detail

add

public void add(String headerText,
                LoadContentCommand contentLoad)
Add a new (collapsed) element to the stack.

Parameters:
headerText -
contentLoad -

add

public void add(String headerText,
                LoadContentCommand contentLoad,
                boolean expanded)

add

public void add(String headerText,
                com.google.gwt.resources.client.ImageResource icon,
                LoadContentCommand contentLoad)

add

public void add(AbstractLazyStackPanelHeader header,
                LoadContentCommand contentLoad)
Add a new (collapsed) element to the stack.

Parameters:
header -
contentLoad -

add

public void add(AbstractLazyStackPanelHeader header,
                LoadContentCommand contentLoad,
                boolean expanded)

addSelectionHandler

public com.google.gwt.event.shared.HandlerRegistration addSelectionHandler(com.google.gwt.event.logical.shared.SelectionHandler<LazyStackPanelRow> handler)
Specified by:
addSelectionHandler in interface com.google.gwt.event.logical.shared.HasSelectionHandlers<LazyStackPanelRow>

swap

public void swap(int firstIndex,
                 int secondIndex)

getHeaderIterator

public Iterator<AbstractLazyStackPanelHeader> getHeaderIterator()

remove

public void remove(int index)


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.