|
SalesPoint v3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sale.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. |
Method Summary | |
---|---|
void |
addFormSheetListener(FormSheetListener fsl)
Throws an InvalidDisplayException . |
void |
closeFormSheet()
Throws an InvalidDisplayException . |
Rectangle |
getBounds()
Throws an InvalidDisplayException . |
FormSheet |
getFormSheet()
Throws an InvalidDisplayException . |
MenuSheet |
getMenuSheet()
Throws an InvalidDisplayException . |
boolean |
isUseableDisplay()
Returns false to indicate this display is not useable. |
void |
load(ObjectInputStream ois)
Throws an InvalidDisplayException . |
void |
popUpFormSheet(FormSheet fs)
Throws an InvalidDisplayException . |
void |
removeFormSheetListener(FormSheetListener fsl)
Throws an InvalidDisplayException . |
void |
save(ObjectOutputStream oos)
Throws an InvalidDisplayException . |
void |
setBounds(Rectangle r)
Throws an InvalidDisplayException . |
void |
setFormSheet(FormSheet fs)
Throws an InvalidDisplayException . |
void |
setMenuSheet(MenuSheet ms)
Throws an InvalidDisplayException . |
void |
toFront()
Throws an InvalidDisplayException . |
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
Method Detail |
---|
public final void setFormSheet(FormSheet fs)
InvalidDisplayException
.
setFormSheet
in interface Display
fs
- the FormSheet to be displayed.public void setBounds(Rectangle r)
InvalidDisplayException
.
setBounds
in interface Display
r
- the Rectangle that contains the size and position information.public 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(ObjectInputStream ois) throws IOException, ClassNotFoundException
InvalidDisplayException
.
load
in interface Display
ois
- the stream to read attributes from
IOException
ClassNotFoundException
public void save(ObjectOutputStream oos) throws IOException
InvalidDisplayException
.
save
in interface Display
oos
- the stream to write attributes to
IOException
|
SalesPoint v3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |