qflib 0.98.0

de.qfs.lib.gui
Class ModalDialog.ButtonData

java.lang.Object
  |
  +--de.qfs.lib.gui.ModalDialog.ButtonData
Direct Known Subclasses:
OptionDialog.OptionButtonData
Enclosing class:
ModalDialog

public static class ModalDialog.ButtonData
extends java.lang.Object

A structure that encapsulates the values for a button.

This class is public only to work around a javac BUG.


Field Summary
 javax.swing.JButton button
          The button itself.
 boolean close
          Whether the button should close the dialog.
 boolean deflt
          Whether the button is a default button.
 boolean hasRetval
          Whether the return value is explicitely defined.
 java.lang.String name
          The resource name of the button.
 int retval
          The buttons return value.
 
Constructor Summary
ModalDialog.ButtonData()
          Create a new ButtonData.
ModalDialog.ButtonData(java.lang.String name, MapResourceBundle rb)
          Create a new ButtonData, reading its value from the resources.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public java.lang.String name
The resource name of the button.

button

public javax.swing.JButton button
The button itself.

retval

public int retval
The buttons return value.

hasRetval

public boolean hasRetval
Whether the return value is explicitely defined.

close

public boolean close
Whether the button should close the dialog.

deflt

public boolean deflt
Whether the button is a default button.
Constructor Detail

ModalDialog.ButtonData

public ModalDialog.ButtonData()
Create a new ButtonData.

ModalDialog.ButtonData

public ModalDialog.ButtonData(java.lang.String name,
                              MapResourceBundle rb)
Create a new ButtonData, reading its value from the resources.
Parameters:
name - The resource name of the button.
rb - The resources to use.

qflib 0.98.0