java.lang.Object
de.grogra.pf.ui.swing.PanelSupport
de.grogra.pf.ui.swing.WindowSupport
- All Implemented Interfaces:
RegistryContext,Context,Panel,Synchronizer.Callback,Window,Disposable,EventListener,EventListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.grogra.util.EventListener
EventListener.Bicast, EventListener.Multicaster -
Field Summary
Fields inherited from class de.grogra.pf.ui.swing.PanelSupport
mapProducer, menu, MIN_UNUSED_ACTION, sync, wsFields inherited from interface de.grogra.pf.ui.Panel
DEC_WAIT_CURSOR, DEFAULT_CURSOR, INC_WAIT_CURSOR, INHERIT_CURSOR, PANEL_ID, WAIT_CURSORFields inherited from interface de.grogra.pf.ui.Window
ADD_FILE, CANCEL_RESULT, ERROR_MESSAGE, INFORMATION_MESSAGE, MAIN_WINDOW_ID, NO_RESULT, OPEN_FILE, PLAIN_MESSAGE, QUESTION_CANCEL_MESSAGE, QUESTION_MESSAGE, RESIZABLE_OK_CANCEL_MESSAGE, RESIZABLE_PLAIN_MESSAGE, SAVE_FILE, WARNING_MESSAGE, YES_OK_RESULT -
Method Summary
Modifier and TypeMethodDescriptionchooseDirectory(String title, File directory, int type, boolean mustExist) Select a directory.chooseFile(String title, File directory, FileFilter[] filters, int type, boolean mustExist, FileFilter selectedFilter) protected voidvoideventOccured(EventObject event) This method is invoked on registered event listeners wheneventhas occured.Panel[]getPanels(ObjectToBoolean filter) Determines the workbench of this GUI context.voidinitializeWorkbench(Workbench workbench) booleanvoidsetContent(ComponentWrapper content) voidvoidsetMenuVisibility(boolean value) intshowChoiceDialog(String title, I18NBundle bundle, String keyBase, String[] options) intshowDialog(String title, Object component, int type) showInputDialog(String title, Object component, String initial) showWaitMessage(String toComplete) Methods inherited from class de.grogra.pf.ui.swing.PanelSupport
checkClose, checkClose, configure, dispose, executeCheckClose, getComponent, getContent, getDecorator, getMenu, getPanel, getPanelId, getRegistry, getUIPropertyMap, getWindow, hide, initDecorator, initialize, resolve, setCursor, setMenu, show, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface de.grogra.pf.ui.Context
getComponent, getPanel, getWindowMethods inherited from interface de.grogra.util.Disposable
disposeMethods inherited from interface de.grogra.pf.ui.Panel
checkClose, getContent, getDecorator, getMenu, getPanelId, initDecorator, initialize, resolve, setCursor, setMenu, showMethods inherited from interface de.grogra.pf.ui.Window
getUIPropertyMap, hide
-
Method Details
-
getWorkbench
Description copied from interface:ContextDetermines the workbench of this GUI context.- Specified by:
getWorkbenchin interfaceContext- Specified by:
getWorkbenchin interfaceWindow- Overrides:
getWorkbenchin classPanelSupport- Returns:
- this context's workbench
-
initializeWorkbench
- Specified by:
initializeWorkbenchin interfaceWindow
-
run
- Specified by:
runin interfaceSynchronizer.Callback- Overrides:
runin classPanelSupport
-
isVisible
public boolean isVisible() -
setLayout
-
getLayout
-
getPanels
-
getPanel
-
setContent
- Specified by:
setContentin interfacePanel- Overrides:
setContentin classPanelSupport
-
disposeImpl
protected void disposeImpl()- Overrides:
disposeImplin classPanelSupport
-
eventOccured
Description copied from interface:EventListenerThis method is invoked on registered event listeners wheneventhas occured. This general listener interface does not restrict the possible kinds of events. Concrete sources of events should specify which events they may fire.- Specified by:
eventOccuredin interfaceEventListener- Parameters:
event- an event
-
chooseFile
public FileChooserResult chooseFile(String title, File directory, FileFilter[] filters, int type, boolean mustExist, FileFilter selectedFilter) - Specified by:
chooseFilein interfaceWindow- Parameters:
title-directory-filters-type-mustExist-selectedFilter- - the selected file filter type- Returns:
-
chooseDirectory
Select a directory.- Specified by:
chooseDirectoryin interfaceWindow- Parameters:
directory- : the parent directorymustExist-
-
showDialog
- Specified by:
showDialogin interfaceWindow
-
showInputDialog
- Specified by:
showInputDialogin interfaceWindow
-
showChoiceDialog
- Specified by:
showChoiceDialogin interfaceWindow
-
showWaitMessage
- Specified by:
showWaitMessagein interfaceWindow
-
setMenuVisibility
public void setMenuVisibility(boolean value) - Specified by:
setMenuVisibilityin interfaceWindow
-