Class BeanForm

java.lang.Object
org.oddjob.arooa.design.screem.BeanForm
All Implemented Interfaces:
Form

public class BeanForm extends Object implements Form
The form used by a BeanType. This form consists of a field for the class name and a sub form that is the properties of the given class or a blank message form if the class is not found.
Author:
rob
  • Field Details

  • Constructor Details

    • BeanForm

      public BeanForm(DynamicDesignInstance design)
      Constructor.
      Parameters:
      design - The instance this form belongs to.
  • Method Details

    • addPropertyChangeListener

      public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
      Add a property listener. For sub form change.
      Parameters:
      propertyName -
      listener -
    • removePropertyChangeListener

      public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
      Remove a property listener.
      Parameters:
      propertyName -
      listener -
    • fire

      protected void fire(String propertyName, Object oldValue, Object newValue)
      Fire property change events.
      Parameters:
      propertyName -
      oldValue -
      newValue -
    • getDesign

      public DynamicDesignInstance getDesign()
      Get the design instance that created this form.
      Returns:
    • setClassName

      public void setClassName(String className)
      Set the class name. Called by the view to change the sub form.
      Parameters:
      className -
    • setSubForm

      public void setSubForm(Form subForm)
      Set the sub form and fire a property change event.
      Parameters:
      subForm -
    • getSubForm

      public Form getSubForm()
      Getter for the sub form.
      Returns:
    • getTitle

      public String getTitle()
      Description copied from interface: Form
      Get the title of the form.
      Specified by:
      getTitle in interface Form
      Returns:
      The title.