Class FormReference
java.lang.Object
com.jformdesigner.model.FormReference
A form reference is used as property value to assign a component to a property.
Normally used for
JLabel.setLabelFor().
Example:
FormComponent nameLabel = new FormComponent("javax.swing.JLabel");
nameLabel.setName("nameLabel");
nameLabel.setProperty("text", "Name:");
nameLabel.setPropertyInt("displayedMnemonic", 'N');
nameLabel.setProperty("labelFor", new FormReference("nameField"));
FormComponent nameField = new FormComponent("javax.swing.JTextField");
nameField.setName("nameField");
-
Constructor Summary
ConstructorsConstructorDescriptionFormReference(String name) Constructs a form reference for the specified form component name. -
Method Summary
-
Constructor Details
-
FormReference
Constructs a form reference for the specified form component name.
-
-
Method Details
-
getName
Returns the name of the referenced form component. -
equals
-
toString
-