com.arsdigita.toolbox.ui
Class DimensionBar
java.lang.Object
com.arsdigita.bebop.Completable
com.arsdigita.bebop.CompoundComponent
com.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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
versionId
public static final String versionId
- See Also:
- Constant Field Values
DimensionBar
public DimensionBar(Component title)
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 21 2004:2337 UTC