Module platform

Class UIToolkit

java.lang.Object
de.grogra.pf.ui.UIToolkit
Direct Known Subclasses:
AWTToolkitBase, CLIToolkit, HeadlessToolkit

public abstract class UIToolkit extends Object
  • Field Details

  • Constructor Details

    • UIToolkit

      public UIToolkit()
  • Method Details

    • get

      public static UIToolkit get(Context ctx)
    • getFirstMatching

      protected static Object getFirstMatching(int flags, int[] masks, Object[] values, Object def)
    • getFirstMatching

      protected static int getFirstMatching(int flags, int[] masks, int[] values, int def)
    • createLabel

      public Object createLabel(Described dp, int flags)
    • createLabel

      public Object createLabel(Described dp, Dimension size, int flags)
    • createLabel

      public Object createLabel(String text, int flags)
    • createLabel

      public Object createLabel(String text, IconSource icon, int flags)
    • createLabel

      public abstract Object createLabel(String text, IconSource icon, Dimension size, int flags)
    • createButton

      public Object createButton(I18NBundle bundle, String key, Dimension size, int flags, Command cmd, Context ctx)
    • createButton

      public Object createButton(Described dp, int flags, Command cmd, Context ctx)
    • createButton

      public Object createButton(Described dp, Dimension size, int flags, Command cmd, Context ctx)
    • createButton

      public Object createButton(String text, int flags, Command cmd, Context ctx)
    • createButton

      public Object createButton(String text, IconSource source, int flags, Command cmd, Context ctx)
    • createButton

      public abstract Object createButton(String text, IconSource source, Dimension size, int flags, Command cmd, Context ctx)
    • createLabeledComponent

      public abstract Object createLabeledComponent(Object component, Object label)
    • createNumericWidget

      public abstract Widget createNumericWidget(Type type, Quantity quantity, Map params)
    • createStringWidget

      public abstract Widget createStringWidget(Map params)
    • createTreeChoiceWidget

      public abstract Widget createTreeChoiceWidget(UITree tree)
    • createChoiceWidget

      public abstract Widget createChoiceWidget(ListModel list, boolean forMenu)
    • createBooleanWidget

      public abstract Widget createBooleanWidget(boolean forMenu, Map params)
    • createColorWidget

      public abstract Widget createColorWidget(Map params)
    • createChartPanel

      public abstract ChartPanel createChartPanel(Context ctx, Map params)
    • createPanel

      public abstract Panel createPanel(Context ctx, Disposable toDispose, Map params)
    • createScrollPane

      public abstract Object createScrollPane(Object view)
    • createTabbedPane

      public abstract Object createTabbedPane(String[] titles, Object[] components)
    • createContainer

      public abstract Object createContainer(int gap)
    • createSplitContainer

      public abstract Object createSplitContainer(int orientation)
    • createContainer

      public abstract Object createContainer(int rows, int cols, int gap)
    • createContainer

      public abstract Object createContainer(float[] weights, int gap)
    • setBorder

      public abstract Object setBorder(Object component, int gap)
    • addComponent

      public void addComponent(Object container, Object component, Object constraints)
    • addComponent

      public abstract void addComponent(Object container, Object component, Object constraints, int index)
    • removeComponent

      public abstract void removeComponent(Object component)
    • getParent

      public abstract Object getParent(Object component)
    • indexOf

      public abstract int indexOf(Object component)
    • getComponentCount

      public abstract int getComponentCount(Object container)
    • getComponent

      public abstract Object getComponent(Object container, int index)
    • getLocationOnScreen

      public abstract Point getLocationOnScreen(Object component)
    • getWidth

      public abstract int getWidth(Object component)
    • getHeight

      public abstract int getHeight(Object component)
    • revalidate

      public abstract void revalidate(Object component)
    • repaint

      public abstract void repaint(Object component)
    • dispose

      public void dispose(Object component)
    • createWindow

      public abstract Window createWindow(Command close, Map params)
    • createToolBar

      public abstract Panel createToolBar(Context context, Map params)
    • createStatusBar

      public abstract Panel createStatusBar(Context context, Map params)
    • createViewerPanel

      public Panel createViewerPanel(Context context, String systemId, Map params)
    • createViewerPanel

      public abstract Panel createViewerPanel(Context ctx, URL url, Map params)
    • getTextViewerComponent

      public abstract Object getTextViewerComponent(Panel viewerPanel)
    • createTextEditor

      public abstract TextEditor createTextEditor(Context context, Map params)
    • createConsole

      public abstract Console createConsole(Context context, Map params)
    • createTree

      public abstract ComponentWrapper createTree(UITree tree)
    • createTreeInSplit

      public abstract ComponentWrapper createTreeInSplit(UITree tree, Object split)
    • createComponentTree

      public abstract ComponentWrapper createComponentTree(UITree componentTree)
    • createUITreeComponent

      public abstract ComponentWrapper createUITreeComponent(Object componentTree)
    • createComponentMenu

      public abstract ComponentWrapper createComponentMenu(UITree componentTree)
    • createTextViewer

      public abstract Object createTextViewer(URL url, String mimeType, String content, Command hyperlink, boolean asBrowser)
    • setContent

      public abstract void setContent(Object textViewer, String mimeType, String content)
    • setContent

      public abstract void setContent(Object textViewer, URL content)
    • hightliteContent

      public abstract void hightliteContent(Object textViewer, String text)
    • createTable

      public abstract ComponentWrapper createTable(TableModel table, Context ctx)
    • getSelectedRow

      public abstract int getSelectedRow(ComponentWrapper table)
    • getTable

      public abstract TableModel getTable(ComponentWrapper table)
    • showPopupMenu

      public abstract void showPopupMenu(UITree menu, Object component, int x, int y)
    • createLogViewer

      public abstract Panel createLogViewer(Context ctx, Map params)
    • createAbout

      public Object createAbout(PluginDescriptor plugin, String prefix, ObjectList tabComponents)
      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

      public abstract void setLayout(Object component, LayoutManager layout)
    • chooseFile

      public FileChooserResult chooseFile(String title, FileFilter[] filters, int type, boolean mustExist, FileFilter selectedFilter, Context ctx, String sourcePath)
    • createDisplayForProject

      public abstract ComponentWrapper createDisplayForProject(Context context, Item item)
      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 panel
      item - The uitree node that contains a project description
      Returns: