info.magnolia.templating.editor.client
Class AbstractBarWidget

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.FlowPanel
                      extended by info.magnolia.templating.editor.client.AbstractBarWidget
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>
Direct Known Subclasses:
AreaBarWidget, EditBarWidget, PageBarWidget

public abstract class AbstractBarWidget
extends com.google.gwt.user.client.ui.FlowPanel

Base class for horizontal bars with buttons.


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.InsertPanel
com.google.gwt.user.client.ui.InsertPanel.ForIsWidget
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
 
Field Summary
protected  boolean hasControls
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
AbstractBarWidget(MgnlElement boundary, CMSComment comment)
           
 
Method Summary
protected  void addButton(com.google.gwt.user.client.ui.Button button, com.google.gwt.dom.client.Style.Float cssFloat)
           
 void attach(com.google.gwt.dom.client.Element element)
          TODO: we should not have to call onAttach ourself?
 void attach(com.google.gwt.dom.client.Node node)
          TODO: we should not have to call onAttach ourself?
protected  void deSelect()
           
 MgnlElement getBoundary()
           
protected  com.google.gwt.dom.client.Style getStyle()
           
protected  void select()
          Called when this bar widget is selected/clicked.
 void setBoundary(MgnlElement boundary)
           
protected  void setClassName(String className)
           
protected  void setId(String id)
           
 
Methods inherited from class com.google.gwt.user.client.ui.FlowPanel
add, clear, insert, insert
 
Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, adopt, 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, onBrowserEvent, 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, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, 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
 
Methods inherited from interface com.google.gwt.user.client.ui.InsertPanel.ForIsWidget
add
 
Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
getWidgetIndex
 
Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel
getWidget, getWidgetCount, getWidgetIndex, remove
 

Field Detail

hasControls

protected boolean hasControls
Constructor Detail

AbstractBarWidget

public AbstractBarWidget(MgnlElement boundary,
                         CMSComment comment)
Method Detail

select

protected void select()
Called when this bar widget is selected/clicked. Default implementation does nothing.


deSelect

protected void deSelect()

setId

protected void setId(String id)

addButton

protected void addButton(com.google.gwt.user.client.ui.Button button,
                         com.google.gwt.dom.client.Style.Float cssFloat)

setClassName

protected void setClassName(String className)

getStyle

protected com.google.gwt.dom.client.Style getStyle()
Returns:
the element's underlying Style. You can use this object to manipulate the css style attribute of this bar widget.

attach

public void attach(com.google.gwt.dom.client.Element element)
TODO: we should not have to call onAttach ourself?


attach

public void attach(com.google.gwt.dom.client.Node node)
TODO: we should not have to call onAttach ourself?


setBoundary

public void setBoundary(MgnlElement boundary)

getBoundary

public MgnlElement getBoundary()


Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.