com.arsdigita.toolbox.ui
Class DimensionBar

java.lang.Object
  extended bycom.arsdigita.bebop.Completable
      extended bycom.arsdigita.bebop.CompoundComponent
          extended bycom.arsdigita.toolbox.ui.DimensionBar
All Implemented Interfaces:
Component, Lockable

public class DimensionBar
extends CompoundComponent

DimensionBar

Version:
$Revision: #7 $ $Date: 2004/04/07 $
Author:
rhs@mit.edu

Field Summary
static String versionId
           
 
Fields inherited from interface com.arsdigita.bebop.Component
BEBOP_XML_NS, CLASS, ID, ON_CLICK, STYLE
 
Constructor Summary
DimensionBar(Component title)
           
 
Method Summary
 void add(String key, Component c)
          Add a dimension to the slider bar.
 void add(String key, Component selectable, Component active)
          Add a dimension to the slider bar.
 String getDefaultKey()
           
 String getSelectedKey(PageState ps)
           
 void register(Page p)
          Registers state parameters for the page with its model.
 void setDefaultKey(String key)
           
 void setSelectedKey(PageState ps, String key)
           
 
Methods inherited from class com.arsdigita.bebop.CompoundComponent
add, add, children, contains, generateXML, get, getClassAttr, getContainer, getIdAttr, getKey, getStyleAttr, indexOf, isEmpty, isLocked, isVisible, lock, register, respond, setClassAttr, setIdAttr, setKey, setStyleAttr, setVisible, size
 
Methods inherited from class com.arsdigita.bebop.Completable
addCompletionListener, fireCompletionEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

DimensionBar

public DimensionBar(Component title)
Method Detail

add

public void add(String key,
                Component c)
Add a dimension to the slider bar.


add

public void add(String key,
                Component selectable,
                Component active)
Add a dimension to the slider bar.


setDefaultKey

public void setDefaultKey(String key)

getDefaultKey

public String getDefaultKey()

getSelectedKey

public String getSelectedKey(PageState ps)

setSelectedKey

public void setSelectedKey(PageState ps,
                           String key)

register

public void register(Page p)
Description copied from interface: Component
Registers state parameters for the page with its model. A simple component with a state parameter param would do the following in the body of this method:
   p.addComponent(this);
   p.addComponentStateParam(this, param);
 
You should override this method to set the default visibility of your component:
 public void register(Page p) {
     super.register(p);
     p.setVisibleDefault(childNotInitiallyShown,false);
     p.setVisibleDefault(anotherChild, false);
 }
 
Always call super.register when you override register. Otherwise your component may malfunction and produce errors like "Widget ... isn't associated with any Form"

Specified by:
register in interface Component
Overrides:
register in class CompoundComponent
See Also:
Component.register( Page )


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC