com.arsdigita.kernel.ui
Interface DomainObjectSelectionModel

All Superinterfaces:
SingleSelectionModel
All Known Subinterfaces:
DomainObjectSelectionModel
All Known Implementing Classes:
ACSObjectSelectionModel, RequestLocalSelectionModel

public interface DomainObjectSelectionModel
extends SingleSelectionModel

A SingleSelectionModel which loads an item from the database. The isSelected() method will return true if it was possible to load the item.


Field Summary
static String versionId
           
 
Method Summary
 DomainObject getSelectedObject(PageState state)
          Return the item which was selected and loaded from the database, using the values supplied in PageState.
 void setSelectedObject(PageState state, DomainObject object)
          Select the given domain object.
 
Methods inherited from interface com.arsdigita.bebop.SingleSelectionModel
addChangeListener, clearSelection, getSelectedKey, getStateParameter, isSelected, removeChangeListener, setSelectedKey
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Method Detail

getSelectedObject

public DomainObject getSelectedObject(PageState state)
Return the item which was selected and loaded from the database, using the values supplied in PageState.

Parameters:
state - The page state
Returns:
The item domain object, or null if no item is selected.

setSelectedObject

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

Parameters:
state - The page state
object - The domain object to set


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