com.arsdigita.toolbox.ui
Class ItemEditor
java.lang.Object
com.arsdigita.bebop.Completable
com.arsdigita.bebop.SimpleComponent
com.arsdigita.bebop.TextStylable
com.arsdigita.bebop.BlockStylable
com.arsdigita.bebop.SimpleContainer
com.arsdigita.bebop.ModalContainer
com.arsdigita.toolbox.ui.ItemEditor
- All Implemented Interfaces:
- Cloneable, Component, Container, Lockable, Resettable
- public class ItemEditor
- extends ModalContainer
| Fields inherited from class com.arsdigita.bebop.BlockStylable |
ABSBOTTOM, ABSMIDDLE, BASELINE, BOTTOM, CENTER, FULL_WIDTH, INSERT, LEFT, MIDDLE, RIGHT, TEXTTOP, TOP |
| Methods inherited from class com.arsdigita.bebop.SimpleContainer |
add, add, children, contains, generateChildrenXML, generateParent, generateXML, get, getNamespace, getTag, indexOf, isEmpty, setNamespace, setTag, size |
| 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 interface com.arsdigita.bebop.Component |
getClassAttr, getIdAttr, getKey, getStyleAttr, isVisible, register, respond, setClassAttr, setIdAttr, setKey, setStyleAttr, setVisible |
versionId
public static final String versionId
- See Also:
- Constant Field Values
ItemEditor
public ItemEditor()
setSummary
public final void setSummary(Label heading,
Component summary)
setDetails
public final void setDetails(Component details)
setEdit
public final void setEdit(ActionLink editLink,
Form edit)
setDelete
public final void setDelete(ActionLink deleteLink,
Form delete)
setReturn
public final void setReturn(ActionLink returnLink)
register
public void register(Page page)
- 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 ModalContainer
setDefaultComponent
public final void setDefaultComponent(Component component)
- Overrides:
setDefaultComponent in class ModalContainer
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 19 2004:2337 UTC