|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.salespointframework.core.NullDisplay
public final class NullDisplay
A dummy display, that cannot display anything. This display is used for background processes that
must not display any Form- or MenuSheets. All methods of this display, except
isUseableDisplay()
throw an InvalidDisplayException
.
Field Summary | |
---|---|
static NullDisplay |
s_ndGlobal
The singleton NullDisplay used in the entire application. |
Constructor Summary | |
---|---|
private |
NullDisplay()
Private constructor to make sure the singleton pattern is used. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static NullDisplay s_ndGlobal
Constructor Detail |
---|
private NullDisplay()
Method Detail |
---|
public final void setFormSheet(FormSheet fs)
InvalidDisplayException
.
setFormSheet
in interface Display
fs
- the FormSheet to be displayed.public void setBounds(java.awt.Rectangle r)
InvalidDisplayException
.
setBounds
in interface Display
r
- the Rectangle that contains the size and position information.public java.awt.Rectangle getBounds()
InvalidDisplayException
.
getBounds
in interface Display
public FormSheet getFormSheet()
InvalidDisplayException
.
getFormSheet
in interface Display
public MenuSheet getMenuSheet()
InvalidDisplayException
.
getMenuSheet
in interface Display
public final void closeFormSheet()
InvalidDisplayException
.
closeFormSheet
in interface Display
public final void popUpFormSheet(FormSheet fs)
InvalidDisplayException
.
popUpFormSheet
in interface Display
fs
- the FormSheet to be displayed.public final void setMenuSheet(MenuSheet ms)
InvalidDisplayException
.
setMenuSheet
in interface Display
ms
- the MenuSheet to be displayed. null
is a valid value and should result in the
current MenuSheet being closed.public final boolean isUseableDisplay()
isUseableDisplay
in interface Display
public final void addFormSheetListener(FormSheetListener fsl)
InvalidDisplayException
.
addFormSheetListener
in interface Display
fsl
- the FormSheetListener to be registered.public void removeFormSheetListener(FormSheetListener fsl)
InvalidDisplayException
.
removeFormSheetListener
in interface Display
fsl
- the FormSheetListener to be unregistered.public void toFront()
InvalidDisplayException
.
toFront
in interface Display
public void load(java.io.ObjectInputStream ois) throws java.io.IOException, java.lang.ClassNotFoundException
InvalidDisplayException
.
load
in interface Display
ois
- the stream to read attributes from
java.io.IOException
java.lang.ClassNotFoundException
public void save(java.io.ObjectOutputStream oos) throws java.io.IOException
InvalidDisplayException
.
save
in interface Display
oos
- the stream to write attributes to
java.io.IOException
public void setButtonbarPosition(int position)
Display
setButtonbarPosition
in interface Display
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |