com.arsdigita.cms.ui.authoring
Class SimpleEditStep
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.PropertyEditor
com.arsdigita.cms.ui.SecurityPropertyEditor
com.arsdigita.cms.ui.authoring.SimpleEditStep
- All Implemented Interfaces:
- AuthoringStepComponent, Cloneable, com.arsdigita.bebop.Component, com.arsdigita.bebop.Container, EventListener, com.arsdigita.util.Lockable, com.arsdigita.bebop.event.RequestListener
- Direct Known Subclasses:
- ContentGroupPropertiesStep, PageEdit, TemplateEdit
- public class SimpleEditStep
- extends SecurityPropertyEditor
- implements AuthoringStepComponent, com.arsdigita.bebop.event.RequestListener
A simple implementation of an Authoring Kit editing step.
Extends SecurityPropertyEditor
and provides authoring kit
integration. See the authoring kit documentation for more
info.
Child classes should
a). call setDisplayComponent()
b). call add() zero or more times
- Author:
- Stanislav Freidin
Nested classes inherited from class com.arsdigita.bebop.PropertyEditor |
com.arsdigita.bebop.PropertyEditor.DefaultModel, com.arsdigita.bebop.PropertyEditor.DefaultModelBuilder, com.arsdigita.bebop.PropertyEditor.IdentityCellRenderer |
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.Component |
BEBOP_XML_NS, CLASS, ID, ON_CLICK, STYLE |
Method Summary |
void |
cancelStreamlinedCreation(com.arsdigita.bebop.PageState state)
Cancel streamlined creation for this step if the streamlined
creation parameter is turned on _and_ the streamlined_creation
global state param is set to 'active' |
ItemSelectionModel |
getItemSelectionModel()
|
AuthoringKitWizard |
getParentWizard()
|
void |
maybeForwardToNextStep(com.arsdigita.bebop.PageState state)
Forward to the next step if the streamlined creation parameter
is turned on _and_ the streamlined_creation global state param
is set to 'active' |
void |
pageRequested(com.arsdigita.bebop.event.RequestEvent e)
Open the edit component if the streamlined
creation parameter is turned on _and_ the streamlined_creation
global state param is set to 'active' |
void |
register(com.arsdigita.bebop.Page p)
Registers globa state param for cancelling streamlined
creation |
void |
setDefaultEditKey(String key)
|
Methods inherited from class com.arsdigita.bebop.PropertyEditor |
add, add, add, add, addCancelListener, addComponent, addComponent, addProcessListener, addVisibilityListener, getComponent, getDisplayComponent, getDisplayPane, getLabelsMap, getList, getModel, getModelBuilder, getSelectedComponentKey, lock, setDisplayComponent, setModelBuilder, showComponent, showDisplayPane |
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.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, register, respond, setAttribute, setClassAttr, setIdAttr, setKey, setMetaDataAttribute, setStyleAttr, setVisible |
Methods inherited from class com.arsdigita.bebop.Completable |
addCompletionListener, fireCompletionEvent |
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 |
versionId
public static final String versionId
- See Also:
- Constant Field Values
SimpleEditStep
public SimpleEditStep(ItemSelectionModel itemModel,
AuthoringKitWizard parent)
- Construct a new SimpleEditStep component
- Parameters:
itemModel
- The ItemSelectionModel
which will
be responsible for loading the current itemparent
- The parent wizard which contains the form.
The component may use the wizard's methods, such as stepForward
and stepBack, in its process listener.
SimpleEditStep
public SimpleEditStep(ItemSelectionModel itemModel,
AuthoringKitWizard parent,
String paramSuffix)
- Construct a new SimpleEditStep component
- Parameters:
itemModel
- The ItemSelectionModel
which will
be responsible for loading the current itemparent
- The parent wizard which contains the form.
The component may use the wizard's methods, such as stepForward
and stepBack, in its process listener.paramSuffix
- Additional global parameter name suffix if
there are multiple SimpleEditStep instances in an authoring kit.
register
public void register(com.arsdigita.bebop.Page p)
- Registers globa state param for cancelling streamlined
creation
- Specified by:
register
in interface com.arsdigita.bebop.Component
getParentWizard
public AuthoringKitWizard getParentWizard()
- Returns:
- the parent wizard
getItemSelectionModel
public ItemSelectionModel getItemSelectionModel()
- Returns:
- The item selection model
maybeForwardToNextStep
public void maybeForwardToNextStep(com.arsdigita.bebop.PageState state)
- Forward to the next step if the streamlined creation parameter
is turned on _and_ the streamlined_creation global state param
is set to 'active'
- Parameters:
state
- the PageState
cancelStreamlinedCreation
public void cancelStreamlinedCreation(com.arsdigita.bebop.PageState state)
- Cancel streamlined creation for this step if the streamlined
creation parameter is turned on _and_ the streamlined_creation
global state param is set to 'active'
- Parameters:
state
- the PageState
setDefaultEditKey
public void setDefaultEditKey(String key)
pageRequested
public void pageRequested(com.arsdigita.bebop.event.RequestEvent e)
- Open the edit component if the streamlined
creation parameter is turned on _and_ the streamlined_creation
global state param is set to 'active'
- Specified by:
pageRequested
in interface com.arsdigita.bebop.event.RequestListener
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 19 2004:2352 UTC