Package com.levigo.jadice.web.client.ui
Class List
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.levigo.jadice.web.client.ui.List
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers,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.HasWidgets,com.google.gwt.user.client.ui.HasWidgets.ForIsWidget,com.google.gwt.user.client.ui.IndexedPanel,com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget,com.google.gwt.user.client.ui.InsertPanel,com.google.gwt.user.client.ui.InsertPanel.ForIsWidget,com.google.gwt.user.client.ui.IsWidget,Iterable<com.google.gwt.user.client.ui.Widget>
public class List
extends com.google.gwt.user.client.ui.Panel
implements com.google.gwt.user.client.ui.HasWidgets.ForIsWidget, com.google.gwt.user.client.ui.InsertPanel.ForIsWidget
Represents a HTML List (unordered or ordered) as a 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.DebugIdImplEnabledNested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
com.google.gwt.user.client.ui.HasWidgets.ForIsWidgetNested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel
com.google.gwt.user.client.ui.IndexedPanel.ForIsWidgetNested classes/interfaces inherited from interface com.google.gwt.user.client.ui.InsertPanel
com.google.gwt.user.client.ui.InsertPanel.ForIsWidget -
Field Summary
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(com.google.gwt.user.client.ui.IsWidget w) voidadd(com.google.gwt.user.client.ui.Widget w) voidaddLast(com.google.gwt.user.client.ui.IsWidget widget) voidaddSubmenu(com.google.gwt.user.client.ui.IsWidget w) com.google.gwt.user.client.ui.WidgetgetWidget(int index) intintgetWidgetIndex(com.google.gwt.user.client.ui.IsWidget child) intgetWidgetIndex(com.google.gwt.user.client.ui.Widget child) voidinsert(com.google.gwt.user.client.ui.IsWidget w, int beforeIndex) voidinsert(com.google.gwt.user.client.ui.Widget w, int beforeIndex) booleanbooleanIterator<com.google.gwt.user.client.ui.Widget> iterator()booleanremove(int index) booleanremove(com.google.gwt.user.client.ui.IsWidget w) booleanremove(com.google.gwt.user.client.ui.Widget w) Methods inherited from class com.google.gwt.user.client.ui.Panel
adopt, clear, doAttachChildren, doDetachChildren, orphanMethods 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, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsMethods 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, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.gwt.user.client.ui.HasWidgets
clearMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
List
public List(boolean horizontal, boolean ordered) Creates a new list. Whether the list is ordered or unordered depends on the ordered parameter.- Parameters:
horizontal- whether the list is an horizontal or an vertical listordered- whether the list should be an ordered list represented via <ol> or an unordered list represented via
-
-
Method Details
-
add
public void add(com.google.gwt.user.client.ui.Widget w) - Specified by:
addin interfacecom.google.gwt.user.client.ui.HasWidgets- Specified by:
addin interfacecom.google.gwt.user.client.ui.InsertPanel- Overrides:
addin classcom.google.gwt.user.client.ui.Panel
-
iterator
-
remove
public boolean remove(com.google.gwt.user.client.ui.Widget w) - Specified by:
removein interfacecom.google.gwt.user.client.ui.HasWidgets- Specified by:
removein classcom.google.gwt.user.client.ui.Panel
-
add
public void add(com.google.gwt.user.client.ui.IsWidget w) - Specified by:
addin interfacecom.google.gwt.user.client.ui.HasWidgets.ForIsWidget- Specified by:
addin interfacecom.google.gwt.user.client.ui.InsertPanel.ForIsWidget- Overrides:
addin classcom.google.gwt.user.client.ui.Panel
-
remove
public boolean remove(com.google.gwt.user.client.ui.IsWidget w) - Specified by:
removein interfacecom.google.gwt.user.client.ui.HasWidgets.ForIsWidget- Overrides:
removein classcom.google.gwt.user.client.ui.Panel
-
insert
public void insert(com.google.gwt.user.client.ui.Widget w, int beforeIndex) - Specified by:
insertin interfacecom.google.gwt.user.client.ui.InsertPanel
-
getWidget
public com.google.gwt.user.client.ui.Widget getWidget(int index) - Specified by:
getWidgetin interfacecom.google.gwt.user.client.ui.IndexedPanel
-
getWidgetCount
public int getWidgetCount()- Specified by:
getWidgetCountin interfacecom.google.gwt.user.client.ui.IndexedPanel
-
getWidgetIndex
public int getWidgetIndex(com.google.gwt.user.client.ui.Widget child) - Specified by:
getWidgetIndexin interfacecom.google.gwt.user.client.ui.IndexedPanel
-
remove
public boolean remove(int index) - Specified by:
removein interfacecom.google.gwt.user.client.ui.IndexedPanel
-
getWidgetIndex
public int getWidgetIndex(com.google.gwt.user.client.ui.IsWidget child) - Specified by:
getWidgetIndexin interfacecom.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
-
insert
public void insert(com.google.gwt.user.client.ui.IsWidget w, int beforeIndex) - Specified by:
insertin interfacecom.google.gwt.user.client.ui.InsertPanel.ForIsWidget
-
addLast
public void addLast(com.google.gwt.user.client.ui.IsWidget widget) -
isHorizontal
public boolean isHorizontal() -
isOrdered
public boolean isOrdered()
-