Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.eviware.soapui.support
Class UISupport

    java.lang.Object
      com.eviware.soapui.support.UISupport

    public class UISupport

extends java.lang.Object

Facade for common UI-related tasks

Author:
  Ole.Matzura

Field Summary
`static javax.swing.ImageIcon` | `HELP_ICON`
`static javax.swing.ImageIcon` | `OPTIONS_ICON`
`static javax.swing.ImageIcon` | `TOOL_ICON`
`static java.awt.Dimension` | `TOOLBAR_BUTTON_DIMENSION`

Constructor Summary
`UISupport()`

Method Summary
`static void` | `addClassLoader(java.lang.ClassLoader loader)` Add a classloader to find resources.
`static
`<T extends javax.swing.JComponent> T`
` | `addTitledBorder(T component, java.lang.String title)`
`static void` | `beep()`
`static java.awt.Component` | `buildDescription(java.lang.String title, java.lang.String string, javax.swing.ImageIcon icon)`
`static javax.swing.JPanel` | `buildPanelWithToolbar(javax.swing.JComponent top, javax.swing.JComponent content)`
`static javax.swing.JPanel` | `buildPanelWithToolbarAndStatusBar(javax.swing.JComponent top, javax.swing.JComponent content, javax.swing.JComponent bottom)`
`static void` | `centerDialog(javax.swing.JDialog dialog)`
`static boolean` | `confirm(java.lang.String question, java.lang.String title)`
`static boolean` | `confirmExtendedInfo(java.lang.String title, java.lang.String description, java.lang.String content, java.awt.Dimension size)`
`static java.lang.Boolean` | `confirmOrCancel(java.lang.String question, java.lang.String title)`
`static java.lang.Boolean` | `confirmOrCancelExtendedInfo(java.lang.String title, java.lang.String description, java.lang.String content, java.awt.Dimension size)`
`static ConfigurationDialog` | `createConfigurationDialog(java.lang.String name)` Deprecated. use XForm related classes instead
`static ConfigurationDialog` | `createConfigurationDialog(java.lang.String name, java.lang.String helpUrl)` Deprecated. use XForm related classes instead
`static ConfigurationDialog` | `createConfigurationDialog(java.lang.String name, java.lang.String helpUrl, java.lang.String description, javax.swing.ImageIcon icon)` Deprecated. use XForm related classes instead
`static javax.swing.JSplitPane` | `createHorizontalSplit()`
`static javax.swing.JSplitPane` | `createHorizontalSplit(java.awt.Component leftComponent, java.awt.Component rightComponent)`
`static javax.swing.ImageIcon` | `createImageIcon(java.lang.String path)`
`static javax.swing.JPanel` | `createProgressBarPanel(javax.swing.JProgressBar progressBar, int space, boolean indeterimate)`
`static javax.swing.JPanel` | `createTabPanel(javax.swing.JTabbedPane tabs, boolean addBorder)`
`static JXToolBar` | `createToolbar()`
`static javax.swing.JButton` | `createToolbarButton(javax.swing.Action action)`
`static javax.swing.JButton` | `createToolbarButton(javax.swing.Action action, boolean enabled)`
`static javax.swing.JSplitPane` | `createVerticalSplit()`
`static javax.swing.JSplitPane` | `createVerticalSplit(java.awt.Component topComponent, java.awt.Component bottomComponent)`
`static com.eviware.x.dialogs.XDialogs` | `getDialogs()`
`static com.eviware.x.dialogs.XFileDialogs` | `getFileDialogs()`
`static javax.swing.KeyStroke` | `getKeyStroke(java.lang.String keyStroke)` Replaces "menu" in the keyStroke with ctrl or meta depending on getMenuShortcutKeyMask
`static java.awt.Frame` | `getMainFrame()`
`static java.awt.Dimension` | `getPreferredButtonSize()`
`static ToolHost` | `getToolHost()`
`static JButtonBar` | `initDialogActions(ActionList actions, javax.swing.JDialog dialog)`
`static void` | `invokeAndWait(java.lang.Runnable runnable)`
`static void` | `invokeLater(java.lang.Runnable runnable)`
`static boolean` | `isWindows()`
`static java.lang.String` | `prompt(java.lang.String question, java.lang.String title)` Deprecated. use prompt(String question, String title, String value) instead
`static
`<T> T`
` | `prompt(java.lang.String question, java.lang.String title, java.util.List<T> objects)`
`static
`<T> T`
` | `prompt(java.lang.String question, java.lang.String title, java.util.List<T> objects, java.lang.String value)`
`static java.lang.String` | `prompt(java.lang.String question, java.lang.String title, java.lang.String value)`
`static
`<T> T`
` | `prompt(java.lang.String question, java.lang.String title, T[] objects)`
`static
`<T> T`
` | `prompt(java.lang.String question, java.lang.String title, T[] objects, java.lang.String value)`
`static void` | `resetCursor()`
`static void` | `select(ModelItem modelItem)`
`static DesktopPanel` | `selectAndShow(ModelItem modelItem)`
`static void` | `setDialogs(com.eviware.x.dialogs.XDialogs xDialogs)`
`static void` | `setFileDialogs(com.eviware.x.dialogs.XFileDialogs xFileDialogs)`
`static void` | `setHourglassCursor()`
`static void` | `setMainFrame(java.awt.Component frame)` Set the main frame of this application.
`static void` | `setPreferredHeight(java.awt.Component component, int heigth)`
`static void` | `setToolHost(ToolHost host)`
`static void` | `setUIUtils(UIUtils utils)`
`static DesktopPanel` | `showDesktopPanel(DesktopPanel desktopPanel)`
`static DesktopPanel` | `showDesktopPanel(ModelItem modelItem)`
`static void` | `showDialog(javax.swing.JDialog dialog)`
`static void` | `showErrorMessage(java.lang.Exception ex)`
`static void` | `showErrorMessage(java.lang.String message)`
`static void` | `showExtendedInfo(java.lang.String title, java.lang.String description, java.lang.String content, java.awt.Dimension size)`
`static void` | `showInfoMessage(java.lang.String message)`
`static void` | `showInfoMessage(java.lang.String message, java.lang.String title)`
`static void` | `showPopup(javax.swing.JPopupMenu popup, javax.swing.JComponent invoker, java.awt.Point p)`
`static boolean` | `stopCellEditing(javax.swing.JTable table)`
`static java.awt.Component` | `wrapInEmptyPanel(javax.swing.JComponent component, javax.swing.border.Border border)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### TOOLBAR_BUTTON_DIMENSION

    public static java.awt.Dimension TOOLBAR_BUTTON_DIMENSION

### TOOL_ICON

    public static javax.swing.ImageIcon TOOL_ICON

### OPTIONS_ICON

    public static javax.swing.ImageIcon OPTIONS_ICON

### HELP_ICON

    public static javax.swing.ImageIcon HELP_ICON

Constructor Detail

### UISupport

    public UISupport()

Method Detail

### addClassLoader

    public static void addClassLoader(java.lang.ClassLoader loader)

  Add a classloader to find resources.

  Parameters:
    `loader` -

### setMainFrame

    public static void setMainFrame(java.awt.Component frame)

  Set the main frame of this application. This is only used when running under Swing.

  Parameters:
    `frame` -

### setDialogs

    public static void setDialogs(com.eviware.x.dialogs.XDialogs xDialogs)

### setFileDialogs

    public static void setFileDialogs(com.eviware.x.dialogs.XFileDialogs xFileDialogs)

### getToolHost

    public static ToolHost getToolHost()

### setToolHost

    public static void setToolHost(ToolHost host)

### getMainFrame

    public static java.awt.Frame getMainFrame()

### getDialogs

    public static com.eviware.x.dialogs.XDialogs getDialogs()

### getFileDialogs

    public static com.eviware.x.dialogs.XFileDialogs getFileDialogs()

### createConfigurationDialog

    public static ConfigurationDialog createConfigurationDialog(java.lang.String name,
                                                                java.lang.String helpUrl,
                                                                java.lang.String description,
                                                                javax.swing.ImageIcon icon)

  Deprecated. use XForm related classes instead

### createConfigurationDialog

    public static ConfigurationDialog createConfigurationDialog(java.lang.String name,
                                                                java.lang.String helpUrl)

  Deprecated. use XForm related classes instead

### createConfigurationDialog

    public static ConfigurationDialog createConfigurationDialog(java.lang.String name)

  Deprecated. use XForm related classes instead

### showErrorMessage

    public static void showErrorMessage(java.lang.String message)

### confirm

    public static boolean confirm(java.lang.String question,
                                  java.lang.String title)

### prompt

    public static java.lang.String prompt(java.lang.String question,
                                          java.lang.String title,
                                          java.lang.String value)

### prompt

    public static java.lang.String prompt(java.lang.String question,
                                          java.lang.String title)

  Deprecated. use prompt(String question, String title, String value) instead

### stopCellEditing

    public static boolean stopCellEditing(javax.swing.JTable table)

### createProgressBarPanel

    public static javax.swing.JPanel createProgressBarPanel(javax.swing.JProgressBar progressBar,
                                                            int space,
                                                            boolean indeterimate)

### createHorizontalSplit

    public static javax.swing.JSplitPane createHorizontalSplit()

### createHorizontalSplit

    public static javax.swing.JSplitPane createHorizontalSplit(java.awt.Component leftComponent,
                                                               java.awt.Component rightComponent)

### createVerticalSplit

    public static javax.swing.JSplitPane createVerticalSplit()

### createVerticalSplit

    public static javax.swing.JSplitPane createVerticalSplit(java.awt.Component topComponent,
                                                             java.awt.Component bottomComponent)

### centerDialog

    public static void centerDialog(javax.swing.JDialog dialog)

### showDialog

    public static void showDialog(javax.swing.JDialog dialog)

### createImageIcon

    public static javax.swing.ImageIcon createImageIcon(java.lang.String path)

### showInfoMessage

    public static void showInfoMessage(java.lang.String message)

### showInfoMessage

    public static void showInfoMessage(java.lang.String message,
                                       java.lang.String title)

### prompt

    public static <T> T prompt(java.lang.String question,
                               java.lang.String title,
                               T[] objects)

### prompt

    public static <T> T prompt(java.lang.String question,
                               java.lang.String title,
                               T[] objects,
                               java.lang.String value)

### createToolbarButton

    public static javax.swing.JButton createToolbarButton(javax.swing.Action action)

### createToolbarButton

    public static javax.swing.JButton createToolbarButton(javax.swing.Action action,
                                                          boolean enabled)

### createTabPanel

    public static javax.swing.JPanel createTabPanel(javax.swing.JTabbedPane tabs,
                                                    boolean addBorder)

### showPopup

    public static void showPopup(javax.swing.JPopupMenu popup,
                                 javax.swing.JComponent invoker,
                                 java.awt.Point p)

### selectAndShow

    public static DesktopPanel selectAndShow(ModelItem modelItem)

### showDesktopPanel

    public static DesktopPanel showDesktopPanel(ModelItem modelItem)

### showDesktopPanel

    public static DesktopPanel showDesktopPanel(DesktopPanel desktopPanel)

### confirmOrCancel

    public static java.lang.Boolean confirmOrCancel(java.lang.String question,
                                                    java.lang.String title)

### buildPanelWithToolbar

    public static javax.swing.JPanel buildPanelWithToolbar(javax.swing.JComponent top,
                                                           javax.swing.JComponent content)

### buildPanelWithToolbarAndStatusBar

    public static javax.swing.JPanel buildPanelWithToolbarAndStatusBar(javax.swing.JComponent top,
                                                                       javax.swing.JComponent content,
                                                                       javax.swing.JComponent bottom)

### getPreferredButtonSize

    public static java.awt.Dimension getPreferredButtonSize()

### showErrorMessage

    public static void showErrorMessage(java.lang.Exception ex)

### wrapInEmptyPanel

    public static java.awt.Component wrapInEmptyPanel(javax.swing.JComponent component,
                                                      javax.swing.border.Border border)

### isWindows

    public static boolean isWindows()

### setHourglassCursor

    public static void setHourglassCursor()

### resetCursor

    public static void resetCursor()

### setUIUtils

    public static void setUIUtils(UIUtils utils)

### invokeLater

    public static void invokeLater(java.lang.Runnable runnable)

### invokeAndWait

    public static void invokeAndWait(java.lang.Runnable runnable)
                              throws java.lang.Exception

  Throws:
    `java.lang.Exception`

### createToolbar

    public static JXToolBar createToolbar()

### getKeyStroke

    public static javax.swing.KeyStroke getKeyStroke(java.lang.String keyStroke)

  Replaces "menu" in the keyStroke with ctrl or meta depending on getMenuShortcutKeyMask

### buildDescription

    public static java.awt.Component buildDescription(java.lang.String title,
                                                      java.lang.String string,
                                                      javax.swing.ImageIcon icon)

### setPreferredHeight

    public static void setPreferredHeight(java.awt.Component component,
                                          int heigth)

### initDialogActions

    public static JButtonBar initDialogActions(ActionList actions,
                                               javax.swing.JDialog dialog)

### addTitledBorder

    public static <T extends javax.swing.JComponent> T addTitledBorder(T component,
                                                                       java.lang.String title)

### beep

    public static void beep()

### prompt

    public static <T> T prompt(java.lang.String question,
                               java.lang.String title,
                               java.util.List<T> objects)

### prompt

    public static <T> T prompt(java.lang.String question,
                               java.lang.String title,
                               java.util.List<T> objects,
                               java.lang.String value)

### showExtendedInfo

    public static void showExtendedInfo(java.lang.String title,
                                        java.lang.String description,
                                        java.lang.String content,
                                        java.awt.Dimension size)

### confirmExtendedInfo

    public static boolean confirmExtendedInfo(java.lang.String title,
                                              java.lang.String description,
                                              java.lang.String content,
                                              java.awt.Dimension size)

### confirmOrCancelExtendedInfo

    public static java.lang.Boolean confirmOrCancelExtendedInfo(java.lang.String title,
                                                                java.lang.String description,
                                                                java.lang.String content,
                                                                java.awt.Dimension size)

### select

    public static void select(ModelItem modelItem)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2005-2007 eviware.com. All Rights Reserved.