|
Eclipse Platform Release 3.2 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An object that holds zero or more state objects. This state information can
be shared between different instances of IObjectWithState
.
Clients may implement, but must not extend this interface.
AbstractHandlerWithState
Method Summary | |
---|---|
void |
addState(String id,
State state)
Adds state to this object. |
State |
getState(String stateId)
Gets the state with the given id. |
String[] |
getStateIds()
Gets the identifiers for all of the state associated with this object. |
void |
removeState(String stateId)
Removes state from this object. |
Method Detail |
public void addState(String id, State state)
id
- The identifier indicating the type of state being added; must
not be null
.state
- The new state to add to this object; must not be
null
.public State getState(String stateId)
stateId
- The identifier of the state to retrieve; must not be
null
.
null
if there is no state with
the given id.public String[] getStateIds()
null
.public void removeState(String stateId)
stateId
- The id of the state to remove from this object; must not be
null
.
|
Eclipse Platform Release 3.2 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.