org.archiviststoolkit.swing
Class ATBasicComponentFactory

java.lang.Object
  extended by com.jgoodies.binding.adapter.BasicComponentFactory
      extended by org.archiviststoolkit.swing.ATBasicComponentFactory

public class ATBasicComponentFactory
extends com.jgoodies.binding.adapter.BasicComponentFactory


Constructor Summary
ATBasicComponentFactory()
           
 
Method Summary
static javax.swing.JFormattedTextField createBufferedIntegerField(com.jgoodies.binding.PresentationModel detailsModel, java.lang.String fieldName)
           
static javax.swing.JFormattedTextField createBufferedIntegerField(com.jgoodies.binding.PresentationModel detailsModel, java.lang.String fieldName, boolean useGrouping)
           
static javax.swing.JCheckBox createCheckBox(com.jgoodies.binding.PresentationModel detailsModel, java.lang.String fieldName, java.lang.Class clazz)
           
static javax.swing.JCheckBox createCheckBox(com.jgoodies.binding.PresentationModel detailsModel, java.lang.String fieldName, java.lang.Class clazz, boolean buffered)
           
static javax.swing.JComboBox createComboBox(com.jgoodies.binding.PresentationModel detailsModel, java.lang.String fieldName, java.util.ArrayList values)
           
static javax.swing.JComboBox createComboBox(com.jgoodies.binding.PresentationModel detailsModel, java.lang.String fieldName, java.util.ArrayList values, java.lang.Integer maxLength)
           
static javax.swing.JComboBox createComboBox(com.jgoodies.binding.PresentationModel detailsModel, java.lang.String fieldName, java.lang.Class clazz)
           
static javax.swing.JComboBox createComboBox(com.jgoodies.binding.PresentationModel detailsModel, java.lang.String fieldName, java.lang.Class clazz, boolean buffered)
           
static javax.swing.JComboBox createComboBox(com.jgoodies.binding.PresentationModel detailsModel, java.lang.String fieldName, java.lang.Class clazz, java.lang.Integer maxLength)
           
static javax.swing.JComboBox createComboBox(com.jgoodies.binding.PresentationModel detailsModel, java.lang.String fieldName, java.lang.Class clazz, java.lang.Integer maxLength, boolean buffered)
           
static javax.swing.JComboBox createComboBox(com.jgoodies.binding.PresentationModel detailsModel, java.lang.String fieldName, java.lang.Object[] values)
           
static javax.swing.JComboBox createComboBox(com.jgoodies.binding.PresentationModel detailsModel, java.lang.String fieldName, java.lang.Object[] values, boolean buffered)
           
static javax.swing.JComboBox createComboBox(com.jgoodies.binding.PresentationModel detailsModel, java.lang.String fieldName, java.lang.Object[] values, java.lang.Integer maxLength, boolean buffered)
           
static javax.swing.JComboBox createComboBox(com.jgoodies.binding.PresentationModel detailsModel, java.lang.String fieldName, java.util.Vector values)
           
static javax.swing.JComboBox createComboBox(com.jgoodies.binding.PresentationModel detailsModel, java.lang.String fieldName, java.util.Vector values, java.lang.Integer maxLength)
           
static javax.swing.JComboBox createComboBoxWithConverter(com.jgoodies.binding.PresentationModel detailsModel, java.lang.String fieldName, java.util.Vector values, java.lang.String listName)
           
static javax.swing.JFormattedTextField createDateField(com.jgoodies.binding.value.ValueModel valueModel)
          Creates and returns a formatted text field that is bound to the Date value of the given ValueModel.
static javax.swing.JFormattedTextField createDoubleField(com.jgoodies.binding.PresentationModel detailsModel, java.lang.String fieldName)
           
static javax.swing.JFormattedTextField createDoubleField(com.jgoodies.binding.PresentationModel detailsModel, java.lang.String fieldName, boolean useGrouping)
           
static javax.swing.JFormattedTextField createIntegerField(com.jgoodies.binding.PresentationModel detailsModel, java.lang.String fieldName)
           
static javax.swing.JFormattedTextField createIntegerField(com.jgoodies.binding.PresentationModel detailsModel, java.lang.String fieldName, boolean useGrouping)
           
static javax.swing.JFormattedTextField createIntegerField(com.jgoodies.binding.PresentationModel detailsModel, java.lang.String fieldName, boolean useGrouping, boolean buffered)
           
static javax.swing.JLabel createLabel(java.lang.Class clazz, java.lang.String fieldName)
           
