|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.salespointframework.core.UIGate
public class UIGate
A gate at which a FormSheet and/or a MenuSheet can be displayed. The
transition that leaves the gate will depend on the users interaction with the Form-
and/or MenuSheet.
| Field Summary | |
|---|---|
private static int |
FORMSHEET
The FormSheet changed. |
protected FormSheet |
m_fsFormSheet
The FormSheet to be displayed. |
protected MenuSheet |
m_msMenuSheet
The MenuSheet to be displayed. |
private int |
m_nChanged
Bit field indicating the last change. |
private java.lang.Object |
m_oLock
The monitor synchronizing access to the elements as well as a communications channel. |
private Transition |
m_tTransition
The transition that will leave this gate. |
private static int |
MENUSHEET
The MenuSheet changed. |
private static int |
NOTHING
Nothing changed. |
private static int |
TRANSITION
The transition was set. |
| Constructor Summary | |
|---|---|
UIGate(FormSheet fs,
MenuSheet ms)
Create a new UIGate. |
|
| Method Summary | |
|---|---|
FormSheet |
getFormSheet()
get the FormSheet that is being displayed at this gate. |
private java.lang.Object |
getLock()
Return the monitor synchronizing access to the elements as well as a communications channel. |
MenuSheet |
getMenuSheet()
get the MenuSheet that is being displayed at this gate. |
Transition |
getNextTransition(SaleProcess pOwner,
User usr,
boolean stay)
Returns the next Transition to jump to. |
void |
setFormSheet(FormSheet fs)
Set the FormSheet that is being displayed at this Gate. |
void |
setMenuSheet(MenuSheet ms)
Set the MenuSheet that is being displayed at this gate. |
void |
setNextTransition(Transition tNext)
Set the transition that will leave this gate. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected FormSheet m_fsFormSheet
protected MenuSheet m_msMenuSheet
private transient Transition m_tTransition
private transient java.lang.Object m_oLock
private transient int m_nChanged
private static final int NOTHING
private static final int FORMSHEET
private static final int MENUSHEET
private static final int TRANSITION
| Constructor Detail |
|---|
public UIGate(FormSheet fs,
MenuSheet ms)
fs - the FormSheet to be displayed. Can be null.ms - the MenuSheet to be displayed. Can be null.| Method Detail |
|---|
private final java.lang.Object getLock()
public Transition getNextTransition(SaleProcess pOwner,
User usr,
boolean stay)
throws java.lang.InterruptedException
getNextTransition in interface GatepOwner - the process that entered the gate and triggered the method.usr - the user currently active in the process' ProcessContext
java.lang.InterruptedException - if an interrupt ocurred while at the gate.public void setFormSheet(FormSheet fs)
fs - the new FormSheetpublic FormSheet getFormSheet()
FormSheet that is being displayed at this gate.
FormSheetpublic void setMenuSheet(MenuSheet ms)
ms - the MenuSheet.public MenuSheet getMenuSheet()
MenuSheet that is being displayed at this gate.
public void setNextTransition(Transition tNext)
tNext - the transition. Must not be null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||