org.cafesip.gwtcomp.client.ui
Class ToolbarPanel

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.Panel
              extended by com.google.gwt.user.client.ui.ComplexPanel
                  extended by com.google.gwt.user.client.ui.AbsolutePanel
                      extended by org.cafesip.gwtcomp.client.ui.ToolbarPanel
All Implemented Interfaces:
HasHandlers, EventListener, HasWidgets, IndexedPanel, InsertPanel, Iterable<Widget>

public class ToolbarPanel
extends AbsolutePanel

A toolbar panel is container for one or more Toolbar objects. Many applications require a toolbar panel (normally below the menu bar) where multiple toolbars are placed. There is a vertical splitter separating the toolbars which can be dragged to resize the toolbars inside the panel. Note that the toolbar panel can be placed anywhere in the screen, not just the top.

CSS Style Rules:

Screen-Shots:

Author:
Amit Chatterjee

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
ToolbarPanel()
          A constructor for this class.
 
Method Summary
 void addToolbar(Toolbar bar)
          Add a toolbar to the panel.
 void onBrowserEvent(Event event)
           
protected  void onLoad()
           
 void redraw()
          Redraw the panel.
 
Methods inherited from class com.google.gwt.user.client.ui.AbsolutePanel
add, add, getWidgetLeft, getWidgetTop, insert, insert, remove, setWidgetPosition, setWidgetPositionImpl
 
Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, insert, insert, iterator, remove
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, onUnload, orphan
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addDomHandler, addHandler, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onDetach, 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
 
Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel
getWidget, getWidgetCount, getWidgetIndex, remove
 

Constructor Detail

ToolbarPanel

public ToolbarPanel()
A constructor for this class.

Method Detail

addToolbar

public void addToolbar(Toolbar bar)
Add a toolbar to the panel. The toolbars are displayed in the order they are added.

Parameters:
bar - toolbar widget

onBrowserEvent

public void onBrowserEvent(Event event)
Specified by:
onBrowserEvent in interface EventListener
Overrides:
onBrowserEvent in class Widget

redraw

public void redraw()
Redraw the panel. Sometimes when the size of the child toolbar changes, it is necessary to draw the panel.


onLoad

protected void onLoad()
Overrides:
onLoad in class Panel


Copyright © 2010 Cafesip.org. All Rights Reserved.