public interface ApplicationMethods
| Modifier and Type | Field and Description |
|---|---|
static int |
CANCEL
Constant for CANCEL
|
static int |
CLOSED_WINDOW
Constant for if user closed window
|
static int |
NO
Constant for NO
|
static int |
YES
Constant for yes
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionExit()
Internal use!
|
void |
addWindow(G9DialogController dialogController)
Internal use.
|
void |
addWindow(G9DialogController dialogController,
boolean doInit)
Internal use.
|
boolean |
applicationExceptionHandler(Throwable bad)
Application-wide default handler for alle Runtime Exceptions.
|
boolean |
checkForeignNodes()
If the checkForeginNodes flag is
true (the default value),
foreign nodes are checked as part of the checkRowSelect when a selected
line changes in a listblock. |
void |
commonViewStartup(JFrame frame,
G9DialogController gc)
This method is called each time a window is created outside of a MDI
context.
|
void |
commonViewStartup(JInternalFrame frame,
G9DialogController gc)
This method is called each time a window is created in an MDI setting.
|
G9DialogController |
createDialog(String name)
Creates a dialog with the given name.
|
G9DialogController |
createDialog(String name,
boolean add)
Creates a dialog with the given name.
|
G9DialogController |
getActiveInternalWindow() |
List |
getAddedWindows()
Returns the windows present in the application.
|
G9MenuBar |
getApplicationMenuBar()
Returns the menu bar of the application.
|
String |
getApplicationName()
Get name of running application.
|
G9ToolBar |
getApplicationToolBar()
Returns the the application tool bar.
|
JFrame |
getApplicationWindow()
Returns the JFrame MDI appclication window.
|
G9DialogController |
getDialog(String name)
Searches through the added dialogs and returns that one if there exist a
dialog with the given name.
|
G9Enums |
getEnums()
Access method for the dynamic enumeration helper.
|
G9DesktopPane |
getG9DesktopPane()
Returns the desktop pane of this application window.
|
RuntimeException |
getLastException()
Gets the last exception that occured.
|
G9DialogController |
getModal()
Returns the controller window that is modal if any.
|
G9DialogController |
getOldDialogOrCreateNew(String name)
Searches through the added dialogs and returns that one if there exist a
dialog with the given name.
|
StatusBar |
getStatusBar()
Returns the status bar, used for displaying messages.
|
boolean |
isWindowAdded(String name)
Checks if there exist a dialog with the given name.
|
int |
multiMessageBox(String message,
Object[] params,
Object[] choices,
String standardChoice,
String title)
Deprecated.
use the
MessageDispatcher.dispatch(java.lang.String, java.lang.Object...)
instead. |
int |
multiMessageBox(String message,
Object[] choices,
String standardChoice,
String title)
Deprecated.
use the
MessageDispatcher.dispatch(java.lang.String, java.lang.Object...)
instead. |
void |
okMessageBox(String message,
Object[] params,
String title)
Deprecated.
use the
MessageDispatcher.dispatch(java.lang.String, java.lang.Object...)
instead. |
void |
okMessageBox(String message,
String title)
Deprecated.
use the
MessageDispatcher.dispatch(java.lang.String, java.lang.Object...)
instead. |
void |
sendG9DataEvent(G9DataEvent eventObject)
Calls g9DataEvent in all open window controllers with eventObject as
parameter.
|
void |
setCheckForeignNodes(boolean doCheck)
Sets the checkForeignNodes flag.
|
void |
setLastException(RuntimeException e)
Sets the last exception that occured.
|
void |
setModal(G9DialogController g,
boolean isModal)
Makes the window controlled by this controller modal.
|
void |
statusBarMessage(String message,
boolean bell)
Deprecated.
use the
StatusBar instead. |
void |
statusBarMessage(String message,
boolean bell,
int seconds)
Deprecated.
use the
StatusBar instead. |
void |
statusBarMessage(String message,
Object[] params,
boolean bell)
Deprecated.
use the
StatusBar instead. |
void |
statusBarMessage(String message,
Object[] params,
boolean bell,
int seconds)
Deprecated.
use the
StatusBar instead. |
void |
toFront()
Requests application to be moved to front and given focus
|
boolean |
visitAll(DialogVisitor pVisitor)
Run a visitor on all open dialogs.
|
int |
yesNoCancelMessageBox(String message,
int standardValue,
String title)
Deprecated.
use the
MessageDispatcher.dispatch(java.lang.String, java.lang.Object...)
instead. |
int |
yesNoCancelMessageBox(String message,
Object[] params,
int standardValue,
String title)
Deprecated.
use the
MessageDispatcher.dispatch(java.lang.String, java.lang.Object...)
instead. |
int |
yesNoMessageBox(String message,
int standardValue,
String title)
Deprecated.
use the
MessageDispatcher.dispatch(java.lang.String, java.lang.Object...)
instead. |
int |
yesNoMessageBox(String message,
Object[] params,
int standardValue,
String title)
Deprecated.
use the
MessageDispatcher.dispatch(java.lang.String, java.lang.Object...)
instead. |
static final int YES
static final int NO
static final int CANCEL
static final int CLOSED_WINDOW
boolean applicationExceptionHandler(Throwable bad)
bad - the caught exceptionString getApplicationName()
JFrame getApplicationWindow()
G9Enums getEnums()
@Deprecated void statusBarMessage(String message, boolean bell)
StatusBar instead.message - The message to display to the user.bell - If true bell will be sent.@Deprecated void statusBarMessage(String message, Object[] params, boolean bell)
StatusBar instead.message - The message to display.params - The arguments to be substituted, as defined by
java.text.MessageFormat.bell - If true bell will be sent.@Deprecated void statusBarMessage(String message, boolean bell, int seconds)
StatusBar instead.message - The message to display.bell - If true bell will be sent.seconds - The amount of time in seconds the message will be visible.void toFront()
@Deprecated void statusBarMessage(String message, Object[] params, boolean bell, int seconds)
StatusBar instead.message - The message to sparams - The arguments to be substituted, as defined by
java.text.MessageFormat.bell - If true bell will be sent.seconds - The amount of time in seconds the message will be visible.@Deprecated void okMessageBox(String message, String title)
MessageDispatcher.dispatch(java.lang.String, java.lang.Object...)
instead.message - The title of the displayed message box.title - The title of the message box.@Deprecated int yesNoMessageBox(String message, int standardValue, String title)
MessageDispatcher.dispatch(java.lang.String, java.lang.Object...)
instead.message - The message to display.standardValue - The default choice of the buttons, as defined by
Application.YES/Application.NO.title - The title of the displayed message box.@Deprecated int yesNoCancelMessageBox(String message, int standardValue, String title)
MessageDispatcher.dispatch(java.lang.String, java.lang.Object...)
instead.message - The message to display.standardValue - The default choice of the buttons, as defined by
Application.YES/Application.CANCEL/Application.NO.title - The title of the displayed message box.@Deprecated int multiMessageBox(String message, Object[] choices, String standardChoice, String title)
MessageDispatcher.dispatch(java.lang.String, java.lang.Object...)
instead.message - The message to display.choices - The choices the user should have. This should be an array
of Strings.standardChoice - The choice that is the standard choice.title - The title of the displayed message box.@Deprecated void okMessageBox(String message, Object[] params, String title)
MessageDispatcher.dispatch(java.lang.String, java.lang.Object...)
instead.message - The message to display.params - Options to be replaced in the message as defined by
java.text.MessageFormat.title - The title of the displayed message box.@Deprecated int yesNoMessageBox(String message, Object[] params, int standardValue, String title)
MessageDispatcher.dispatch(java.lang.String, java.lang.Object...)
instead.message - The message to display.params - Options to be replaced in the message as defined by
java.text.MessageFormat.standardValue - The standard value to display, Application.YES or
Application.NO.title - The title of the displayed message box.@Deprecated int yesNoCancelMessageBox(String message, Object[] params, int standardValue, String title)
MessageDispatcher.dispatch(java.lang.String, java.lang.Object...)
instead.message - The message to display.params - Options to be replaced in the message as defined by
java.text.MessageFormat.standardValue - The standard value to display, Application.YES,
Application.NO or Application.CANCEL.title - The title of the displayed message box.@Deprecated int multiMessageBox(String message, Object[] params, Object[] choices, String standardChoice, String title)
MessageDispatcher.dispatch(java.lang.String, java.lang.Object...)
instead.message - The message to display.params - Options to be replaced in the message as defined by
java.text.MessageFormat.choices - Array of strings with the choices for the user.standardChoice - The String that matches one of the strings sent in
the params list that is to be the default choice of the
message box.title - The title of the displayed message box.boolean isWindowAdded(String name)
name - As defined in g9 (dmdialog).true if the dialog exists.G9DialogController createDialog(String name)
name - The dialog name as defined in g9.G9DialogController createDialog(String name, boolean add)
true the window is added to the application and made
visible.
If the created dialog is a dialog box, and the dialog box is made visible
(the second parameter is true the method will not return
until the dialog is closed or made invisible.
name - The dialog name as defined in g9add - if true the dialog is added and shown.G9DialogController getOldDialogOrCreateNew(String name)
If the dialog is a new, modal dialog box, this method will not return until the dialog is closed or hidden.
name - The dialog name as defined in g9.void addWindow(G9DialogController dialogController)
dialogController - (missing javadoc)void addWindow(G9DialogController dialogController, boolean doInit)
dialogController - (missing javadoc)doInit - (missing javadoc)G9DialogController getDialog(String name)
name - The dialog name as defined in g9.void sendG9DataEvent(G9DataEvent eventObject)
eventObject - The data object that is to be sent. The message is
user defined.void setModal(G9DialogController g, boolean isModal)
g - The controller to set.isModal - True makes it modal, false makes it unmodal.G9DialogController getModal()
void commonViewStartup(JInternalFrame frame, G9DialogController gc)
public void commonViewStartup(JInternalFrame frame, G9DialogController gc) {
frame.setResizable(false);
frame.setIconifiable(true);
frame.setFrameIcon(getMyLogo());
}
frame - The internal frame just activated.gc - Its matching controller object.void commonViewStartup(JFrame frame, G9DialogController gc)
frame - The frame just activatedgc - Its matching controller object.StatusBar getStatusBar()
List getAddedWindows()
G9DialogController getActiveInternalWindow()
G9DesktopPane getG9DesktopPane()
G9DesktopPaneG9MenuBar getApplicationMenuBar()
G9MenuBarvoid actionExit()
Exit the application. Open dialogs that have a WMClose event defined are closed gracefully. If all open dialogs where closed, the application exits (invokes System.exit(0)).
boolean visitAll(DialogVisitor pVisitor)
pVisitor - The actual DialogVisitortrue if all visited dialogs returns
true, otherwise falseG9ToolBar getApplicationToolBar()
G9ToolBarvoid setLastException(RuntimeException e)
e - the last exceptionRuntimeException getLastException()
boolean checkForeignNodes()
true (the default value),
foreign nodes are checked as part of the checkRowSelect when a selected
line changes in a listblock. The listblock might override this value.void setCheckForeignNodes(boolean doCheck)
true (the
default value) then all nodes that are visible in a listblock are checked
for modifications when a listblock line select change occurs. If this
flag is false the listblock role's node is checked among
with its children (the nodes in the listblock role's object selection
tree).
This value can be overridden by a listblock instance, in which case the overridden value will be used to determine the behaviour of the checkRowSelect method.
doCheck - the boolean value of the checkForeingNodesFlagCopyright © 2006–2018 Esito AS. All rights reserved.