public interface StateAdapter
Modifier and Type | Method and Description |
---|---|
void |
add(Object pTarget)
Add a target object to our adapter.
|
void |
add(Object pTarget,
boolean pInvert)
Add a target object to our adapter.
|
void |
addInvert(Object pTarget)
Add a target object with inverted state change logic to our adapter.
|
String |
getName()
Return the name of the state adapter.
|
void |
remove(Object pTarget)
Removes the handed object of our adapter.
|
void |
setName(String pName)
Set the name of the state adapter.
|
void |
setState(State pState)
Sets (or resets if pState=null) the state this adapter acts on.
|
String getName()
void setName(String pName)
pName
- the name of the state (must not be null)IllegalArgumentException
- if pName is nullvoid setState(State pState)
pState
- null or the state we act uponvoid add(Object pTarget)
pTarget
- target we should act on when our state changesIllegalArgumentException
- if pTarget is nullvoid addInvert(Object pTarget)
pTarget
- target we should act on when our state changesIllegalArgumentException
- if pTarget is nullvoid add(Object pTarget, boolean pInvert)
pTarget
- target we should act on when our state changespInvert
- flag if we should invert the state changeIllegalArgumentException
- if pTarget is nullvoid remove(Object pTarget)
pTarget
- target we should removeCopyright © 2017 Jürgen Zeller (privat). All rights reserved.