|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.bebop.Completable
com.arsdigita.bebop.SimpleComponent
com.arsdigita.bebop.TextStylable
com.arsdigita.bebop.BlockStylable
com.arsdigita.bebop.SimpleContainer
com.arsdigita.cms.contenttypes.ui.ResettableContainer
A container which implements the Resettable
interface and
provides other useful methods.
Field Summary |
Fields inherited from class com.arsdigita.bebop.SimpleContainer |
versionId |
Fields inherited from class com.arsdigita.bebop.BlockStylable |
ABSBOTTOM, ABSMIDDLE, BASELINE, BOTTOM, CENTER, FULL_WIDTH, INSERT, LEFT, MIDDLE, RIGHT, TEXTTOP, TOP |
Fields inherited from class com.arsdigita.bebop.SimpleComponent |
m_attr |
Fields inherited from interface com.arsdigita.bebop.Resettable |
versionId |
Fields inherited from interface com.arsdigita.bebop.Component |
BEBOP_XML_NS, CLASS, ID, ON_CLICK, STYLE |
Constructor Summary | |
ResettableContainer()
Constructs a new, empty RessetableContainer . |
|
ResettableContainer(String key)
Constructs a new, empty RessetableContainer . |
|
ResettableContainer(String tag,
String ns)
Constructs a new, empty RessetableContainer . |
Method Summary | |
void |
add(com.arsdigita.bebop.Component pc)
Adds a component to container. |
void |
add(com.arsdigita.bebop.Component pc,
boolean defaultVisibility)
Adds the component to this pane with the specified default visibility. |
void |
add(com.arsdigita.bebop.Component pc,
int constraints)
Add a component to this container |
void |
onlyShowComponent(com.arsdigita.bebop.PageState state,
com.arsdigita.bebop.Component c)
Sets the visibility of all child components to false, except for the specified component. |
void |
onlyShowComponent(com.arsdigita.bebop.PageState state,
String key)
Sets the visibility of all child components to false, except for the component with the specified key. |
void |
register(com.arsdigita.bebop.Page p)
Registers with page that this container belongs to and sets the default visibility of child components. |
void |
reset(com.arsdigita.bebop.PageState state)
Resets all resettable components added to this container. |
Methods inherited from class com.arsdigita.bebop.SimpleContainer |
children, contains, generateChildrenXML, generateParent, generateXML, get, getNamespace, getTag, indexOf, isEmpty, setNamespace, setTag, size |
Methods inherited from class com.arsdigita.bebop.BlockStylable |
setBorder, setBorder, setBorderColor, setHorizontalAlignment, setMargin, setMargin, setPadding, setPadding, setVerticalAlignment |
Methods inherited from class com.arsdigita.bebop.TextStylable |
setBackgroundColor, setColor |
Methods inherited from class com.arsdigita.bebop.SimpleComponent |
clone, exportAttributes, getAttribute, getClassAttr, getIdAttr, getKey, getMetaDataAttribute, getStyleAttr, hasAttributes, isLocked, isVisible, lock, register, respond, setAttribute, setClassAttr, setIdAttr, setKey, setMetaDataAttribute, setStyleAttr, setVisible |
Methods inherited from class com.arsdigita.bebop.Completable |
addCompletionListener, fireCompletionEvent |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.arsdigita.bebop.Component |
getClassAttr, getIdAttr, getKey, getStyleAttr, isVisible, register, respond, setClassAttr, setIdAttr, setKey, setStyleAttr, setVisible |
Methods inherited from interface com.arsdigita.util.Lockable |
isLocked, lock |
Constructor Detail |
public ResettableContainer()
RessetableContainer
.
public ResettableContainer(String key)
RessetableContainer
.
key
- The key for this container.public ResettableContainer(String tag, String ns)
RessetableContainer
. The
container will wrap its children in the specified tag.
tag
- The name of the XML element that will be used to
wrap the children of this container.ns
- The namespace for the tag.Method Detail |
public void add(com.arsdigita.bebop.Component pc)
add
in interface com.arsdigita.bebop.Container
pc
- The component to be added.public void add(com.arsdigita.bebop.Component pc, int constraints)
add
in interface com.arsdigita.bebop.Container
pc
- The component to be added.constraints
- This parameter is ignored. Child classes
should override the add method if they wish to provide special
handling of constraints.public void add(com.arsdigita.bebop.Component pc, boolean defaultVisibility)
defaultVisibility
- The default visibility of this componentpublic void onlyShowComponent(com.arsdigita.bebop.PageState state, String key)
state
- The state of the current request.key
- The key of the component. There will be no
visibility changes if key is null.public void onlyShowComponent(com.arsdigita.bebop.PageState state, com.arsdigita.bebop.Component c)
state
- The state of the current request.c
- The key of the component. There will be no visibility
changes if c
is null.public void reset(com.arsdigita.bebop.PageState state)
reset
in interface com.arsdigita.bebop.Resettable
state
- The state of the current request.public void register(com.arsdigita.bebop.Page p)
register
in interface com.arsdigita.bebop.Component
p
- The page this container belongs to.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |