Package org.eclipse.jface.preference
Interface IPreferenceNode
- All Known Implementing Classes:
- PreferenceNode
public interface IPreferenceNode
Interface to a node in a preference dialog.
 A preference node maintains a label and image used to display the
 node in a preference dialog (usually in the form of a tree),
 as well as the preference page this node stands for.
 The node may use lazy creation for its page
 Note that all preference nodes must be dispose their resources.
 The node must dispose the page managed by this node, and any SWT resources
 allocated by this node (Images, Fonts, etc).
 However the node itself may be reused.
- 
Method SummaryModifier and TypeMethodDescriptionvoidadd(IPreferenceNode node) Adds the given preference node as a subnode of this preference node.voidCreates the preference page for this node.voidRelease the page managed by this node, and any SWT resources held onto by this node (Images, Fonts, etc).findSubNode(String id) Returns the subnode of this contribution node with the given node id.getId()Returns the id of this contribution node.Returns the image used to present this node in a preference dialog.Returns the text label used to present this node in a preference dialog.getPage()Returns the preference page for this node.Returns an iterator over the subnodes (immediate children) of this contribution node.Removes the subnode of this preference node with the given node id.booleanremove(IPreferenceNode node) Removes the given preference node from the list of subnodes (immediate children) of this node.
- 
Method Details- 
addAdds the given preference node as a subnode of this preference node.- Parameters:
- node- the node to add
 
- 
createPagevoid createPage()Creates the preference page for this node.
- 
disposeResourcesvoid disposeResources()Release the page managed by this node, and any SWT resources held onto by this node (Images, Fonts, etc). Note that nodes are reused so this is not a call to dispose the node itself.
- 
findSubNodeReturns the subnode of this contribution node with the given node id.- Parameters:
- id- the preference node id
- Returns:
- the subnode, or nullif none
 
- 
getIdString getId()Returns the id of this contribution node. This id identifies a contribution node relative to its parent.- Returns:
- the node id
 
- 
getLabelImageImage getLabelImage()Returns the image used to present this node in a preference dialog.- Returns:
- the image for this node, or nullif there is no image for this node
 
- 
getLabelTextString getLabelText()Returns the text label used to present this node in a preference dialog.- Returns:
- the text label for this node, or nullif there is no label for this node
 
- 
getPageIPreferencePage getPage()Returns the preference page for this node.- Returns:
- the preference page
 
- 
getSubNodesIPreferenceNode[] getSubNodes()Returns an iterator over the subnodes (immediate children) of this contribution node.- Returns:
- an IPreferenceNode array containing the child nodes
 
- 
removeRemoves the subnode of this preference node with the given node id.- Parameters:
- id- the subnode id
- Returns:
- the removed subnode, or nullif none
 
- 
removeRemoves the given preference node from the list of subnodes (immediate children) of this node.- Parameters:
- node- the node to remove
- Returns:
- trueif the node was removed, and- falseotherwise
 
 
-