|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
org.fife.ui.app.AbstractGUIApplication
A basic, generic GUI application. Your Swing application can override this class to have some of its basic code already implemented.
This class currently helps you implement:
Exceptions and report them to
the user.
AbstractPluggableGUIApplication,
Serialized Form| Nested Class Summary |
| Nested classes inherited from class javax.swing.JFrame |
javax.swing.JFrame.AccessibleJFrame |
| Nested classes inherited from class java.awt.Frame |
java.awt.Frame.AccessibleAWTFrame |
| Nested classes inherited from class java.awt.Window |
java.awt.Window.AccessibleAWTWindow |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Nested classes inherited from class org.fife.ui.app.GUIApplication |
GUIApplication.AboutAction, GUIApplication.ExitAction, GUIApplication.HelpAction, GUIApplication.ToggleStatusBarAction, GUIApplication.ToggleToolBarAction |
| Field Summary | |
static java.lang.String |
ABOUT_ACTION_KEY
The key for getting the About action from getAction. |
protected javax.swing.JPanel |
actualContentPane
This panel contains the actual content of the application (i.e., when the use calls getContentPane to add
stuff, this is the panel they get). |
static java.lang.String |
EXIT_ACTION_KEY
The key for getting the Exit action from getAction. |
static java.lang.String |
HELP_ACTION_KEY
The key for getting the Help action from getAction. |
protected javax.swing.JPanel |
mainContentPanel
This panel contains actualContentPane. |
static java.lang.String |
STATUS_BAR_PROPERTY
This property is fired whenever the status bar changes. |
static java.lang.String |
STATUS_BAR_VISIBLE_PROPERTY
This property is fired whenever the status bar is made visible or invisible. |
static java.lang.String |
TOOL_BAR_PROPERTY
This property is fired whenever the toolbar changes. |
static java.lang.String |
TOOL_BAR_VISIBLE_PROPERTY
This property is fired whenever the toolbar is made visible or invisible. |
| Fields inherited from class javax.swing.JFrame |
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Frame |
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface org.fife.ui.app.GUIApplicationConstants |
OS_LINUX, OS_MAC_OSX, OS_OTHER, OS_WINDOWS |
| Fields inherited from interface org.fife.ui.dockablewindows.DockableWindowConstants |
BOTTOM, FLOATING, LEFT, RIGHT, TOP |
| Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
AbstractGUIApplication(java.lang.String jarFile)
Constructor. |
|
AbstractGUIApplication(java.lang.String title,
java.lang.String jarFile)
Constructor. |
|
AbstractGUIApplication(java.lang.String title,
java.lang.String jarFile,
GUIApplicationPreferences prefs)
Constructor. |
|
| Method Summary | |
void |
about()
Gets called from the OSXAdapter; this method is needed by the Mac OS X JVM. |
void |
addAction(java.lang.String key,
javax.swing.Action action)
Adds an action to this application's action map. |
void |
addToolBar(javax.swing.JToolBar toolBar,
java.lang.String pos)
Adds a toolbar to this GUI application. |
protected AboutDialog |
createAboutDialog()
Creates the About dialog this application uses. |
protected void |
createActions(GUIApplicationPreferences prefs)
Creates the actions used by this application. |
protected abstract javax.swing.JMenuBar |
createMenuBar(GUIApplicationPreferences prefs)
Creates and returns the menu bar used in this application. |
protected abstract SplashScreen |
createSplashScreen()
Creates and returns the splash screen to display while this GUI application is loading. |
protected abstract StatusBar |
createStatusBar(GUIApplicationPreferences prefs)
Creates and returns the status bar to be used by this application. |
protected abstract CustomizableToolBar |
createToolBar(GUIApplicationPreferences prefs)
Creates and returns the toolbar to be used by this application. |
void |
displayException(java.awt.Dialog owner,
java.lang.Throwable t)
Displays a dialog box telling the user that an Exception
was thrown. |
void |
displayException(java.awt.Dialog owner,
java.lang.Throwable t,
java.lang.String desc)
Displays a dialog box telling the user that an Exception
was thrown. |
void |
displayException(java.awt.Frame owner,
java.lang.Throwable t)
Displays a dialog box telling the user that an Exception
was thrown. |
void |
displayException(java.awt.Frame owner,
java.lang.Throwable t,
java.lang.String desc)
Displays a dialog box telling the user that an Exception
was thrown. |
void |
displayException(java.lang.Throwable t)
Displays a dialog box telling the user that an Exception
was thrown. |
void |
displayException(java.lang.Throwable t,
java.lang.String desc)
Displays a dialog box telling the user that an Exception
was thrown. |
void |
doExit()
Called when the user attempts to close the application, whether from an "Exit" menu item, closing the main application window, or any other means. |
ExtendedLookAndFeelInfo[] |
get3rdPartyLookAndFeelInfo()
Returns an array of info. for JAR files containing 3rd party Look and Feels. |
AboutDialog |
getAboutDialog()
Returns the About dialog for this application. |
javax.swing.Action |
getAction(java.lang.String key)
Returns one of this application's actions. |
javax.swing.Action[] |
getActions()
Returns the actions of this GUI application as an array. |
java.awt.Container |
getContentPane()
This method is overridden to throw an exception; you should be adding components via this class's add methods. |
abstract HelpDialog |
getHelpDialog()
Returns the Help dialog for this application, or null
if this application does not have a Help dialog. |
java.lang.String |
getInstallLocation()
Returns the directory in which this GUI application is installed (i.e., the location if the JAR file containing the main method). |
java.lang.String |
getLanguage()
Returns the language used by this GUI application, in a Locale-friendly language string; e.g., en
or es. |
static java.lang.String |
getLocationOfJar(java.lang.String jarFileName)
Returns the location of the specified jar file in the currently-running application's classpath. |
ThirdPartyLookAndFeelManager |
getLookAndFeelManager()
Returns the manager in charge of any 3rd-party LookAndFeels this application is aware of. |
OptionsDialog |
getOptionsDialog()
Returns this application's Options dialog. |
int |
getOS()
Returns an integer constant representing the OS. |
protected abstract java.lang.String |
getPreferencesClassName()
Returns the name of the preferences class for this application. |
java.util.ResourceBundle |
getResourceBundle()
Returns the resource bundle associated with this application. |
abstract java.lang.String |
getResourceBundleClassName()
Returns the fully-qualified class name of the resource bundle for this application. |
StatusBar |
getStatusBar()
Returns the status bar this application is using. |
boolean |
getStatusBarVisible()
Returns whether the status bar is visible. |
java.lang.String |
getString(java.lang.String key)
Returns the localized text for the given key. |
java.lang.String |
getString(java.lang.String key,
java.lang.String param)
Returns the localized text for the given key. |
java.lang.String |
getString(java.lang.String key,
java.lang.String[] params)
Returns localized text for the given key. |
java.lang.String |
getString(java.lang.String key,
java.lang.String param1,
java.lang.String param2)
Returns the localized text for the given key. |
java.lang.String |
getString(java.lang.String key,
java.lang.String param1,
java.lang.String param2,
java.lang.String param3)
Returns the localized text for the given key. |
CustomizableToolBar |
getToolBar()
Returns the toolbar this application is using. |
boolean |
getToolBarVisible()
Returns whether the toolbar is visible in this application. |
abstract java.lang.String |
getVersionString()
Returns the version string for this application. |
boolean |
isMaximized()
Returns true if this application's main window is maximized. |
GUIApplicationPreferences |
loadPreferences()
Loads the preferences for this GUI application. |
abstract void |
openFile(java.lang.String fileName)
Gets called from the OSXAdapter; this method is needed by the Mac OS X JVM. |
protected abstract void |
preDisplayInit(GUIApplicationPreferences prefs,
SplashScreen splashScreen)
This is called in the GUI application's constructor. |
abstract void |
preferences()
Gets called from the OSXAdapter; this method is needed by the Mac OS X JVM. |
protected abstract void |
preMenuBarInit(GUIApplicationPreferences prefs,
SplashScreen splashScreen)
This is called in the GUI application's constructor. |
protected abstract void |
preStatusBarInit(GUIApplicationPreferences prefs,
SplashScreen splashScreen)
This is called in the GUI application's constructor. |
protected abstract void |
preToolBarInit(GUIApplicationPreferences prefs,
SplashScreen splashScreen)
This is called in the GUI application's constructor. |
protected void |
processWindowEvent(java.awt.event.WindowEvent e)
Called when a window event occurs for this application. |
void |
quit()
Gets called from the OSXAdapter; this method is needed by the Mac OS X JVM. |
void |
setContentPane(java.awt.Container contentPane)
This method sets the content pane. |
void |
setLanguage(java.lang.String language)
Sets the language for this GUI application and all of its dialogs, UI widgets, etc. |
void |
setLookAndFeelManager(ThirdPartyLookAndFeelManager manager)
Sets the utility used to dynamically load 3rd-party LookAndFeels. |
void |
setStatusBar(StatusBar statusBar)
Sets the status bar to use in this application. |
void |
setStatusBarVisible(boolean visible)
Sets whether the status bar is visible. |
void |
setToolBar(CustomizableToolBar toolBar)
Sets the toolbar used by this GUI application. |
void |
setToolBarVisible(boolean visible)
Sets whether the toolbar used by this GUI application is visible. |
| Methods inherited from class javax.swing.JFrame |
addImpl, createRootPane, frameInit, getAccessibleContext, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, remove, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update |
| Methods inherited from class java.awt.Frame |
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
| Methods inherited from class java.awt.Window |
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, show, toBack, toFront |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.fife.ui.app.GUIApplication |
getIconImage, getJMenuBar, pack, setJMenuBar |
| Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
| Field Detail |
public static final java.lang.String STATUS_BAR_PROPERTY
public static final java.lang.String STATUS_BAR_VISIBLE_PROPERTY
public static final java.lang.String TOOL_BAR_PROPERTY
public static final java.lang.String TOOL_BAR_VISIBLE_PROPERTY
public static final java.lang.String ABOUT_ACTION_KEY
getAction.
public static final java.lang.String EXIT_ACTION_KEY
getAction.
public static final java.lang.String HELP_ACTION_KEY
getAction.
protected javax.swing.JPanel mainContentPanel
actualContentPane. This panel is here
so that the subclass AbstractPluggableGUIApplication can
also place GUI plugins inside of it.
protected javax.swing.JPanel actualContentPane
getContentPane to add
stuff, this is the panel they get).
| Constructor Detail |
public AbstractGUIApplication(java.lang.String jarFile)
jarFile - The name (not full path) of the JAR file containing the
main class of this application (e.g. "Foobar.jar").
public AbstractGUIApplication(java.lang.String title,
java.lang.String jarFile)
title - The title for this frame.jarFile - The name (not full path) of the JAR file containing the
main class of this application (e.g. "Foobar.jar").
public AbstractGUIApplication(java.lang.String title,
java.lang.String jarFile,
GUIApplicationPreferences prefs)
title - The title for this frame.jarFile - The name (not full path) of the JAR file containing the
main class of this application (e.g. "Foobar.jar").prefs - The preferences with which to initialize this application.| Method Detail |
public void about()
about in interface com.apple.osxadapter.NativeMacAppgetAboutDialog()
public void addAction(java.lang.String key,
javax.swing.Action action)
addAction in interface GUIApplicationkey - The key with which to fetch the action via
getAction.action - The action to add.createActions(org.fife.ui.app.GUIApplicationPreferences),
getAction(java.lang.String)
public void addToolBar(javax.swing.JToolBar toolBar,
java.lang.String pos)
toolBar - The toolbar to add.pos - The position at which to add it (one of
BorderLayout.NORTH, etc.).protected AboutDialog createAboutDialog()
getAboutDialog()protected void createActions(GUIApplicationPreferences prefs)
addAction.
prefs - The preferences for this GUI application. This may
contain information such as accelerators, etc.addAction(java.lang.String, javax.swing.Action),
getAction(java.lang.String)protected abstract javax.swing.JMenuBar createMenuBar(GUIApplicationPreferences prefs)
prefs - This GUI application's preferences.
protected abstract SplashScreen createSplashScreen()
null is returned, no splash
screen is displayed.protected abstract StatusBar createStatusBar(GUIApplicationPreferences prefs)
GUIApplication's constructor.
prefs - This GUI application's preferences.
protected abstract CustomizableToolBar createToolBar(GUIApplicationPreferences prefs)
GUIApplication's constructor.
prefs - This GUI application's preferences.
public final void displayException(java.lang.Throwable t)
Exception
was thrown. This method can be overridden to customize how
the user is informed of an Exception.
displayException in interface GUIApplicationt - The exception/throwable that occurred.
public final void displayException(java.lang.Throwable t,
java.lang.String desc)
Exception
was thrown. This method can be overridden to customize how
the user is informed of an Exception.
t - The exception/throwable that occurred.desc - A short description of the error. This can be
null.
public final void displayException(java.awt.Dialog owner,
java.lang.Throwable t)
Exception
was thrown. This method can be overridden to customize how
the user is informed of an Exception.
This version of the method allows a window spawned from the
main GUI application window to be the owner of the displayed
exception.
displayException in interface GUIApplicationowner - The dialog that threw the Exception.t - The exception/throwable that occurred.
public void displayException(java.awt.Dialog owner,
java.lang.Throwable t,
java.lang.String desc)
Exception
was thrown. This method can be overridden to customize how
the user is informed of an Exception.
This version of the method allows a window spawned from the
main GUI application window to be the owner of the displayed
exception.
owner - The dialog that threw the Exception.t - The exception/throwable that occurred.desc - A short description of the error. This can be
null.
public final void displayException(java.awt.Frame owner,
java.lang.Throwable t)
Exception
was thrown. This method can be overridden to customize how
the user is informed of an Exception.
This version of the method allows a window spawned from the
main GUI application window to be the owner of the displayed
exception.
displayException in interface GUIApplicationowner - The child frame that threw the Exception.t - The exception/throwable that occurred.
public void displayException(java.awt.Frame owner,
java.lang.Throwable t,
java.lang.String desc)
Exception
was thrown. This method can be overridden to customize how
the user is informed of an Exception.
This version of the method allows a window spawned from the
main GUI application window to be the owner of the displayed
exception.
owner - The child frame that threw the Exception.t - The exception/throwable that occurred.desc - A short description of the error. This can be
null.public void doExit()
The default implementation simply calls System.exit(0).
doExit in interface GUIApplicationpublic AboutDialog getAboutDialog()
getAboutDialog in interface GUIApplicationAboutDialog,
createAboutDialog()public javax.swing.Action getAction(java.lang.String key)
getAction in interface GUIApplicationnull if no action exists for the
specified key.addAction(java.lang.String, javax.swing.Action),
createActions(org.fife.ui.app.GUIApplicationPreferences)public javax.swing.Action[] getActions()
getActions in interface GUIApplicationnull is returned if the action
map has not yet been initialized.getAction(java.lang.String)public java.awt.Container getContentPane()
add methods.
getContentPane in interface javax.swing.RootPaneContainerjava.lang.UnsupportedOperationException - always.setContentPane(java.awt.Container)public abstract HelpDialog getHelpDialog()
null
if this application does not have a Help dialog.
getHelpDialog in interface GUIApplicationpublic java.lang.String getInstallLocation()
getInstallLocation in interface GUIApplicationpublic java.lang.String getLanguage()
Locale-friendly language string; e.g., en
or es.
getLanguage in interface GUIApplicationpublic ThirdPartyLookAndFeelManager getLookAndFeelManager()
null if there is none.setLookAndFeelManager(ThirdPartyLookAndFeelManager)public static java.lang.String getLocationOfJar(java.lang.String jarFileName)
For example, a Java program running from the executable jar
Foo.jar can call this method with Foo.jar as
the parameter, and the location of the jar file would be returned. With
this knowledge, along with knowledge of the directory layout of the
application, the programmer can access other files in the installation.
jarFileName - The name of the jar file for which to search.
public ExtendedLookAndFeelInfo[] get3rdPartyLookAndFeelInfo()
UIManager's
classpath so that these LnFs can be used in this GUI application.
For this method to return anything, you must install a
ThirdPartyLookAndFeelManager.
setLookAndFeelManager(ThirdPartyLookAndFeelManager)public OptionsDialog getOptionsDialog()
null if this application
doesn't have one. The default implementation returns
null.public int getOS()
getOS in interface GUIApplicationprotected abstract java.lang.String getPreferencesClassName()
GUIApplicationPreferences.
null if this GUI application
does not save preferences.public java.util.ResourceBundle getResourceBundle()
getResourceBundle in interface GUIApplicationgetString(String),
getString(String, String),
getString(String, String[])public abstract java.lang.String getResourceBundleClassName()
getResourceBundle to locate
the class.
getResourceBundle()public StatusBar getStatusBar()
getStatusBar in interface GUIApplicationsetStatusBar(org.fife.ui.StatusBar)public boolean getStatusBarVisible()
getStatusBarVisible in interface GUIApplicationnull is returned.setStatusBarVisible(boolean)public java.lang.String getString(java.lang.String key)
getResourceBundle().getString(key).
key - The key into the resource bundle.
getString(String, String),
getString(String, String[]),
getResourceBundle()
public java.lang.String getString(java.lang.String key,
java.lang.String param)
key - The key into the resource bundle.param - A parameter in the localized text.
getString(String),
getString(String, String[]),
getResourceBundle()
public java.lang.String getString(java.lang.String key,
java.lang.String param1,
java.lang.String param2)
key - The key into the resource bundle.param1 - A parameter in the localized text.param2 - Another parameter in the localized text.
getString(String),
getString(String, String),
getString(String, String[]),
getResourceBundle()
public java.lang.String getString(java.lang.String key,
java.lang.String param1,
java.lang.String param2,
java.lang.String param3)
key - The key into the resource bundle.param1 - A parameter in the localized text.param2 - Another parameter in the localized text.param3 - Another parameter in the localized text.
getString(String),
getString(String, String),
getString(String, String[]),
getResourceBundle()
public java.lang.String getString(java.lang.String key,
java.lang.String[] params)
key - The key into the resource bundle.params - Parameters for the localized text.
getString(String),
getString(String, String),
getResourceBundle()public CustomizableToolBar getToolBar()
getToolBar in interface GUIApplicationsetToolBar(org.fife.ui.CustomizableToolBar)public boolean getToolBarVisible()
getToolBarVisible in interface GUIApplicationfalse is returned.setToolBarVisible(boolean)public abstract java.lang.String getVersionString()
getVersionString in interface GUIApplicationpublic boolean isMaximized()
isMaximized in interface GUIApplicationtrue if this applicaiton's window is maximized,
or false if it isn't.public GUIApplicationPreferences loadPreferences()
null is
goes wrong, null is returned.
loadPreferences in interface GUIApplicationpublic abstract void openFile(java.lang.String fileName)
openFile in interface com.apple.osxadapter.NativeMacApppublic abstract void preferences()
preferences in interface com.apple.osxadapter.NativeMacApp
protected abstract void preDisplayInit(GUIApplicationPreferences prefs,
SplashScreen splashScreen)
prefs - The preferences of the application.splashScreen - The "splash screen" for this application. This
value may be null.
protected abstract void preMenuBarInit(GUIApplicationPreferences prefs,
SplashScreen splashScreen)
prefs - The preferences of the application.splashScreen - The "splash screen" for this application. This
value may be null.
protected abstract void preStatusBarInit(GUIApplicationPreferences prefs,
SplashScreen splashScreen)
prefs - The preferences of the application.splashScreen - The "splash screen" for this application. This
value may be null.
protected abstract void preToolBarInit(GUIApplicationPreferences prefs,
SplashScreen splashScreen)
prefs - The preferences of the application.splashScreen - The "splash screen" for this application. This
value may be null.protected void processWindowEvent(java.awt.event.WindowEvent e)
e - The window event.public void quit()
doExit.
quit in interface com.apple.osxadapter.NativeMacAppdoExit()public void setContentPane(java.awt.Container contentPane)
setContentPane in interface javax.swing.RootPaneContainercontentPane - The new content pane.getContentPane()public void setLanguage(java.lang.String language)
setLanguage in interface GUIApplicationlanguage - The language to use. If null,
English will be used.public void setLookAndFeelManager(ThirdPartyLookAndFeelManager manager)
manager - The utility, or null for none.getLookAndFeelManager()public void setStatusBar(StatusBar statusBar)
STATUS_BAR_PROPERTY.
setStatusBar in interface GUIApplicationstatusBar - The status bar to use.getStatusBar()public void setStatusBarVisible(boolean visible)
STATUS_BAR_VISIBLE_PROPERTY.
setStatusBarVisible in interface GUIApplicationvisible - Whether the status bar is to be visible.getStatusBarVisible()public void setToolBar(CustomizableToolBar toolBar)
TOOL_BAR_PROPERTY.
setToolBar in interface GUIApplicationtoolBar - The toolbar to use.getToolBar()public void setToolBarVisible(boolean visible)
TOOL_BAR_VISIBLE_PROPERTY.
setToolBarVisible in interface GUIApplicationvisible - Whether the toolbar should be visible.getToolBarVisible()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||