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.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.IndexedPanel, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget, 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: 752683d23dc82734cbb9d813e3d4c49a6ef08228 $

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.HasWidgets
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel
com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
 
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)
           
 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
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
 
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
 

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

clear

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

iterator

public 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 Iterable<com.google.gwt.user.client.ui.Widget>

remove

public boolean remove(com.google.gwt.user.client.ui.Widget w)
Specified by:
remove in interface com.google.gwt.user.client.ui.HasWidgets

getWidget

public com.google.gwt.user.client.ui.Widget getWidget(int index)
Specified by:
getWidget in interface com.google.gwt.user.client.ui.IndexedPanel

getWidgetCount

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

getWidgetIndex

public int getWidgetIndex(com.google.gwt.user.client.ui.Widget child)
Specified by:
getWidgetIndex in interface com.google.gwt.user.client.ui.IndexedPanel

remove

public boolean remove(int index)
Specified by:
remove in interface com.google.gwt.user.client.ui.IndexedPanel


Copyright © 2004-2012 XWiki. All Rights Reserved.