static javax.swing.JLabel createLabel(java.lang.Class clazz, java.lang.String fieldName, java.lang.String defaultValue)
           
static javax.swing.JTextArea createTextArea(com.jgoodies.binding.value.ValueModel valueModel)
           
static javax.swing.JTextArea createTextArea(com.jgoodies.binding.value.ValueModel valueModel, boolean commitOnFocusLost)
           
static javax.swing.JTextField createTextField(com.jgoodies.binding.value.ValueModel valueModel)
           
static javax.swing.JComboBox createUnboundComboBox(java.lang.Object[] values)
           
static javax.swing.JComboBox createUnboundComboBox(java.util.Vector values)
           
static javax.swing.JFormattedTextField createUnboundDateField()
           
static javax.swing.JFormattedTextField createUnboundDoubleField()
           
static javax.swing.JFormattedTextField createUnboundDoubleField(boolean useGrouping)
           
static javax.swing.JFormattedTextField createUnboundIntegerField()
           
static javax.swing.JFormattedTextField createUnboundIntegerField(boolean useGrouping)
           
static javax.swing.JFormattedTextField getDoubleField(boolean useGrouping)
           
static javax.swing.JFormattedTextField getIntegerField()
           
static javax.swing.JFormattedTextField getIntegerField(boolean useGrouping)
           
 
Methods inherited from class com.jgoodies.binding.adapter.BasicComponentFactory
createCheckBox, createColorChooser, createColorChooser, createComboBox, createComboBox, createFormattedTextField, createFormattedTextField, createFormattedTextField, createFormattedTextField, createIntegerField, createIntegerField, createIntegerField, createIntegerField, createIntegerField, createLabel, createLabel, createList, createList, createLongField, createLongField, createLongField, createLongField, createLongField, createPasswordField, createPasswordField, createRadioButton, createTextField
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ATBasicComponentFactory

public ATBasicComponentFactory()
Method Detail

getIntegerField

public static javax.swing.JFormattedTextField getIntegerField()

getIntegerField

public static javax.swing.JFormattedTextField getIntegerField(boolean useGrouping)

getDoubleField

public static javax.swing.JFormattedTextField getDoubleField(boolean useGrouping)

createDateField

public static javax.swing.JFormattedTextField createDateField(com.jgoodies.binding.value.ValueModel valueModel)
Creates and returns a formatted text field that is bound to the Date value of the given ValueModel. The JFormattedTextField is configured with an AbstractFormatter that uses two different DateFormats to edit and display the Date. A SHORT DateFormat with strict checking is used to edit (parse) a date; the DateFormatter's default DateFormat is used to display (format) a date. In both cases null Dates are mapped to the empty String.

Parameters:
valueModel - the model that holds the value to be edited
Returns:
a formatted text field for Date instances that is bound to the given value model
Throws:
java.lang.NullPointerException - if the valueModel is null

createUnboundDateField

public static javax.swing.JFormattedTextField createUnboundDateField()

createIntegerField

public static javax.swing.JFormattedTextField createIntegerField(com.jgoodies.binding.PresentationModel detailsModel,
                                                                 java.lang.String fieldName)

createBufferedIntegerField

public static javax.swing.JFormattedTextField createBufferedIntegerField(com.jgoodies.binding.PresentationModel detailsModel,
                                                                         java.lang.String fieldName)

createBufferedIntegerField

public static javax.swing.JFormattedTextField createBufferedIntegerField(com.jgoodies.binding.PresentationModel detailsModel,
                                                                         java.lang.String fieldName,
                                                                         boolean useGrouping)

createIntegerField

public static javax.swing.JFormattedTextField createIntegerField(com.jgoodies.binding.PresentationModel detailsModel,
                                                                 java.lang.String fieldName,
                                                                 boolean useGrouping)

createIntegerField

public static javax.swing.JFormattedTextField createIntegerField(com.jgoodies.binding.PresentationModel detailsModel,
                                                                 java.lang.String fieldName,
                                                                 boolean useGrouping,
                                                                 boolean buffered)

createUnboundIntegerField

public static javax.swing.JFormattedTextField createUnboundIntegerField()

createUnboundIntegerField

public static javax.swing.JFormattedTextField createUnboundIntegerField(boolean useGrouping)

createDoubleField

public static javax.swing.JFormattedTextField createDoubleField(com.jgoodies.binding.PresentationModel detailsModel,
                                                                java.lang.String fieldName)

createDoubleField

public static javax.swing.JFormattedTextField createDoubleField(com.jgoodies.binding.PresentationModel detailsModel,
                                                                java.lang.String fieldName,
                                                                boolean useGrouping)

