com.arsdigita.cms.contenttypes.ui
Class LinkSelectionModel

java.lang.Object
  extended bycom.arsdigita.kernel.ui.ACSObjectSelectionModel
      extended bycom.arsdigita.cms.contenttypes.ui.LinkSelectionModel
All Implemented Interfaces:
com.arsdigita.kernel.ui.DomainObjectSelectionModel, com.arsdigita.bebop.SingleSelectionModel

public class LinkSelectionModel
extends com.arsdigita.kernel.ui.ACSObjectSelectionModel

SelectionModel to track the current Link object for view/edit purposes.


Field Summary
 
Fields inherited from interface com.arsdigita.kernel.ui.DomainObjectSelectionModel
versionId
 
Constructor Summary
LinkSelectionModel(com.arsdigita.bebop.parameters.BigDecimalParameter param)
           
LinkSelectionModel(String itemClass, String objectType, com.arsdigita.bebop.parameters.BigDecimalParameter parameter)
          Construct a new LinkSelectionModel
 
Method Summary
 Link getSelectedLink(com.arsdigita.bebop.PageState state)
          Returns the currently-selected Link
 
Methods inherited from class com.arsdigita.kernel.ui.ACSObjectSelectionModel
addChangeListener, clearSelection, createACSObject, createACSObject, getJavaClass, getObjectType, getSelectedKey, getSelectedObject, getSingleSelectionModel, getStateParameter, isInitialized, isSelected, loadACSObject, removeChangeListener, setSelectedKey, setSelectedObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkSelectionModel

public LinkSelectionModel(com.arsdigita.bebop.parameters.BigDecimalParameter param)

LinkSelectionModel

public LinkSelectionModel(String itemClass,
                          String objectType,
                          com.arsdigita.bebop.parameters.BigDecimalParameter parameter)
Construct a new LinkSelectionModel

Parameters:
itemClass - The name of the Java class which represents the content item. Must be a subclass of Link. In addition, the class must have a constructor with a single OID parameter.
objectType - The name of the persistence metadata object type which represents the content item. In practice, will often be the same as the itemClass.
parameter - The state parameter which should be used by this item
Method Detail

getSelectedLink

public Link getSelectedLink(com.arsdigita.bebop.PageState state)
Returns the currently-selected Link

Parameters:
state - the PageState for the current request.
Returns:
The current Link


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