public interface IStandardModalDialog
---------------------------------- | TITLE Image | | Description Image | ---------------------------------- | Notice panel (optional) | ---------------------------------- | | | | | | | CONTENT | | | | | | | | | ---------------------------------- | BUTTONS | ----------------------------------You can give a JPanel object as content panel to embedd your own Dialog. You can also implement validators and dynamicly show warnings and errors. The button panel Supports various Buttons such as OK, CANCEL, IGNORE, ...
Modifier and Type | Method and Description |
---|---|
void |
addStandardDialogListener(IStandardDialogListener listener)
Adds a new listener to the dialog.
|
void |
removeNotice()
Removes the notice from the dialog, so that no notice is shown.
|
void |
removeStandardDialogListener(IStandardDialogListener listener)
Removes the given listener from the dialog.
|
void |
setButtonsEnabled(int buttons,
boolean enable)
Enables or disable one or more buttons in the button panel.
|
void |
setContent(JComponent component)
Sets the new content for the dialog.
|
void |
setDetailedDescription(String description)
Changes the detailed description in the head of the dialog.
|
void |
setImage(Image image)
Sets the new image for the dialog.
|
void |
setMainDescription(String description)
Sets the main description for the dialog.
|
void |
setNotice(String notice,
int type)
Sets a new notice.
|
void addStandardDialogListener(IStandardDialogListener listener)
listener
- the listener to add to the dialogvoid removeStandardDialogListener(IStandardDialogListener listener)
listener
- the listener to remove from the dialogvoid setNotice(String notice, int type)
notice
- the new notice to display or null to remove a noticetype
- the new type for the notice (value from DialogConstants)void removeNotice()
void setButtonsEnabled(int buttons, boolean enable)
buttons
- a combination of buttons from DialogConstantsenable
- set to true to enable the buttons, set to false to disable the
buttonsvoid setContent(JComponent component)
content
- the new content for the dialog. MUST NOT be null.void setDetailedDescription(String description)
description
- the new description that should be displayedvoid setImage(Image image)
void setMainDescription(String description)
description
- the new main description for the dialog.