java.lang.Object
de.grogra.pf.ui.UIToolkit
- Direct Known Subclasses:
AWTToolkitBase,CLIToolkit,HeadlessToolkit
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Dimensionstatic final intstatic final intstatic final intstatic final Stringstatic final Stringstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final Dimensionstatic final Dimensionstatic final Dimensionstatic final Stringstatic final Dimension -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddComponent(Object container, Object component, Object constraints) abstract voidaddComponent(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 WidgetcreateBooleanWidget(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 ObjectcreateButton(String text, IconSource source, Dimension size, int flags, Command cmd, Context ctx) abstract ChartPanelcreateChartPanel(Context ctx, Map params) abstract WidgetcreateChoiceWidget(ListModel list, boolean forMenu) abstract WidgetcreateColorWidget(Map params) abstract ComponentWrappercreateComponentMenu(UITree componentTree) abstract ComponentWrappercreateComponentTree(UITree componentTree) abstract ConsolecreateConsole(Context context, Map params) abstract ObjectcreateContainer(float[] weights, int gap) abstract ObjectcreateContainer(int gap) abstract ObjectcreateContainer(int rows, int cols, int gap) abstract ComponentWrappercreateDisplayForProject(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 ObjectcreateLabel(String text, IconSource icon, Dimension size, int flags) abstract ObjectcreateLabeledComponent(Object component, Object label) abstract PanelcreateLogViewer(Context ctx, Map params) abstract WidgetcreateNumericWidget(Type type, Quantity quantity, Map params) abstract PanelcreatePanel(Context ctx, Disposable toDispose, Map params) abstract ObjectcreateScrollPane(Object view) abstract ObjectcreateSplitContainer(int orientation) abstract PanelcreateStatusBar(Context context, Map params) abstract WidgetcreateStringWidget(Map params) abstract ObjectcreateTabbedPane(String[] titles, Object[] components) abstract ComponentWrappercreateTable(TableModel table, Context ctx) abstract TextEditorcreateTextEditor(Context context, Map params) abstract ObjectcreateTextViewer(URL url, String mimeType, String content, Command hyperlink, boolean asBrowser) abstract PanelcreateToolBar(Context context, Map params) abstract ComponentWrappercreateTree(UITree tree) abstract WidgetcreateTreeChoiceWidget(UITree tree) abstract ComponentWrappercreateTreeInSplit(UITree tree, Object split) abstract ComponentWrappercreateUITreeComponent(Object componentTree) createViewerPanel(Context context, String url, String systemid, Map params) abstract PanelcreateViewerPanel(Context ctx, URL url, Map params) abstract WindowcreateWindow(Command close, Map params) voidstatic UIToolkitabstract ObjectgetComponent(Object container, int index) abstract intgetComponentCount(Object container) protected static intgetFirstMatching(int flags, int[] masks, int[] values, int def) protected static ObjectgetFirstMatching(int flags, int[] masks, Object[] values, Object def) abstract intabstract PointgetLocationOnScreen(Object component) abstract Objectabstract intgetSelectedRow(ComponentWrapper table) abstract TableModelgetTable(ComponentWrapper table) abstract ObjectgetTextViewerComponent(Panel viewerPanel) abstract intabstract voidhightliteContent(Object textViewer, String text) abstract intabstract voidremoveComponent(Object component) abstract voidabstract voidrevalidate(Object component) abstract Objectabstract voidsetContent(Object textViewer, String mimeType, String content) abstract voidsetContent(Object textViewer, URL content) abstract voidsetDataHandlers(Object p, List<Item> h) abstract voidsetLayout(Object component, LayoutManager layout) abstract voidsetTransferHandler(Object p, Object h) abstract voidshowPopupMenu(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
-
setDataHandlers
-
setTransferHandler
-
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:
-