public class FormReference extends 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(String name)
Constructs a form reference for the specified form component name.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Compares the names of form references.
|
String |
getName()
Returns the name of the referenced form component.
|
String |
toString()
Returns a string representation of the object.
|
public FormReference(String name)
Copyright (C) 2004-2019 FormDev Software GmbH. All rights reserved.