Classes | Public Member Functions | Static Public Attributes | Protected Member Functions | Static Protected Member Functions

cern.gp.explorer.properties.PropertyField Class Reference

Inheritance diagram for cern.gp.explorer.properties.PropertyField:
cern.gp.explorer.properties.ReversiblePropertyField

List of all members.

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)

Detailed Description

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

Author:
Vito Baggiolini
Version:
Revision:
1.2

,

Date:
2006/09/25 08:52:36

,

Author:
acaproni

Constructor & Destructor Documentation

cern.gp.explorer.properties.PropertyField.PropertyField ( GPNode  node,
String  propName 
)

Constructor that creates a PropertyField from a node and a property Name,

Parameters:
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

Parameters:
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]

Member Function Documentation

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

Parameters:
psArr the Node.Property[] normally used to create a Property Sheet for a node
propName the name of the property requested
Returns:
the Node.Property for the property propName
Exceptions:
IllegalArgumentException if the property is not found

Referenced by cern.gp.explorer.properties.PropertyField.PropertyField().


Member Data Documentation

Constant defining preferences in displaying of value. Value should be displayed in custom editor.

Constant defining preferences in displaying of value. Value should be displayed in editor only.

Referenced by cern.gp.explorer.properties.PropertyField.PropertyField().

Constant defining preferences in displaying of value. Value should be displayed in read-only mode.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties