Logo Search packages:      
Sourcecode: wims version File versions  Download package

SharpTools::SharpDialog Class Reference

Inheritance diagram for SharpTools::SharpDialog:

SharpTools::ConnectDialog SharpTools::FindDialog SharpTools::HistoDialog SharpTools::NewFileDialog SharpTools::PasswordDialog SharpTools::SortDialog

List of all members.

Detailed Description

See also:






Definition at line 21 of file SharpDialog.java.

Public Member Functions

int getChoice ()
boolean isCancelled ()

Static Public Attributes

static final int CANCEL_OPTION = JOptionPane.CANCEL_OPTION
static final int CLOSED_OPTION = JOptionPane.CLOSED_OPTION
static final int NO_OPTION = JOptionPane.NO_OPTION
static final int OK_OPTION = JOptionPane.OK_OPTION
static final int YES_OPTION = JOptionPane.YES_OPTION

Protected Member Functions

JRootPane createRootPane ()
boolean onCancel ()
boolean onClose ()
boolean onNo ()
boolean onOK ()
void onOpen ()
boolean onYes ()
void setOptionPane (Object message, int messageType, int optionType, Icon icon, int defaultIndex)
void setOptionPane (Object message, int messageType, int optionType, Icon icon)

Package Functions

 SharpDialog (Frame c, String title, boolean modal)
 SharpDialog (Frame c, String title)
 SharpDialog (Frame c, boolean modal)
 SharpDialog (Frame c)
 SharpDialog (Dialog c, String title, boolean modal)
 SharpDialog (Dialog c, String title)
 SharpDialog (Dialog c, boolean modal)
 SharpDialog (Dialog c)

Package Attributes

final ImageIcon cancelIcon = new ImageIcon(getClass().getResource("/images/cancel.gif"))
final ImageIcon noIcon = new ImageIcon(getClass().getResource("/images/no.gif"))
final ImageIcon okIcon = new ImageIcon(getClass().getResource("/images/ok.gif"))

Private Member Functions

Object[] setButtons (int type)

Private Attributes

final JButton cancelButton = new JButton(UIManager.get("OptionPane.cancelButtonText").toString(), cancelIcon)
int choice = CLOSED_OPTION
final JButton noButton = new JButton(UIManager.get("OptionPane.noButtonText").toString(), noIcon)
final Object[] ok = { okButton }
final JButton okButton = new JButton(UIManager.get("OptionPane.okButtonText").toString(), okIcon)
final Object[] okcancel = { okButton, cancelButton }
final JButton yesButton = new JButton(UIManager.get("OptionPane.yesButtonText").toString(), okIcon)
final Object[] yesno = { yesButton, noButton }
final Object[] yesnocancel = { yesButton, noButton, cancelButton }

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index