| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Window manager is responsible for creating buttons and dialogs of various types.
The createDialog method creates a Together UI-consistent JDialog instance.
A newly created button can be transformed into any Together UI-consistent standard button type
using setupStandardButton method. (Types of standard buttons are defined in IdeButtonType interface).
createFileChooser method creates IdeFileChooser instance very similar to
JFileChooser.
customize method allows to create a bean properties inspector and to use it to
work with bean's properties.
Current IdeWindowManager can be obtained via
IdeWindowManagerAccess.getWindowManager method.
| Method Summary | |
IdeDialogButtonGroup | createButtonGroup()Creates a new empty IdeDialogButtonGroup. |
JPanel | createButtonPanel(JComponent firstComponent, IdeDialogButtonGroup buttonGroup)Creates a new JPanel that contains component that is aligned to left side and
buttons from the specified group those are aligned to right side. |
JPanel | createButtonPanel(IdeDialogButtonGroup buttonGroup, LayoutManager layoutManager)Creates a new JPanel that contains buttons from the specified group,
allocates the buttons according to the specified layout. |
JPanel | createButtonPanel(IdeDialogButtonGroup buttonGroup)Creates a new JPanel that contains buttons from the specified group. |
JDialog | createDialog(Component parent)Creates a new Together UI-consistent JDialog. |
IdeFileChooser | createFileChooser(String currentDirectory)Creates an instance of IdeFileChooser in th specified directory. |
IdePathChooser | createPathChooser()Creates an instance of IdePathChooser. |
IdePathChooser | createPathChooser(String currentDirectory)Creates an instance of IdePathChooser. |
boolean | customize(Object bean, String title, String helpURL)Creates a bean properties inspector for the given bean object and allows to use it for work with the bean's properties. |
java.awt.Image | getApplicationIconImage()Returns an image of the main window of the application. |
AbstractButton | setupStandardButton(AbstractButton button, String buttonType)Transforms the given button into the standard button of the specified type (sets title and icon, mnemonic and alt-mnemonic key, correct shortcut). |
String | showConfirmDialog(Component parent, String title, Object message, String[] buttons)Brings up a modal confirmation dialog. |
String | showConfirmDialog(String title, Object message, String[] buttons)Brings up a modal confirmation dialog. |
Vector | showElementsSelectorDialog(RwiElement rwiElement, int selectorType)Brings up a modal selector dialog of the specified type. |
Vector | showElementsSelectorDialog(RwiElement rwiElement, String propertyName, int selectorType) |
Vector | showElementsSelectorDialog(RwiElement rwiElement, UnaryCondition displayFilter, UnaryCondition classFilter, boolean includeCurrentDiagram, UnaryCondition isMultiple, UnaryOperation title)Brings up a modal selector dialog with the specified filtering conditions. |
Vector | showElementsSelectorDialog(RwiElement rwiElement, String propertyName, UnaryCondition displayFilter, UnaryCondition classFilter, boolean includeCurrentDiagram, UnaryCondition isMultiple, UnaryOperation title) |
void | showMessageDialog(Component parent, String title, int messageType, Object message)Displays a message in the dialog box that contains only "OK" button. |
void | showMessageDialog(String title, int messageType, Object message)Displays a message in the dialog box containing only "OK" button. |
String | showOptionDialog(Component parent, String title, int messageType, Object message, String[] buttons, String helpURL)Displays a message in the modal dialog box with the buttons, presented in the specified array. |
AbstractButton | showOptionDialog(Component parent, String title, int messageType, Object message, IdeDialogButtonGroup buttonGroup, String helpURL)Displays a message in the modal dialog box with the buttons from the specified button group. |
| Method Detail |
public IdeDialogButtonGroup createButtonGroup()
IdeDialogButtonGroup.IdeDialogButtonGroup object that represents a new button grouppublic JPanel createButtonPanel(JComponent firstComponent, IdeDialogButtonGroup buttonGroup)
JPanel that contains component that is aligned to left side and
JComponentIdeDialogButtonGroup objectJPanelpublic JPanel createButtonPanel(IdeDialogButtonGroup buttonGroup, LayoutManager layoutManager)
JPanel that contains buttons from the specified group,
IdeDialogButtonGroup objectLayoutManagerJPanelpublic JPanel createButtonPanel(IdeDialogButtonGroup buttonGroup)
JPanel that contains buttons from the specified group.IdeDialogButtonGroup objectJPanelpublic JDialog createDialog(Component parent)
JDialog.Component that determines the Frame where this
JDialog instancepublic IdeFileChooser createFileChooser(String currentDirectory)
IdeFileChooser in th specified directory.String initial path for the file chooserIdeFileChooser objectpublic IdePathChooser createPathChooser()
IdePathChooser.IdePathChooser objectpublic IdePathChooser createPathChooser(String currentDirectory)
IdePathChooser.String initial path for the path chooserIdePathChooser objectpublic boolean customize(Object bean, String title, String helpURL)
IdeExpertPage interface then it is possible to create a multi-page inspector for this bean.Object bean to be inspectedString title of this inspectorString URL of the help infotrue if the bean was succesfully processed,
false if an error occurred during bean customizationpublic java.awt.Image getApplicationIconImage()
java.awt.Image instancepublic AbstractButton setupStandardButton(AbstractButton button, String buttonType)
AbstractButton object.
null then a new JButton will be returned.String name of the button type.
IdeButtonType interface.public String showConfirmDialog(Component parent, String title, Object message, String[] buttons)
Component that determines the Frame where this
null, then Together's Frame is used.String title of this dialog.Object body of the message.String[] array containing the types of buttons to be inserted
IdeButtonType interface.String that indicates the button pressed by the user, or
null if no button was pressed.public String showConfirmDialog(String title, Object message, String[] buttons)
IdeButtonType interface.public Vector showElementsSelectorDialog(RwiElement rwiElement, int selectorType)
RwiElement objectint type of the dialogVectorpublic Vector showElementsSelectorDialog(RwiElement rwiElement, String propertyName, int selectorType)
public Vector showElementsSelectorDialog(RwiElement rwiElement, UnaryCondition displayFilter, UnaryCondition classFilter, boolean includeCurrentDiagram, UnaryCondition isMultiple, UnaryOperation title)
RwiElement objectUnaryConditionUnaryConditionbooleanUnaryConditionUnaryOperationVectorpublic Vector showElementsSelectorDialog(RwiElement rwiElement, String propertyName, UnaryCondition displayFilter, UnaryCondition classFilter, boolean includeCurrentDiagram, UnaryCondition isMultiple, UnaryOperation title)
public void showMessageDialog(Component parent, String title, int messageType, Object message)
Component that determines the Frame where this
null, then Together's Frame is used.String title of this dialog.int type of the message. Predefined values are
IdeDialogType interface.Object body of the message.public void showMessageDialog(String title, int messageType, Object message)
String title of this dialog.int type of the message. Predefined values are
IdeDialogType interface.Object body of the message.public String showOptionDialog(Component parent, String title, int messageType, Object message, String[] buttons, String helpURL)
Comopnent that determines the Frame where this dialog
null, then Together's Frame is used.String title of this dialogint identifier of the message type.
IdeDialogType interface.Object that represents the message textString[] array with the types of buttons to be inserted into the dialog.
IdeButtonType interface.String URL of help information for this dialogString name of the selected button. See IdeButtonType interface.public AbstractButton showOptionDialog(Component parent, String title, int messageType, Object message, IdeDialogButtonGroup buttonGroup, String helpURL)
Component that determines the Frame where this dialog
null, then Together's Frame is used.String title of this dialogint type of the message.
IdeDialogType interface.Object representing the messageIdeDialogButtonGroup that contains the buttons to be inserted into the dialog.String URL of the help information for this dialogAbstractButton object that represents the pressed button.
| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||