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, ws
Fields inherited from interface de.grogra.pf.ui.Panel
DEC_WAIT_CURSOR, DEFAULT_CURSOR, INC_WAIT_CURSOR, INHERIT_CURSOR, PANEL_ID, WAIT_CURSOR
Fields 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 TypeMethodDescriptionchooseFile
(String title, File directory, FileFilter[] filters, int type, boolean mustExist, FileFilter selectedFilter) protected void
void
eventOccured
(EventObject event) This method is invoked on registered event listeners whenevent
has occured.Panel[]
getPanels
(ObjectToBoolean filter) Determines the workbench of this GUI context.void
initializeWorkbench
(Workbench workbench) boolean
void
setContent
(ComponentWrapper content) void
void
setMenuVisibility
(boolean value) int
showChoiceDialog
(String title, I18NBundle bundle, String keyBase, String[] options) int
showDialog
(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, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface de.grogra.pf.ui.Context
getComponent, getPanel, getWindow
Methods inherited from interface de.grogra.util.Disposable
dispose
Methods inherited from interface de.grogra.pf.ui.Panel
checkClose, getContent, getDecorator, getMenu, getPanelId, initDecorator, initialize, resolve, setCursor, setMenu, show
Methods inherited from interface de.grogra.pf.ui.Window
getUIPropertyMap, hide
-
Method Details
-
getWorkbench
Description copied from interface:Context
Determines the workbench of this GUI context.- Specified by:
getWorkbench
in interfaceContext
- Specified by:
getWorkbench
in interfaceWindow
- Overrides:
getWorkbench
in classPanelSupport
- Returns:
- this context's workbench
-
initializeWorkbench
- Specified by:
initializeWorkbench
in interfaceWindow
-
run
- Specified by:
run
in interfaceSynchronizer.Callback
- Overrides:
run
in classPanelSupport
-
isVisible
public boolean isVisible() -
setLayout
-
getLayout
-
getPanels
-
getPanel
-
setContent
- Specified by:
setContent
in interfacePanel
- Overrides:
setContent
in classPanelSupport
-
disposeImpl
protected void disposeImpl()- Overrides:
disposeImpl
in classPanelSupport
-
eventOccured
Description copied from interface:EventListener
This method is invoked on registered event listeners whenevent
has 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:
eventOccured
in interfaceEventListener
- Parameters:
event
- an event
-
chooseFile
public FileChooserResult chooseFile(String title, File directory, FileFilter[] filters, int type, boolean mustExist, FileFilter selectedFilter) - Specified by:
chooseFile
in interfaceWindow
- Parameters:
title
-directory
-filters
-type
-mustExist
-selectedFilter
- - the selected file filter type- Returns:
-
showDialog
- Specified by:
showDialog
in interfaceWindow
-
showInputDialog
- Specified by:
showInputDialog
in interfaceWindow
-
showChoiceDialog
- Specified by:
showChoiceDialog
in interfaceWindow
-
showWaitMessage
- Specified by:
showWaitMessage
in interfaceWindow
-
setMenuVisibility
public void setMenuVisibility(boolean value) - Specified by:
setMenuVisibility
in interfaceWindow
-