|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectWindow
Dialog
JTextReporter
public class JTextReporter
A dialog to display text reports to the user and, if requested, save them to file.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class Window |
---|
Window.IExceptionHandler |
Field Summary |
---|
Fields inherited from class Dialog |
---|
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS |
Fields inherited from class Window |
---|
CANCEL, OK |
Constructor Summary | |
---|---|
JTextReporter(Shell parent,
String title)
Creates a new JTextReporter with the following default options: Remains on top of other application windows Is not modal Will be disposed of when closed |
Method Summary | |
---|---|
void |
append(String text)
Append text to the report being displayed. |
protected void |
configureShell(Shell newShell)
|
protected Button |
createButton(Composite parent,
int id,
String label,
boolean defaultButton)
|
protected Control |
createDialogArea(Composite parent)
|
Methods inherited from class Dialog |
---|
applyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButtonBar, createButtonsForButtonBar, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, isResizable, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText |
Methods inherited from class Window |
---|
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JTextReporter(Shell parent, String title)
dialogTrim
- parent
- title
- title for the dialog (may be null
)rows
- number of text rows displayed without scrolling
(if zero or negative, the default is used)cols
- number of text columns displayed without scrolling
(if zero or negative the default is used)Method Detail |
---|
protected void configureShell(Shell newShell)
configureShell
in class Window
public void append(String text)
If called from other than the AWT event dispatch thread this method puts the append task onto the dispatch thread and waits for its completion.
text
- the text to be appended to the reportprotected Control createDialogArea(Composite parent)
createDialogArea
in class Dialog
protected Button createButton(Composite parent, int id, String label, boolean defaultButton)
createButton
in class Dialog
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |