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.
versionId
public static final String versionId
- See Also:
- Constant Field Values
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 stateobject
- The domain object to set
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC