public interface GUIApplication extends MDIApplication
Modifier and Type | Method and Description |
---|---|
void |
applyDialog(MDIDialog dialog)
Apply a dialog.
|
void |
cancelDialog(MDIDialog dialog)
Cancel a dialog.
|
javax.swing.JFrame |
getApplicationWindow()
Return the main Window of the MDIApplication.
|
javax.swing.JComponent |
getComponent(java.lang.Object object)
Return the Tab component for the specified object.
|
javax.swing.JComponent |
getComponent(java.lang.String name)
Return the component of the specified name, or null if there is no panel with this name.
|
MDIDialogType |
getDefaultDialogOpenType()
Return the default dialog opening type.
|
MDIDialogHelper |
getDialogHelper()
Return the dialog helper.
|
SwingFileProperties |
getFileProperties(java.lang.Object object)
Return the FileProperties for the specified object.
|
javax.swing.JMenuBar |
getMenuBar()
Return the menu bar.
|
MDIMenuFactory |
getMenuFactory()
Return the MDIApplication Menu Factory.
|
SwingMessageArea |
getMessageArea()
Return the MDIApplication MessageArea.
|
default PluginsEDTSupport |
getPluginsEDTSupport(PluginsManager manager)
Return the Swing support class for the GUI initialization of Plugins.
|
SwingFileProperties |
getProperties(java.lang.String name)
Return the FileProperties for a tab of a specified name.
|
javax.swing.JComponent |
getSelectedComponent()
Return the selected component.
|
SwingFileProperties |
getSelectedProperties()
Return the FileProperties for the selected tab.
|
StatusBar |
getStatusBar()
Return the Statusbar associated with the main window.
|
javax.swing.JPanel |
getToolBarPanel()
Return the panel containing the toolbars.
|
boolean |
hasSelectedTab()
Return true if there is a selected tab.
|
boolean |
isDialogOpened(MDIDialog dialog)
Return true if a dialog is currently opened.
|
void |
setDefaultDialogOpenType(MDIDialogType openType)
Set the default dialog opening type.
|
void |
setDialogHelper(MDIDialogHelper helper)
Set the dialog helper.
|
int |
showDialog(MDIDialog dialog)
Show a dialog, with the default dialog opening type.
|
int |
showDialog(MDIDialog dialog,
javax.swing.AbstractAction action)
Show a dialog, with the default dialog opening type.
|
int |
showDialog(MDIDialog dialog,
javax.swing.AbstractAction action,
MDIDialogType openType)
Show a dialog.
|
int |
showDialog(MDIDialogBuilder builder)
Show a dialog.
|
int |
showDialog(MDIDialogBuilder builder,
MDIDialogType openType)
Show a dialog.
|
int |
showDialog(MDIDialog dialog,
MDIDialogType openType)
Show a dialog.
|
int |
showMessageDialog(java.lang.String title,
int messageType,
boolean isModal,
boolean isResizable,
java.lang.String... messages)
Show a message dialog, with an OK button.
|
default int |
showMessageDialog(java.lang.String title,
int messageType,
java.lang.String... messages)
Show a modal and not resizable message dialog, with an OK button.
|
default int |
showMessageDialog(java.lang.String title,
java.lang.String... messages)
Show a modal and not resizable message dialog, with an OK button.
|
default void |
updateMenus(MDIPlugin plugin)
Update the MDIMenuFactory menus.
|
default void |
updateUI()
Update the UI of the application content.
|
disposeApplication, endAction, executeAction, executeAction, executeAction, executeAction, getAdditionalPluginTypes, getAllowedPluginTypes, getApplicationDesc, getApplicationID, getCommandLineArguments, getConfigurationManager, getErrorLogger, getPlugin, getPluginForName, getPlugins, getPluginsManager, getPluginsMap, getStartDirectory, getTime, hasPlugin, isDefaultBlockingActions, noTimeMessages, noWriteMessages, setDefaultBlockingActions, showActionException, startTime, stopTime
javax.swing.JComponent getComponent(java.lang.String name)
name
- the tab nameSwingFileProperties getProperties(java.lang.String name)
name
- the tab namejavax.swing.JComponent getComponent(java.lang.Object object)
FileProperties.getObject()
. Note that it is
guaranteed that even if two objects for which the Object.equals(java.lang.Object)
methods returns true, and they are
associated with different tabs, the respective correct tabs will be returned for reach object.object
- the objectSwingFileProperties getFileProperties(java.lang.Object object)
FileProperties.getObject()
. Note that it is
guaranteed that even if two objects for which the Object.equals(java.lang.Object)
methods returns true, and they are
associated with different tabs, the respective correct FileProperties will be returned for reach object.object
- the objectjavax.swing.JComponent getSelectedComponent()
javax.swing.JFrame getApplicationWindow()
MDIMenuFactory getMenuFactory()
default void updateMenus(MDIPlugin plugin)
MDIMenuFactory.updateMenus()
by default.plugin
- the Plugin which is at the origin of the updateSwingFileProperties getSelectedProperties()
default PluginsEDTSupport getPluginsEDTSupport(PluginsManager manager)
getPluginsEDTSupport
in interface MDIApplication
manager
- the PluginsManagerboolean hasSelectedTab()
StatusBar getStatusBar()
javax.swing.JPanel getToolBarPanel()
javax.swing.JMenuBar getMenuBar()
SwingMessageArea getMessageArea()
default void updateUI()
void setDialogHelper(MDIDialogHelper helper)
helper
- the dialog helperMDIDialogHelper getDialogHelper()
void setDefaultDialogOpenType(MDIDialogType openType)
openType
- the default dialog opening typeMDIDialogType getDefaultDialogOpenType()
int showDialog(MDIDialog dialog)
dialog
- the dialogJFileChooser.APPROVE_OPTION
, or JFileChooser.CANCEL_OPTION
MDIDialogType
int showDialog(MDIDialog dialog, javax.swing.AbstractAction action)
dialog
- the dialogaction
- the associated ActionJFileChooser.APPROVE_OPTION
, or JFileChooser.CANCEL_OPTION
MDIDialogType
int showDialog(MDIDialog dialog, MDIDialogType openType)
dialog
- the dialogopenType
- the opening type of the dialogJFileChooser.APPROVE_OPTION
, or JFileChooser.CANCEL_OPTION
MDIDialogType
int showDialog(MDIDialog dialog, javax.swing.AbstractAction action, MDIDialogType openType)
dialog
- the dialogaction
- the associated ActionopenType
- the opening type of the dialogJFileChooser.APPROVE_OPTION
, or JFileChooser.CANCEL_OPTION
MDIDialogType
int showDialog(MDIDialogBuilder builder, MDIDialogType openType)
builder
- the dialog builderopenType
- the opening type of the dialogJFileChooser.APPROVE_OPTION
, or JFileChooser.CANCEL_OPTION
MDIDialogType
int showDialog(MDIDialogBuilder builder)
builder
- the dialog builderJFileChooser.APPROVE_OPTION
, or JFileChooser.CANCEL_OPTION
MDIDialogType
int showMessageDialog(java.lang.String title, int messageType, boolean isModal, boolean isResizable, java.lang.String... messages)
title
- the dialog titlemessageType
- the message type. It can be:
MDIDialogBuilder.PLAIN_MESSAGE
for a default dialog without any iconMDIDialogBuilder.ERROR_MESSAGE
for a dialog with an error iconMDIDialogBuilder.INFORMATION_MESSAGE
for a dialog with an information iconMDIDialogBuilder.QUESTION_MESSAGE
for a dialog with a question iconisModal
- true if the dialog is modalisResizable
- true if the dialog is resizablemessages
- the list of messages, which will be shown in a vertical gridJFileChooser.APPROVE_OPTION
default int showMessageDialog(java.lang.String title, int messageType, java.lang.String... messages)
title
- the dialog titlemessageType
- the message type. It can be:
MDIDialogBuilder.PLAIN_MESSAGE
for a default dialog without any iconMDIDialogBuilder.ERROR_MESSAGE
for a dialog with an error iconMDIDialogBuilder.INFORMATION_MESSAGE
for a dialog with an information iconMDIDialogBuilder.QUESTION_MESSAGE
for a dialog with a question iconmessages
- the list of messages, which will be shown in a vertical gridJFileChooser.APPROVE_OPTION
default int showMessageDialog(java.lang.String title, java.lang.String... messages)
title
- the dialog titlemessages
- the list of messages, which will be shown in a vertical gridJFileChooser.APPROVE_OPTION
, or JFileChooser.CANCEL_OPTION
void cancelDialog(MDIDialog dialog)
dialog
- the dialogvoid applyDialog(MDIDialog dialog)
dialog
- the dialogboolean isDialogOpened(MDIDialog dialog)
dialog
- the dialog