com.arsdigita.util.ui
Class RequestLocalSelectionModel

java.lang.Object
  extended bycom.arsdigita.bebop.AbstractSingleSelectionModel
      extended bycom.arsdigita.util.ui.RequestLocalSelectionModel
All Implemented Interfaces:
DomainObjectSelectionModel, Lockable, SingleSelectionModel

Deprecated. This class is used just once in all of the RHEA code base; it will be moved there in the future, so please don't rely on it

public class RequestLocalSelectionModel
extends AbstractSingleSelectionModel
implements DomainObjectSelectionModel


Field Summary
 
Fields inherited from class com.arsdigita.bebop.AbstractSingleSelectionModel
versionId
 
Fields inherited from interface com.arsdigita.kernel.ui.DomainObjectSelectionModel
versionId
 
Constructor Summary
RequestLocalSelectionModel()
          Deprecated.  
RequestLocalSelectionModel(RequestLocal l)
          Deprecated.  
 
Method Summary
 Object getSelectedKey(PageState state)
          Deprecated. Returns the key that identifies the selected element.
 DomainObject getSelectedObject(PageState state)
          Deprecated. Return the item which was selected and loaded from the database, using the values supplied in PageState.
 ParameterModel getStateParameter()
          Deprecated. Returns the state parameter that will be used to keep track of the currently selected key.
 void setSelectedKey(PageState state, Object value)
          Deprecated. Sets the selected key.
 void setSelectedObject(PageState state, DomainObject value)
          Deprecated. Select the given domain object.
 
Methods inherited from class com.arsdigita.bebop.AbstractSingleSelectionModel
addChangeListener, clearSelection, fireStateChanged, isLocked, isSelected, lock, removeChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.arsdigita.bebop.SingleSelectionModel
addChangeListener, clearSelection, isSelected, removeChangeListener
 

Constructor Detail

RequestLocalSelectionModel

public RequestLocalSelectionModel()
Deprecated. 

RequestLocalSelectionModel

public RequestLocalSelectionModel(RequestLocal l)
Deprecated. 
Method Detail

setSelectedKey

public void setSelectedKey(PageState state,
                           Object value)
Deprecated. 
Description copied from interface: SingleSelectionModel
Sets the selected key. If key is not in the collection of objects underlying this model, an IllegalArgumentException is thrown.

Specified by:
setSelectedKey in interface SingleSelectionModel
Specified by:
setSelectedKey in class AbstractSingleSelectionModel

getSelectedKey

public Object getSelectedKey(PageState state)
Deprecated. 
Description copied from interface: SingleSelectionModel
Returns the key that identifies the selected element.

Specified by:
getSelectedKey in interface SingleSelectionModel
Specified by:
getSelectedKey in class AbstractSingleSelectionModel

setSelectedObject

public void setSelectedObject(PageState state,
                              DomainObject value)
Deprecated. 
Description copied from interface: DomainObjectSelectionModel
Select the given domain object. Should extract the selected key from the object in some manner, and call setSelectedKey to change the key.

Specified by:
setSelectedObject in interface DomainObjectSelectionModel
Parameters:
state - The page state
value - The domain object to set

getSelectedObject

public DomainObject getSelectedObject(PageState state)
Deprecated. 
Description copied from interface: DomainObjectSelectionModel
Return the item which was selected and loaded from the database, using the values supplied in PageState.

Specified by:
getSelectedObject in interface DomainObjectSelectionModel
Parameters:
state - The page state
Returns:
The item domain object, or null if no item is selected.

getStateParameter

public ParameterModel getStateParameter()
Deprecated. 
Description copied from interface: SingleSelectionModel
Returns the state parameter that will be used to keep track of the currently selected key. Typically, the implementing class will simply call:
return new StringParameter("foo");

This method may return null if a state parameter is not appropriate in the context of the implementing class.

Specified by:
getStateParameter in interface SingleSelectionModel
Returns:
the state parameter to use to keep track of the currently selected component, or null if a state parameter is not appropriate.


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