Package org.oddjob.arooa.design.screem
Class BeanForm
java.lang.Object
org.oddjob.arooa.design.screem.BeanForm
- All Implemented Interfaces:
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classForm for when the class is missing or not found.static classForm for the properties of the class when it is found. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPropertyChangeListener(String propertyName, PropertyChangeListener listener) Add a property listener.protected voidFire property change events.Get the design instance that created this form.Getter for the sub form.getTitle()Get the title of the form.voidremovePropertyChangeListener(String propertyName, PropertyChangeListener listener) Remove a property listener.voidsetClassName(String className) Set the class name.voidsetSubForm(Form subForm) Set the sub form and fire a property change event.
-
Field Details
-
SUBFORM_PROPERTY
- See Also:
-
-
Constructor Details
-
BeanForm
Constructor.- Parameters:
design- The instance this form belongs to.
-
-
Method Details
-
addPropertyChangeListener
Add a property listener. For sub form change.- Parameters:
propertyName-listener-
-
removePropertyChangeListener
Remove a property listener.- Parameters:
propertyName-listener-
-
fire
Fire property change events.- Parameters:
propertyName-oldValue-newValue-
-
getDesign
Get the design instance that created this form.- Returns:
-
setClassName
Set the class name. Called by the view to change the sub form.- Parameters:
className-
-
setSubForm
Set the sub form and fire a property change event.- Parameters:
subForm-
-
getSubForm
Getter for the sub form.- Returns:
-
getTitle
Description copied from interface:FormGet the title of the form.
-