createUnboundDoubleField

public static javax.swing.JFormattedTextField createUnboundDoubleField()

createUnboundDoubleField

public static javax.swing.JFormattedTextField createUnboundDoubleField(boolean useGrouping)

createCheckBox

public static javax.swing.JCheckBox createCheckBox(com.jgoodies.binding.PresentationModel detailsModel,
                                                   java.lang.String fieldName,
                                                   java.lang.Class clazz)

createCheckBox

public static javax.swing.JCheckBox createCheckBox(com.jgoodies.binding.PresentationModel detailsModel,
                                                   java.lang.String fieldName,
                                                   java.lang.Class clazz,
                                                   boolean buffered)

createComboBox

public static javax.swing.JComboBox createComboBox(com.jgoodies.binding.PresentationModel detailsModel,
                                                   java.lang.String fieldName,
                                                   java.lang.Class clazz)

createComboBox

public static javax.swing.JComboBox createComboBox(com.jgoodies.binding.PresentationModel detailsModel,
                                                   java.lang.String fieldName,
                                                   java.lang.Class clazz,
                                                   boolean buffered)

createComboBox

public static javax.swing.JComboBox createComboBox(com.jgoodies.binding.PresentationModel detailsModel,
                                                   java.lang.String fieldName,
                                                   java.lang.Class clazz,
                                                   java.lang.Integer maxLength)

createComboBox

public static javax.swing.JComboBox createComboBox(com.jgoodies.binding.PresentationModel detailsModel,
                                                   java.lang.String fieldName,
                                                   java.lang.Class clazz,
                                                   java.lang.Integer maxLength,
                                                   boolean buffered)

createComboBoxWithConverter

public static javax.swing.JComboBox createComboBoxWithConverter(com.jgoodies.binding.PresentationModel detailsModel,
                                                                java.lang.String fieldName,
                                                                java.util.Vector values,
                                                                java.lang.String listName)

createComboBox

public static javax.swing.JComboBox createComboBox(com.jgoodies.binding.PresentationModel detailsModel,
                                                   java.lang.String fieldName,
                                                   java.lang.Object[] values)

createComboBox

public static javax.swing.JComboBox createComboBox(com.jgoodies.binding.PresentationModel detailsModel,
                                                   java.lang.String fieldName,
                                                   java.lang.Object[] values,
                                                   boolean buffered)

createComboBox

public static javax.swing.JComboBox createComboBox(com.jgoodies.binding.PresentationModel detailsModel,
                                                   java.lang.String fieldName,
                                                   java.lang.Object[] values,
                                                   java.lang.Integer maxLength,
                                                   boolean buffered)

createComboBox

public static javax.swing.JComboBox createComboBox(com.jgoodies.binding.PresentationModel detailsModel,
                                                   java.lang.String fieldName,
                                                   java.util.ArrayList values)

createComboBox

public static javax.swing.JComboBox createComboBox(com.jgoodies.binding.PresentationModel detailsModel,
                                                   java.lang.String fieldName,
                                                   java.util.ArrayList values,
                                                   java.lang.Integer maxLength)

createComboBox

public static javax.swing.JComboBox createComboBox(com.jgoodies.binding.PresentationModel detailsModel,
                                                   java.lang.String fieldName,
                                                   java.util.Vector values)

createComboBox

public static javax.swing.JComboBox createComboBox(com.jgoodies.binding.PresentationModel detailsModel,
                                                   java.lang.String fieldName,
                                                   java.util.Vector values,
                                                   java.lang.Integer maxLength)

createUnboundComboBox

public static javax.swing.JComboBox createUnboundComboBox(java.util.Vector values)

createUnboundComboBox

public static javax.swing.JComboBox createUnboundComboBox(java.lang.Object[] values)

createTextArea

public static javax.swing.JTextArea createTextArea(com.jgoodies.binding.value.ValueModel valueModel)

createTextArea

public static javax.swing.JTextArea createTextArea(com.jgoodies.binding.value.ValueModel valueModel,
                                                   boolean commitOnFocusLost)

createTextField

public static javax.swing.JTextField createTextField(com.jgoodies.binding.value.ValueModel valueModel)

createLabel

public static javax.swing.JLabel createLabel(java.lang.Class clazz,
                                             java.lang.String fieldName,
                                             java.lang.String defaultValue)

createLabel

public static javax.swing.JLabel createLabel(java.lang.Class clazz,
                                             java.lang.String fieldName)