SalesPoint v3.3 API

sale
Class NullDisplay

java.lang.Object
  extended by sale.NullDisplay
All Implemented Interfaces:
Display

public final class NullDisplay
extends Object
implements Display

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.

Since:
v2.0
Author:
Steffen Zschaler

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

s_ndGlobal

public static NullDisplay s_ndGlobal
The singleton NullDisplay used in the entire application.

Method Detail

setFormSheet

public final void setFormSheet(FormSheet fs)
Throws an InvalidDisplayException.

Specified by:
setFormSheet in interface Display
Parameters:
fs - the FormSheet to be displayed.
Override:
Never

setBounds

public void setBounds(Rectangle r)
Throws an InvalidDisplayException.

Specified by:
setBounds in interface Display
Parameters:
r - the Rectangle that contains the size and position information.
Override:
Never

getBounds

public Rectangle getBounds()
Throws an InvalidDisplayException.

Specified by:
getBounds in interface Display
Override:
Never

getFormSheet

public FormSheet getFormSheet()
Throws an InvalidDisplayException.

Specified by:
getFormSheet in interface Display
Override:
Never

getMenuSheet

public MenuSheet getMenuSheet()
Throws an InvalidDisplayException.

Specified by:
getMenuSheet in interface Display
Override:
Never

closeFormSheet

public final void closeFormSheet()
Throws an InvalidDisplayException.

Specified by:
closeFormSheet in interface Display
Override:
Never

popUpFormSheet

public final void popUpFormSheet(FormSheet fs)
Throws an InvalidDisplayException.

Specified by:
popUpFormSheet in interface Display
Parameters:
fs - the FormSheet to be displayed.
Override:
Never

setMenuSheet

public final void setMenuSheet(MenuSheet ms)
Throws an InvalidDisplayException.

Specified by:
setMenuSheet in interface Display
Parameters:
ms - the MenuSheet to be displayed. null is a valid value and should result in the current MenuSheet being closed.
Override:
Never

isUseableDisplay

public final boolean isUseableDisplay()
Returns false to indicate this display is not useable.

Specified by:
isUseableDisplay in interface Display
Override:
Never

addFormSheetListener

public final void addFormSheetListener(FormSheetListener fsl)
Throws an InvalidDisplayException.

Specified by:
addFormSheetListener in interface Display
Parameters:
fsl - the FormSheetListener to be registered.
Override:
Never

removeFormSheetListener

public void removeFormSheetListener(FormSheetListener fsl)
Throws an InvalidDisplayException.

Specified by:
removeFormSheetListener in interface Display
Parameters:
fsl - the FormSheetListener to be unregistered.
Override:
Never

toFront

public void toFront()
Throws an InvalidDisplayException.

Specified by:
toFront in interface Display
Override:
Never

load

public void load(ObjectInputStream ois)
          throws IOException,
                 ClassNotFoundException
Throws an InvalidDisplayException.

Specified by:
load in interface Display
Parameters:
ois - the stream to read attributes from
Throws:
IOException
ClassNotFoundException
Override:
Never

save

public void save(ObjectOutputStream oos)
          throws IOException
Throws an InvalidDisplayException.

Specified by:
save in interface Display
Parameters:
oos - the stream to write attributes to
Throws:
IOException
Override:
Never

SalesPoint v3.3 API