Class LazyStackPanel
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.google.gwt.user.client.ui.Widget
-
- com.google.gwt.user.client.ui.Composite
-
- org.uberfire.ext.widgets.common.client.common.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.HasVisibility,com.google.gwt.user.client.ui.IsRenderable,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.
-
-
Constructor Summary
Constructors Constructor Description LazyStackPanel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(String headerText, com.google.gwt.resources.client.ImageResource icon, LoadContentCommand contentLoad)voidadd(String headerText, LoadContentCommand contentLoad)Add a new (collapsed) element to the stack.voidadd(String headerText, LoadContentCommand contentLoad, boolean expanded)voidadd(AbstractLazyStackPanelHeader header, LoadContentCommand contentLoad)Add a new (collapsed) element to the stack.voidadd(AbstractLazyStackPanelHeader header, LoadContentCommand contentLoad, boolean expanded)com.google.gwt.event.shared.HandlerRegistrationaddSelectionHandler(com.google.gwt.event.logical.shared.SelectionHandler<LazyStackPanelRow> handler)voidclean()Iterator<AbstractLazyStackPanelHeader>getHeaderIterator()voidremove(int index)voidswap(int firstIndex, int secondIndex)-
Methods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, 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, unsinkEvents
-
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
-
-
-
-
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:
addSelectionHandlerin interfacecom.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)
-
clean
public void clean()
-
-