public class FormReference
extends java.lang.Object
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 and Description |
|---|
FormReference(java.lang.String name)
Constructs a form reference for the specified form component name.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public FormReference(java.lang.String name)
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.ObjectCopyright (C) 2004-2017 FormDev Software GmbH. All rights reserved.