public abstract class AbstractUserInterface extends AbstractRichPlugin implements UserInterface
UserInterface implementations.| Constructor and Description |
|---|
AbstractUserInterface() |
| Modifier and Type | Method and Description |
|---|---|
File |
chooseFile(File file,
String style)
Prompts the user to choose a file.
|
File |
chooseFile(String title,
File file,
String style)
Deprecated.
|
protected void |
createUI()
Subclasses override to control UI creation.
|
protected String |
fileChooserTitle(String style)
Gets a default file chooser title to use when none is given.
|
ApplicationFrame |
getApplicationFrame()
Gets the main SciJava application frame, or null if not applicable.
|
ConsolePane<?> |
getConsolePane()
Gets the main SciJava console pane, or null if not applicable.
|
Desktop |
getDesktop()
Gets the desktop, for use with multi-document interfaces (MDI).
|
StatusBar |
getStatusBar()
Gets the main SciJava status bar, or null if not applicable.
|
ToolBar |
getToolBar()
Gets the main SciJava toolbar, or null if not applicable.
|
boolean |
isVisible()
Whether this UI is visible onscreen.
|
void |
restoreLocation()
Restores the application frame's current location.
|
void |
saveLocation()
Persists the application frame's current location.
|
void |
show()
Shows the UI.
|
void |
show(Display<?> display)
Shows the display onscreen using an appropriate UI widget.
|
void |
show(Object o)
Shows the object onscreen using an appropriate UI widget.
|
void |
show(String name,
Object o)
Shows the object onscreen using an appropriate UI widget.
|
getInfo, getPriority, setInfo, setPriority, toStringcontext, getContext, setContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateDisplayWindow, dialogPrompt, getSystemClipboard, requiresEDT, showContextMenugetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersiondisposepublic void show()
UserInterfaceNote that the actual UI components are created lazily when this method is called, rather then upon the UI's initial construction.
show in interface UserInterfacepublic boolean isVisible()
UserInterfaceisVisible in interface UserInterfacepublic void show(Object o)
UserInterfaceshow in interface UserInterfacepublic void show(String name, Object o)
UserInterfaceshow in interface UserInterfacename - The name to use when displaying the object.o - The object to be displayed.public void show(Display<?> display)
UserInterfaceshow in interface UserInterfacepublic Desktop getDesktop()
UserInterfacegetDesktop in interface UserInterfacepublic ApplicationFrame getApplicationFrame()
UserInterfacegetApplicationFrame in interface UserInterfacepublic ToolBar getToolBar()
UserInterfacegetToolBar in interface UserInterfacepublic StatusBar getStatusBar()
UserInterfacegetStatusBar in interface UserInterfacepublic ConsolePane<?> getConsolePane()
UserInterfacegetConsolePane in interface UserInterfacepublic File chooseFile(File file, String style)
UserInterfacechooseFile in interface UserInterfacefile - The initial value displayed in the file chooser prompt.style - The style of chooser to use:
@Deprecated public File chooseFile(String title, File file, String style)
UserInterfacechooseFile in interface UserInterfacetitle - Title to use in the file chooser dialog.file - The initial value displayed in the file chooser prompt.style - The style of chooser to use:
public void saveLocation()
UserInterfacesaveLocation in interface UserInterfacepublic void restoreLocation()
UserInterfacerestoreLocation in interface UserInterfaceprotected void createUI()
ApplicationFrame but before
showing it (assuming the UI has an ApplicationFrame).Copyright © 2009–2016 SciJava. All rights reserved.