public class DontShowAgainOptionBox
extends java.lang.Object
Constructor and Description |
---|
DontShowAgainOptionBox() |
Modifier and Type | Method and Description |
---|---|
static int |
dontShowAgainMessageBox(Plugin plugin,
java.lang.String optionBoxId,
java.awt.Component parentComponent,
java.lang.String message)
Shows a option box with a checkbox that enables the user to hide the dialog.
|
static int |
dontShowAgainMessageBox(Plugin plugin,
java.lang.String optionBoxId,
java.awt.Component parentComponent,
java.lang.String message,
java.lang.String title)
Shows a option box with a checkbox that enables the user to hide the dialog.
|
static int |
dontShowAgainMessageBox(Plugin plugin,
java.lang.String optionBoxId,
java.awt.Component parent,
java.lang.String message,
java.lang.String title,
int messageType)
Shows an option box with a checkbox that enables the user to hide the dialog.
|
static int |
dontShowAgainMessageBox(Plugin plugin,
java.lang.String optionBoxId,
java.awt.Component parent,
java.lang.String message,
java.lang.String title,
int messageType,
int optionType,
java.lang.Object[] options,
java.lang.Object initialValue,
java.lang.String dontShowAgainLabel)
Shows an option box with a checkbox that enables the user to hide the dialog.
|
static boolean |
isOptionBoxIdSet(Plugin plugin,
java.lang.String optionBoxId) |
static void |
setOptionBoxId(Plugin plugin,
java.lang.String optionBoxId,
boolean value)
Set the value for the optionBoxId.
|
public static int dontShowAgainMessageBox(Plugin plugin, java.lang.String optionBoxId, java.awt.Component parent, java.lang.String message, java.lang.String title, int messageType, int optionType, java.lang.Object[] options, java.lang.Object initialValue, java.lang.String dontShowAgainLabel)
plugin
- Plugin that wants to show a option boxoptionBoxId
- the unique id for the option boxparent
- parent frame for the option boxmessage
- message for the boxtitle
- title for the boxmessageType
- MessageType, values are {#javax.swing.JOptionPane.ERROR_MESSAGE}, {#javax.swing.JOptionPane.INFORMATION_MESSAGE}, {#javax.swing.JOptionPane.WARNING_MESSAGE}optionType
- The option type of the option dialog, values are JOptionPane.YES_OPTION
, JOptionPane.YES_NO_OPTION
, JOptionPane.YES_NO_CANCEL_OPTION
, JOptionPane.OK_OPTION
,
JOptionPane.OK_CANCEL_OPTION
, JOptionPane.DEFAULT_OPTION
.options
- The options to show on the option buttons.initialValue
- The option initially selected.dontShowAgainLabel
- The label for the check box or, null
for the default label.JOptionPane.YES_OPTION
, JOptionPane.YES_NO_OPTION
, JOptionPane.YES_NO_CANCEL_OPTION
, JOptionPane.OK_OPTION
,
JOptionPane.OK_CANCEL_OPTION
, JOptionPane.DEFAULT_OPTION
.public static int dontShowAgainMessageBox(Plugin plugin, java.lang.String optionBoxId, java.awt.Component parent, java.lang.String message, java.lang.String title, int messageType)
plugin
- Plugin that wants to show a option boxoptionBoxId
- the unique id for the option boxparent
- parent frame for the option boxmessage
- message for the boxtitle
- title for the boxmessageType
- MessageType, values are {#javax.swing.JOptionPane.ERROR_MESSAGE}, {#javax.swing.JOptionPane.INFORMATION_MESSAGE}, {#javax.swing.JOptionPane.WARNING_MESSAGE}JOptionPane.YES_OPTION
, JOptionPane.YES_NO_OPTION
, JOptionPane.YES_NO_CANCEL_OPTION
, JOptionPane.OK_OPTION
,
JOptionPane.OK_CANCEL_OPTION
, JOptionPane.DEFAULT_OPTION
.public static int dontShowAgainMessageBox(Plugin plugin, java.lang.String optionBoxId, java.awt.Component parentComponent, java.lang.String message, java.lang.String title)
plugin
- Plugin that wants to show a option boxoptionBoxId
- the unique id for the option boxparentComponent
- parent frame for the option boxmessage
- message for the boxtitle
- title for the boxJOptionPane.YES_OPTION
, JOptionPane.YES_NO_OPTION
, JOptionPane.YES_NO_CANCEL_OPTION
, JOptionPane.OK_OPTION
,
JOptionPane.OK_CANCEL_OPTION
, JOptionPane.DEFAULT_OPTION
.public static int dontShowAgainMessageBox(Plugin plugin, java.lang.String optionBoxId, java.awt.Component parentComponent, java.lang.String message)
plugin
- Plugin that wants to show a option boxoptionBoxId
- the unique id for the option boxparentComponent
- parent frame for the option boxmessage
- message for the boxJOptionPane.YES_OPTION
, JOptionPane.YES_NO_OPTION
, JOptionPane.YES_NO_CANCEL_OPTION
, JOptionPane.OK_OPTION
,
JOptionPane.OK_CANCEL_OPTION
, JOptionPane.DEFAULT_OPTION
.public static boolean isOptionBoxIdSet(Plugin plugin, java.lang.String optionBoxId)
plugin
- plugin that uses the option boxoptionBoxId
- check this optionBoxIdpublic static void setOptionBoxId(Plugin plugin, java.lang.String optionBoxId, boolean value)
plugin
- plugin that uses the option boxoptionBoxId
- check this optionBoxIdvalue
- new value, true
to disable the dialog, false
, to enable the dialogTV-Browser 3.4.3, Copyright (C) 2004-2008 TV-Browser Team (dev@tvbrowser.org)