|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
An interface for main window implementations.
| Field Summary | |
static int |
ERROR
|
static int |
INFO
|
static int |
QUESTION
|
static int |
WARNING
|
| Method Summary | |
DocumentWindow |
createDocumentWindow()
Creates a new document window. |
List |
getDocumentWindows()
Gets a list of all currently opened document windows. |
ProgressMonitor |
getProgressMonitor()
Gets the default progress monitor for this main window. |
void |
printDocument()
Prints the current document. |
void |
setBusy(boolean busy)
Sets the busy flag. |
void |
setStatus(String status)
Sets the statusbar text. |
int |
showDialog(int type,
Window window,
String message,
String[] choices,
int defaultChoice)
Displays a dialog box. |
String |
showFileOpenDialog(FileFormat[] formats)
Shows a file open dialog for the given file formats. |
String |
showFileSaveDialog(FileFormat[] formats,
String initialName)
Shows a file save dialog for the given file formats. |
void |
showMessage(int type,
Window window,
String message)
Displays a message box. |
void |
showPrintPreview()
Shows a print preview dialog for the current document. |
void |
showPrintSetup()
Shows a dialog allowing the user to setup printing options. |
| Methods inherited from interface org.bs.mdi.Window |
close, getTitle, hide, repaint, setTitle, show |
| Field Detail |
public static final int QUESTION
public static final int INFO
public static final int WARNING
public static final int ERROR
| Method Detail |
public DocumentWindow createDocumentWindow()
public List getDocumentWindows()
public String showFileOpenDialog(FileFormat[] formats)
formats - the file formats which are used to setup the file filters
public String showFileSaveDialog(FileFormat[] formats,
String initialName)
formats - the file formats which are used to setup the file filtersinitialName - the initial file name
public void showMessage(int type,
Window window,
String message)
type - the type: QUESTION, INFO,
WARNING or ERROR,window - the window which this message concerns, or
null if it concerns the entire application.message - the message to be displayed (note: the message is
not automatically translated by passing it to
Application.tr(java.lang.String))
public int showDialog(int type,
Window window,
String message,
String[] choices,
int defaultChoice)
type - the type: QUESTION, INFO,
WARNING or ERROR,window - the document window which this message concerns, or
null if it concerns the entire application.message - the message to be displayed (note: the message is
not automatically translated by passing it to
Application.tr(java.lang.String))choices - the choices to be presented to the user (note: the options
are - unlike the message - translated by passing it to Application.tr(java.lang.String))defaultChoice - the index of the default choice
public void showPrintSetup()
public void showPrintPreview()
public void printDocument()
public void setStatus(String status)
status - the statusbar textpublic void setBusy(boolean busy)
busy - true if the busy indication should be enabled, false otherwisepublic ProgressMonitor getProgressMonitor()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||