org.xwiki.gwt.user.client.ui
Class ToolBar

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.xwiki.gwt.user.client.ui.ToolBar
All Implemented Interfaces:
com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.IndexedPanel, java.lang.Iterable<com.google.gwt.user.client.ui.Widget>

public class ToolBar
extends com.google.gwt.user.client.ui.Composite
implements com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.IndexedPanel

Generic tool bar panel accepting any kind of widget.

Version:
$Id: ToolBar.java 24888 2009-11-06 02:16:19Z sdumitriu $

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
protected  com.google.gwt.user.client.ui.FlowPanel clearFloats
          This needs to be put at the end of the panel because we're using HTML divs on which we set the float CSS property.
protected  com.google.gwt.user.client.ui.FlowPanel panel
          The panel holding the tool bar widgets.
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
ToolBar()
          Creates an empty tool bar that waits for widgets to be added.
 
Method Summary
 void add(com.google.gwt.user.client.ui.Widget w)
          
 void clear()
          
 com.google.gwt.user.client.ui.Widget getWidget(int index)
          
 int getWidgetCount()
          
 int getWidgetIndex(com.google.gwt.user.client.ui.Widget child)
          
 java.util.Iterator<com.google.gwt.user.client.ui.Widget> iterator()
          
 boolean remove(int index)
          
 boolean remove(com.google.gwt.user.client.ui.Widget w)
          
 
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
addDomHandler, addHandler, 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, 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
 

Field Detail

panel

protected com.google.gwt.user.client.ui.FlowPanel panel
The panel holding the tool bar widgets.


clearFloats

protected com.google.gwt.user.client.ui.FlowPanel clearFloats
This needs to be put at the end of the panel because we're using HTML divs on which we set the float CSS property.

Constructor Detail

ToolBar

public ToolBar()
Creates an empty tool bar that waits for widgets to be added.

Method Detail

add

public void add(com.google.gwt.user.client.ui.Widget w)

Specified by:
add in interface com.google.gwt.user.client.ui.HasWidgets
See Also:
HasWidgets.add(Widget)

clear

public void clear()

Specified by:
clear in interface com.google.gwt.user.client.ui.HasWidgets
See Also:
HasWidgets.clear()

iterator

public java.util.Iterator<com.google.gwt.user.client.ui.Widget> iterator()

Specified by:
iterator in interface com.google.gwt.user.client.ui.HasWidgets
Specified by:
iterator in interface java.lang.Iterable<com.google.gwt.user.client.ui.Widget>
See Also:
HasWidgets.iterator()

remove

public boolean remove(com.google.gwt.user.client.ui.Widget w)

Specified by:
remove in interface com.google.gwt.user.client.ui.HasWidgets
See Also:
HasWidgets.remove(Widget)

getWidget

public com.google.gwt.user.client.ui.Widget getWidget(int index)

Specified by:
getWidget in interface com.google.gwt.user.client.ui.IndexedPanel
See Also:
IndexedPanel.getWidget(int)

getWidgetCount

public int getWidgetCount()

Specified by:
getWidgetCount in interface com.google.gwt.user.client.ui.IndexedPanel
See Also:
IndexedPanel.getWidgetCount()

getWidgetIndex

public int getWidgetIndex(com.google.gwt.user.client.ui.Widget child)

Specified by:
getWidgetIndex in interface com.google.gwt.user.client.ui.IndexedPanel
See Also:
IndexedPanel.getWidgetIndex(Widget)

remove

public boolean remove(int index)

Specified by:
remove in interface com.google.gwt.user.client.ui.IndexedPanel
See Also:
IndexedPanel.remove(int)


Copyright © 2004-2011 XWiki. All Rights Reserved.