Package com.jformdesigner.model
Class FormReference
- java.lang.Object
-
- com.jformdesigner.model.FormReference
-
public class FormReference extends Object
A form reference is used as property value to assign a component to a property. Normally used forJLabel.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
Constructors Constructor Description FormReference(String name)Constructs a form reference for the specified form component name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Compares the names of form references.StringgetName()Returns the name of the referenced form component.StringtoString()Returns a string representation of the object.
-
-
-
Constructor Detail
-
FormReference
public FormReference(String name)
Constructs a form reference for the specified form component name.
-
-