|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.ComplexPanel
org.jboss.errai.widgets.client.WSStackPanel
public class WSStackPanel
| 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 |
| Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel |
|---|
com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget |
| Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets |
|---|
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
WSStackPanel()
Creates an empty stack panel. |
|
| Method Summary | |
|---|---|
void |
add(com.google.gwt.user.client.ui.Widget w)
Adds a new child with the given widget. |
void |
add(com.google.gwt.user.client.ui.Widget w,
String stackText)
Adds a new child with the given widget and header. |
void |
add(com.google.gwt.user.client.ui.Widget w,
String stackText,
boolean asHTML)
Adds a new child with the given widget and header, optionally interpreting the header as HTML. |
int |
getSelectedIndex()
Gets the currently selected child index. |
void |
insert(com.google.gwt.user.client.ui.Widget w,
int beforeIndex)
Inserts a widget before the specified index. |
void |
onBrowserEvent(com.google.gwt.user.client.Event event)
|
protected void |
onEnsureDebugId(String baseID)
Affected Elements: -text# = The element around the header at the specified index. -text-wrapper# = The element around the header at the specified index. -content# = The element around the body at the specified index. |
boolean |
remove(int index)
|
boolean |
remove(com.google.gwt.user.client.ui.Widget child)
|
void |
setStackText(int index,
String text)
Sets the text associated with a child by its index. |
void |
setStackText(int index,
String text,
boolean asHTML)
Sets the text associated with a child by its index. |
void |
showStack(int index)
Shows the widget at the specified child index. |
| Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel |
|---|
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator |
| Methods inherited from class com.google.gwt.user.client.ui.Panel |
|---|
add, adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, orphan, remove |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onDetach, 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, 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 |
| Constructor Detail |
|---|
public WSStackPanel()
| Method Detail |
|---|
public void add(com.google.gwt.user.client.ui.Widget w)
add in interface com.google.gwt.user.client.ui.HasWidgetsadd in class com.google.gwt.user.client.ui.Panelw - the widget to be added
public void add(com.google.gwt.user.client.ui.Widget w,
String stackText)
w - the widget to be addedstackText - the header text associated with this widget
public void add(com.google.gwt.user.client.ui.Widget w,
String stackText,
boolean asHTML)
w - the widget to be addedstackText - the header text associated with this widgetasHTML - true to treat the specified text as HTMLpublic int getSelectedIndex()
public void insert(com.google.gwt.user.client.ui.Widget w,
int beforeIndex)
w - the widget to be insertedbeforeIndex - the index before which it will be inserted
IndexOutOfBoundsException - if beforeIndex is out of
rangepublic void onBrowserEvent(com.google.gwt.user.client.Event event)
onBrowserEvent in interface com.google.gwt.user.client.EventListeneronBrowserEvent in class com.google.gwt.user.client.ui.Widgetpublic boolean remove(int index)
remove in interface com.google.gwt.user.client.ui.IndexedPanelremove in class com.google.gwt.user.client.ui.ComplexPanelpublic boolean remove(com.google.gwt.user.client.ui.Widget child)
remove in interface com.google.gwt.user.client.ui.HasWidgetsremove in class com.google.gwt.user.client.ui.ComplexPanel
public void setStackText(int index,
String text)
index - the index of the child whose text is to be settext - the text to be associated with it
public void setStackText(int index,
String text,
boolean asHTML)
index - the index of the child whose text is to be settext - the text to be associated with itasHTML - true to treat the specified text as HTMLpublic void showStack(int index)
index - the index of the child to be shownprotected void onEnsureDebugId(String baseID)
onEnsureDebugId in class com.google.gwt.user.client.ui.UIObjectUIObject.onEnsureDebugId(String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||