Classes | |
class | BeanPropertyChangeListener |
class | SimpleModel |
Public Member Functions | |
PropertyField (GPNode node, String propName) | |
PropertyField (GPNode node, final String propName, int preferences) | |
Static Public Attributes | |
static final int | PREF_READ_ONLY = 0x0001 |
static final int | PREF_CUSTOM_EDITOR = 0x0002 |
static final int | PREF_INPUT_STATE = 0x0004 |
Protected Member Functions | |
PropertyField (PropertyModel model, Object bean, String propName, int preferences) | |
Static Protected Member Functions | |
static Node.Property | getNodeProperty (Node.PropertySet[] psArr, String propName) |
A GUI field useful to edit one property which can be embedded in another GUI This is the same as used in the GP Explorers and in the Property Sheet opened by the cern.gp.actions.PropertiesAction, and therefore has the same behavior and representation as those property panels.
It is based on org.openide.explorer.propertysheet.PropertyPanel
,
,
cern.gp.explorer.properties.PropertyField.PropertyField | ( | GPNode | node, | |
String | propName | |||
) |
Constructor that creates a PropertyField from a node and a property Name,
node | the GPNode to which the property belongs | |
propName | the property name of this field |
References cern.gp.explorer.properties.PropertyField.PREF_INPUT_STATE.
cern.gp.explorer.properties.PropertyField.PropertyField | ( | GPNode | node, | |
final String | propName, | |||
int | preferences | |||
) |
Constructor that creates a PropertyField from a node and a property Name, with preferences
node | the GPNode to which the property belongs | |
propName | the property name of this field | |
preferences | one or more of PREF_CUSTOM_EDITOR, PREF_INPUT_STATE, or PREF_READ_ONLY |
References cern.gp.nodes.GPNode.getBean(), cern.gp.explorer.properties.PropertyField.getNodeProperty(), and cern.gp.nodes.GPNode.getPeerNode().
cern.gp.explorer.properties.PropertyField.PropertyField | ( | PropertyModel | model, | |
Object | bean, | |||
String | propName, | |||
int | preferences | |||
) | [protected] |
model | ||
preferences |
References cern.gp.explorer.properties.PropertyField.BeanPropertyChangeListener.registerListener().
static Node.Property cern.gp.explorer.properties.PropertyField.getNodeProperty | ( | Node.PropertySet[] | psArr, | |
String | propName | |||
) | [static, protected] |
helper method, finds the Node.Property for the indicated propName
psArr | the Node.Property[] normally used to create a Property Sheet for a node | |
propName | the name of the property requested |
IllegalArgumentException | if the property is not found |
Referenced by cern.gp.explorer.properties.PropertyField.PropertyField().
final int cern.gp.explorer.properties.PropertyField.PREF_CUSTOM_EDITOR = 0x0002 [static] |
Constant defining preferences in displaying of value. Value should be displayed in custom editor.
final int cern.gp.explorer.properties.PropertyField.PREF_INPUT_STATE = 0x0004 [static] |
Constant defining preferences in displaying of value. Value should be displayed in editor only.
Referenced by cern.gp.explorer.properties.PropertyField.PropertyField().
final int cern.gp.explorer.properties.PropertyField.PREF_READ_ONLY = 0x0001 [static] |
Constant defining preferences in displaying of value. Value should be displayed in read-only mode.