|
JFormDesigner 5.0.4 Runtime API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jformdesigner.model.FormReference
public class 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 | |
|---|---|
FormReference(java.lang.String name)
Constructs a form reference for the specified form component name. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Compares the names of form references. |
java.lang.String |
getName()
Returns the name of the referenced form component. |
java.lang.String |
toString()
Returns a string representation of the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FormReference(java.lang.String name)
| Method Detail |
|---|
public java.lang.String getName()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
JFormDesigner 5.0.4 Runtime API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||