com.arsdigita.cms.contenttypes.ui
Class LinkPropertiesStep

java.lang.Object
  extended bycom.arsdigita.bebop.Completable
      extended bycom.arsdigita.bebop.SimpleComponent
          extended bycom.arsdigita.bebop.TextStylable
              extended bycom.arsdigita.bebop.BlockStylable
                  extended bycom.arsdigita.bebop.SimpleContainer
                      extended bycom.arsdigita.cms.contenttypes.ui.ResettableContainer
                          extended bycom.arsdigita.cms.contenttypes.ui.LinkPropertiesStep
All Implemented Interfaces:
Cloneable, com.arsdigita.bebop.Component, com.arsdigita.bebop.Container, com.arsdigita.util.Lockable, com.arsdigita.bebop.Resettable

public abstract class LinkPropertiesStep
extends ResettableContainer

Authoring step to create a link and change ordering. This class is declared abstract, as this and related Link* base classes do not assign the Links to a specific role/association. RelatedLinkPropertiesStep extends this functionality to view/assign RelatedLinks in the specific "links" role on ContentItem.


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
LinkPropertiesStep(ItemSelectionModel itemModel, AuthoringKitWizard parent)
          Constructor.
 
Method Summary
 com.arsdigita.bebop.Component getDisplayComponent()
          Gets the display compoent for this authoring step.
protected  com.arsdigita.bebop.FormSection getEditSheet()
          Gets the edit form
protected  ItemSelectionModel getItemSelectionModel()
          Gets the ItemSelectionModel for this authoring step.
protected  com.arsdigita.bebop.parameters.BigDecimalParameter getLinkParam()
          Gets the link parameter for this authoring step.
protected  LinkSelectionModel getLinkSelectionModel()
          Gets the LinkSelectionModel for this authoring step.
 void register(com.arsdigita.bebop.Page p)
          When this component is registered, the link parameter is added as a ComponentStateParameter
protected  void setLinkSelectionModel()
          Sets the LinkSelectionModel for this authoring step.
protected  void setLinkSelectionModel(LinkSelectionModel linkModel)
          Sets the LinkSelectionModel for this authoring step.
 
Methods inherited from class com.arsdigita.cms.contenttypes.ui.ResettableContainer
add, add, add, onlyShowComponent, onlyShowComponent, reset
 
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

LinkPropertiesStep

public LinkPropertiesStep(ItemSelectionModel itemModel,
                          AuthoringKitWizard parent)
Constructor. Creates a LinkPropertiesStep given an ItemSelectionModel and an AuthoringKitWizard.

Parameters:
itemModel - The ItemSelectionModel for the current page.
parent - The AuthoringKitWizard to track the current link
Method Detail

setLinkSelectionModel

protected void setLinkSelectionModel()
Sets the LinkSelectionModel for this authoring step. Subclasses should override this method if a custom LinkSelectionModel is desired.


setLinkSelectionModel

protected void setLinkSelectionModel(LinkSelectionModel linkModel)
Sets the LinkSelectionModel for this authoring step.

Parameters:
linkModel - The LinkSelectionModel to use for the authoring step

getLinkSelectionModel

protected LinkSelectionModel getLinkSelectionModel()
Gets the LinkSelectionModel for this authoring step.

Returns:
The LinkSelectionModel to use for the authoring step

getItemSelectionModel

protected ItemSelectionModel getItemSelectionModel()
Gets the ItemSelectionModel for this authoring step.

Returns:
The ItemSelectionModel to use for the authoring step

getLinkParam

protected com.arsdigita.bebop.parameters.BigDecimalParameter getLinkParam()
Gets the link parameter for this authoring step.

Returns:
The link parameter to use for the authoring step

getDisplayComponent

public com.arsdigita.bebop.Component getDisplayComponent()
Gets the display compoent for this authoring step.

Returns:
The display component to use for the authoring step

getEditSheet

protected com.arsdigita.bebop.FormSection getEditSheet()
Gets the edit form

Returns:
The edit form

register

public void register(com.arsdigita.bebop.Page p)
When this component is registered, the link parameter is added as a ComponentStateParameter

Specified by:
register in interface com.arsdigita.bebop.Component
Overrides:
register in class ResettableContainer
Parameters:
p - The Page object


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