|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.oddjob.state.BaseStateChanger<S>
S
- The type of State.public class BaseStateChanger<S extends State>
Base functionality for changing State
. This utility class is
responsible for notifying the change with the StateHandler
,
changing the icon, and persisting the job if necessary.
Constructor Summary | |
---|---|
BaseStateChanger(StateHandler<S> stateHandler,
IconHelper iconHelper,
Persistable persistable,
S exceptionState)
|
Method Summary | |
---|---|
void |
setState(S state)
Set the state to given state. |
void |
setState(S state,
Date date)
Set the state to the given state with the given event time. |
void |
setStateException(Throwable t)
Set the state to an EXCEPTION state. |
void |
setStateException(Throwable t,
Date date)
Set the state to an EXCEPTION state with the given event time. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BaseStateChanger(StateHandler<S> stateHandler, IconHelper iconHelper, Persistable persistable, S exceptionState)
Method Detail |
---|
public void setState(S state)
StateChanger
setState
in interface StateChanger<S extends State>
public void setState(S state, Date date)
StateChanger
setState
in interface StateChanger<S extends State>
public void setStateException(Throwable t)
StateChanger
setStateException
in interface StateChanger<S extends State>
t
- The Exception.public void setStateException(Throwable t, Date date)
StateChanger
setStateException
in interface StateChanger<S extends State>
t
- The Exception.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |