DefaultPropertyNode Class

com.bea.ide.ui.propertyeditor
DefaultPropertyNode Class

public class DefaultPropertyNode

    extends Object
    implements IPropertyNode

A default implementation of IPropertyNode. This class may be used as a container of other IPropertyNodes. It may also be subclassed to implement IProperty and carry a value.


Hierarchy
Object
  DefaultPropertyNode
All Implemented Interfaces

IPropertyNode
Direct Known Subclasses

DefaultProperty

Constructor Summary

DefaultPropertyNode()

DefaultPropertyNode(String label, String description, List children)

Creates an IPropertyNode with the given label, description, and child list.
 

Method Summary

public void
addChild(IPropertyNode child)
Sets a child IPropertyNode for this node.
public static IActionProxy
createAddActionProxy(IAction action)
Generates an IActionProxy.
public static IActionProxy
createBuilderActionProxy(IAction action)
Generates an IActionProxy.
public static IActionProxy
createDeleteActionProxy(IAction action)
Generates an IActionProxy.
public IActionProxy
getAction()
If this method returns a non-null value, a button will be created on the right side of the property row in the property view.
public List
getChildren()
Returns a list of child IPropertyNodes.
public String
getDescription()
Description of this property node.
public String
getLabel()
Display label for this property node.
public void
setChildren(List children)
Sets the list of child IPropertyNodes for this node.
public void
setDescription(String description)
Sets the description for this property node.
public void
setLabel(String label)
Sets the label for this property node.
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   
Methods from interface com.bea.ide.ui.propertyeditor.IPropertyNode
getAction, getChildren, getDescription, getLabel
 

Constructor Detail

DefaultPropertyNode

protected DefaultPropertyNode()

DefaultPropertyNode

public DefaultPropertyNode(String label, 
                           String description, 
                           List children)
Creates an IPropertyNode with the given label, description, and child list.
 

Method Detail

addChild(IPropertyNode) Method

public void addChild(IPropertyNode child)
Sets a child IPropertyNode for this node.

Parameters

child
the child IPropertyNode to add. May not be null.

createAddActionProxy(IAction) Method

public static IActionProxy createAddActionProxy(IAction action)
Generates an IActionProxy.


createBuilderActionProxy(IAction) Method

public static IActionProxy createBuilderActionProxy(IAction action)
Generates an IActionProxy.


createDeleteActionProxy(IAction) Method

public static IActionProxy createDeleteActionProxy(IAction action)
Generates an IActionProxy.


getAction() Method

public IActionProxy getAction()
Description copied from IPropertyNode.getAction()
If this method returns a non-null value, a button will be created on the right side of the property row in the property view. The button will use display information in the IActionProxy and invoke the associated IAction.

See DefaultPropertyNode factory methods for creating a standard IActionProxy out of your IAction.

Returns

IActionProxy, may be null if no button is to be displayed.

Related Topics

IPropertyNode.getAction()


getChildren() Method

public List getChildren()
Description copied from IPropertyNode.getChildren()
Returns a list of child IPropertyNodes.

If this node has not children, an empty List should be returned. Use of Collections.EMPTY_LIST is recommended.

Returns

List of IPropertyNode. May not be null, may be empty.

Related Topics

IPropertyNode.getChildren()


getDescription() Method

public String getDescription()
Description copied from IPropertyNode.getDescription()
Description of this property node.

Returns

String description.

Related Topics

IPropertyNode.getDescription()


getLabel() Method

public String getLabel()
Description copied from IPropertyNode.getLabel()
Display label for this property node.

Returns

String label.

Related Topics

IPropertyNode.getLabel()


setChildren(List) Method

public void setChildren(List children)
Sets the list of child IPropertyNodes for this node.

Parameters

children
the list of IPropertyNode. May not be null, may be empty.

setDescription(String) Method

public void setDescription(String description)
Sets the description for this property node.

Parameters

description
the description to set for this node.

setLabel(String) Method

public void setLabel(String label)
Sets the label for this property node.

Parameters

label
the label to set for this node.