java.lang.Object
de.grogra.pf.ui.UIToolkit
de.grogra.pf.ui.awt.AWTToolkitBase
de.grogra.pf.ui.swing.SwingToolkit
- All Implemented Interfaces:
XAListener
,WindowListener
,EventListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.grogra.persistence.XAListener
XAListener.WeakDelegate
-
Field Summary
Fields inherited from class de.grogra.pf.ui.UIToolkit
ABOUT_ICON_SIZE, ALIGNMENT_CENTER, ALIGNMENT_LEADING, ALIGNMENT_TRAILING, CREATE_COMPONENT_WRAPPER_METHOD, EXPLORER_ACTION, FONT_BOLD, FONT_DIALOG, FONT_DIALOG_INPUT, FONT_ITALIC, FONT_MASK, FONT_MONOSPACED, FONT_PLAIN, FONT_SANS_SERIF, FONT_SERIF, FONT_SIZE_MASK, FOR_MENU, FORCE_DIMENSION, MEDIUM_ICON_SIZE, MENU_ICON_SIZE, TOOLBAR_ICON_SIZE, UPDATE_COMPONENT_WRAPPER_METHOD, WINDOW_ICON_SIZE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateBooleanWidget
(boolean forMenu, Map params) createButton
(String text, IconSource icon, Dimension size, int flags, Command cmd, Context ctx) createChartPanel
(Context ctx, Map params) createChoiceWidget
(ListModel list, boolean forMenu) createColorWidget
(Map params) createComponentMenu
(UITree componentTree) createComponentTree
(UITree componentTree) createConsole
(Context ctx, Map params) protected Container
createContainer
(LayoutManager layout) createDisplayForProject
(Context context, Item item) create a displayable panel based on a html template that presents the description of a project as well as link to open it.protected Component
createLabel
(String text, Icon icon, int flags) createLogViewer
(Context ctx, Map params) createNumericWidget
(Type type, Quantity quantity, Map params) createPanel
(Context ctx, Disposable toDispose, Map params) createScrollPane
(Object view) createSplitContainer
(int orientation) createStatusBar
(Context ctx, Map params) createStringWidget
(Map params) createTabbedPane
(String[] titles, Object[] components) createTable
(TableModel table, Context ctx) createTextEditor
(Context ctx, Map params) createTextViewer
(URL url, String mimeType, String content, Command hyperlink, boolean asBrowser) createToolBar
(Context ctx, Map params) createTree
(UITree tree) createTreeChoiceWidget
(UITree tree) createTreeInSplit
(UITree tree, Object split) createUITreeComponent
(Object componentTree) Create a component wrapper around a JTree with the model as disposable & the JTree as ComponentcreateViewerPanel
(Context ctx, URL url, Map params) createWindow
(Command close, Map params) protected Container
getContentPane
(Object container) int
getSelectedRow
(ComponentWrapper table) getTable
(ComponentWrapper table) getTextViewerComponent
(Panel viewerPanel) void
hightliteContent
(Object textViewer, String pattern) void
setContent
(Object textViewer, String mimeType, String content) void
setContent
(Object textViewer, URL content) void
setLayout
(Object component, LayoutManager layout) void
showPopupMenu
(UITree menu, Object component, int x, int y) void
transactionApplied
(Transaction.Data xa, boolean rollback) protected void
updateLabel
(Component label, String text, Icon icon) void
Methods inherited from class de.grogra.pf.ui.awt.AWTToolkitBase
addComponent, createContainer, createContainer, createContainer, createLabel, createLabeledComponent, getComponent, getComponentCount, getFont, getHeight, getLocationOnScreen, getWidth, indexOf, indexOf, printTree, removeComponent, repaint, revalidate, windowActivated, windowClosed, windowDeactivated, windowDeiconified, windowIconified, windowOpened
Methods inherited from class de.grogra.pf.ui.UIToolkit
addComponent, chooseFile, createAbout, createButton, createButton, createButton, createButton, createButton, createLabel, createLabel, createLabel, createLabel, createViewerPanel, dispose, get, getFirstMatching, getFirstMatching
-
Field Details
-
I18N
-
-
Constructor Details
-
SwingToolkit
-
-
Method Details
-
transactionApplied
- Specified by:
transactionApplied
in interfaceXAListener
-
getContentPane
- Specified by:
getContentPane
in classAWTToolkitBase
-
getParent
-
createNumericWidget
- Specified by:
createNumericWidget
in classUIToolkit
-
createStringWidget
- Specified by:
createStringWidget
in classUIToolkit
-
createColorWidget
- Specified by:
createColorWidget
in classUIToolkit
-
createTreeChoiceWidget
- Specified by:
createTreeChoiceWidget
in classUIToolkit
-
createChoiceWidget
- Specified by:
createChoiceWidget
in classUIToolkit
-
createBooleanWidget
- Specified by:
createBooleanWidget
in classUIToolkit
-
createChartPanel
- Specified by:
createChartPanel
in classUIToolkit
-
createWindow
- Specified by:
createWindow
in classUIToolkit
-
createPanel
- Specified by:
createPanel
in classUIToolkit
-
createConsole
- Specified by:
createConsole
in classUIToolkit
-
createTextEditor
- Specified by:
createTextEditor
in classUIToolkit
-
createContainer
- Specified by:
createContainer
in classAWTToolkitBase
-
createSplitContainer
- Specified by:
createSplitContainer
in classUIToolkit
-
setBorder
-
createTree
- Specified by:
createTree
in classUIToolkit
-
createTreeInSplit
- Specified by:
createTreeInSplit
in classUIToolkit
-
createTable
- Specified by:
createTable
in classUIToolkit
-
getTable
-
getSelectedRow
- Specified by:
getSelectedRow
in classUIToolkit
-
createTextViewer
public Object createTextViewer(URL url, String mimeType, String content, Command hyperlink, boolean asBrowser) - Specified by:
createTextViewer
in classUIToolkit
-
setContent
- Specified by:
setContent
in classUIToolkit
-
setContent
- Specified by:
setContent
in classUIToolkit
-
hightliteContent
- Specified by:
hightliteContent
in classUIToolkit
-
createViewerPanel
- Specified by:
createViewerPanel
in classUIToolkit
-
getTextViewerComponent
- Specified by:
getTextViewerComponent
in classUIToolkit
-
createComponentTree
- Specified by:
createComponentTree
in classUIToolkit
-
createComponentMenu
- Specified by:
createComponentMenu
in classUIToolkit
-
createToolBar
- Specified by:
createToolBar
in classUIToolkit
-
createStatusBar
- Specified by:
createStatusBar
in classUIToolkit
-
createLabel
- Specified by:
createLabel
in classAWTToolkitBase
-
updateLabel
- Specified by:
updateLabel
in classAWTToolkitBase
-
createButton
public Object createButton(String text, IconSource icon, Dimension size, int flags, Command cmd, Context ctx) - Specified by:
createButton
in classUIToolkit
-
showPopupMenu
- Specified by:
showPopupMenu
in classUIToolkit
-
windowClosing
- Specified by:
windowClosing
in interfaceWindowListener
-
createScrollPane
- Specified by:
createScrollPane
in classUIToolkit
-
createTabbedPane
- Specified by:
createTabbedPane
in classUIToolkit
-
createUITreeComponent
Create a component wrapper around a JTree with the model as disposable & the JTree as Component- Specified by:
createUITreeComponent
in classUIToolkit
-
setLayout
-
createDisplayForProject
create a displayable panel based on a html template that presents the description of a project as well as link to open it.- Specified by:
createDisplayForProject
in classUIToolkit
- Parameters:
context
- the panelcontextitem
- a uitree node that contains info on the project- Returns:
-
createLogViewer
- Specified by:
createLogViewer
in classUIToolkit
-