java.lang.Object
de.grogra.pf.ui.UIToolkit
- Direct Known Subclasses:
AWTToolkitBase
,CLIToolkit
,HeadlessToolkit
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Dimension
static final int
static final int
static final int
static final String
static final String
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final Dimension
static final Dimension
static final Dimension
static final String
static final Dimension
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addComponent
(Object container, Object component, Object constraints) abstract void
addComponent
(Object container, Object component, Object constraints, int index) chooseFile
(String title, FileFilter[] filters, int type, boolean mustExist, FileFilter selectedFilter, Context ctx, String sourcePath) createAbout
(PluginDescriptor plugin, String prefix, ObjectList tabComponents) Creates the tabs inside the "About GroIMP" panel.abstract Widget
createBooleanWidget
(boolean forMenu, Map params) createButton
(Described dp, int flags, Command cmd, Context ctx) createButton
(Described dp, Dimension size, int flags, Command cmd, Context ctx) createButton
(I18NBundle bundle, String key, Dimension size, int flags, Command cmd, Context ctx) createButton
(String text, int flags, Command cmd, Context ctx) createButton
(String text, IconSource source, int flags, Command cmd, Context ctx) abstract Object
createButton
(String text, IconSource source, Dimension size, int flags, Command cmd, Context ctx) abstract ChartPanel
createChartPanel
(Context ctx, Map params) abstract Widget
createChoiceWidget
(ListModel list, boolean forMenu) abstract Widget
createColorWidget
(Map params) abstract ComponentWrapper
createComponentMenu
(UITree componentTree) abstract ComponentWrapper
createComponentTree
(UITree componentTree) abstract Console
createConsole
(Context context, Map params) abstract Object
createContainer
(float[] weights, int gap) abstract Object
createContainer
(int gap) abstract Object
createContainer
(int rows, int cols, int gap) abstract ComponentWrapper
createDisplayForProject
(Context context, Item item) Create component that represent a displayable version of the description of a project file.createLabel
(Described dp, int flags) createLabel
(Described dp, Dimension size, int flags) createLabel
(String text, int flags) createLabel
(String text, IconSource icon, int flags) abstract Object
createLabel
(String text, IconSource icon, Dimension size, int flags) abstract Object
createLabeledComponent
(Object component, Object label) abstract Panel
createLogViewer
(Context ctx, Map params) abstract Widget
createNumericWidget
(Type type, Quantity quantity, Map params) abstract Panel
createPanel
(Context ctx, Disposable toDispose, Map params) abstract Object
createScrollPane
(Object view) abstract Object
createSplitContainer
(int orientation) abstract Panel
createStatusBar
(Context context, Map params) abstract Widget
createStringWidget
(Map params) abstract Object
createTabbedPane
(String[] titles, Object[] components) abstract ComponentWrapper
createTable
(TableModel table, Context ctx) abstract TextEditor
createTextEditor
(Context context, Map params) abstract Object
createTextViewer
(URL url, String mimeType, String content, Command hyperlink, boolean asBrowser) abstract Panel
createToolBar
(Context context, Map params) abstract ComponentWrapper
createTree
(UITree tree) abstract Widget
createTreeChoiceWidget
(UITree tree) abstract ComponentWrapper
createTreeInSplit
(UITree tree, Object split) abstract ComponentWrapper
createUITreeComponent
(Object componentTree) createViewerPanel
(Context context, String systemId, Map params) abstract Panel
createViewerPanel
(Context ctx, URL url, Map params) abstract Window
createWindow
(Command close, Map params) void
static UIToolkit
abstract Object
getComponent
(Object container, int index) abstract int
getComponentCount
(Object container) protected static int
getFirstMatching
(int flags, int[] masks, int[] values, int def) protected static Object
getFirstMatching
(int flags, int[] masks, Object[] values, Object def) abstract int
abstract Point
getLocationOnScreen
(Object component) abstract Object
abstract int
getSelectedRow
(ComponentWrapper table) abstract TableModel
getTable
(ComponentWrapper table) abstract Object
getTextViewerComponent
(Panel viewerPanel) abstract int
abstract void
hightliteContent
(Object textViewer, String text) abstract int
abstract void
removeComponent
(Object component) abstract void
abstract void
revalidate
(Object component) abstract Object
abstract void
setContent
(Object textViewer, String mimeType, String content) abstract void
setContent
(Object textViewer, URL content) abstract void
setLayout
(Object component, LayoutManager layout) abstract void
showPopupMenu
(UITree menu, Object component, int x, int y)
-
Field Details
-
ABOUT_ICON_SIZE
-
TOOLBAR_ICON_SIZE
-
MEDIUM_ICON_SIZE
-
MENU_ICON_SIZE
-
WINDOW_ICON_SIZE
-
EXPLORER_ACTION
- See Also:
-
UPDATE_COMPONENT_WRAPPER_METHOD
- See Also:
-
CREATE_COMPONENT_WRAPPER_METHOD
- See Also:
-
FONT_SIZE_MASK
public static final int FONT_SIZE_MASK- See Also:
-
FONT_PLAIN
public static final int FONT_PLAIN- See Also:
-
FONT_ITALIC
public static final int FONT_ITALIC- See Also:
-
FONT_BOLD
public static final int FONT_BOLD- See Also:
-
FONT_MONOSPACED
public static final int FONT_MONOSPACED- See Also:
-
FONT_SANS_SERIF
public static final int FONT_SANS_SERIF- See Also:
-
FONT_SERIF
public static final int FONT_SERIF- See Also:
-
FONT_DIALOG
public static final int FONT_DIALOG- See Also:
-
FONT_DIALOG_INPUT
public static final int FONT_DIALOG_INPUT- See Also:
-
FONT_MASK
public static final int FONT_MASK- See Also:
-
ALIGNMENT_LEADING
public static final int ALIGNMENT_LEADING- See Also:
-
ALIGNMENT_CENTER
public static final int ALIGNMENT_CENTER- See Also:
-
ALIGNMENT_TRAILING
public static final int ALIGNMENT_TRAILING- See Also:
-
FORCE_DIMENSION
public static final int FORCE_DIMENSION- See Also:
-
FOR_MENU
public static final int FOR_MENU- See Also:
-
-
Constructor Details
-
UIToolkit
public UIToolkit()
-
-
Method Details
-
get
-
getFirstMatching
-
getFirstMatching
protected static int getFirstMatching(int flags, int[] masks, int[] values, int def) -
createLabel
-
createLabel
-
createLabel
-
createLabel
-
createLabel
-
createButton
-
createButton
-
createButton
-
createButton
-
createButton
-
createButton
-
createLabeledComponent
-
createNumericWidget
-
createStringWidget
-
createTreeChoiceWidget
-
createChoiceWidget
-
createBooleanWidget
-
createColorWidget
-
createChartPanel
-
createPanel
-
createScrollPane
-
createTabbedPane
-
createContainer
-
createSplitContainer
-
createContainer
-
createContainer
-
setBorder
-
addComponent
-
addComponent
-
removeComponent
-
getParent
-
indexOf
-
getComponentCount
-
getComponent
-
getLocationOnScreen
-
getWidth
-
getHeight
-
revalidate
-
repaint
-
dispose
-
createWindow
-
createToolBar
-
createStatusBar
-
createViewerPanel
-
createViewerPanel
-
getTextViewerComponent
-
createTextEditor
-
createConsole
-
createTree
-
createTreeInSplit
-
createComponentTree
-
createUITreeComponent
-
createComponentMenu
-
createTextViewer
-
setContent
-
setContent
-
hightliteContent
-
createTable
-
getSelectedRow
-
getTable
-
showPopupMenu
-
createLogViewer
-
createAbout
Creates the tabs inside the "About GroIMP" panel. Therefore it uses the list "aboutapp.tabs" in IMP/src/plugin.properties to identify the single tabs.- Parameters:
plugin
-prefix
-tabComponents
-- Returns:
-
setLayout
-
chooseFile
public FileChooserResult chooseFile(String title, FileFilter[] filters, int type, boolean mustExist, FileFilter selectedFilter, Context ctx, String sourcePath) -
createDisplayForProject
Create component that represent a displayable version of the description of a project file. E.g. a gallery object.- Parameters:
context
- The context of the panelitem
- The uitree node that contains a project description- Returns:
-