Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

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 Summary
 void add ( IPreferenceNode node)
          Adds the given preference node as a subnode of this preference node.
 void createPage ()
          Creates the preference page for this node.
 void disposeResources ()
          Release the page managed by this node, and any SWT resources held onto by this node (Images, Fonts, etc).
  IPreferenceNode findSubNode ( String id)
          Returns the subnode of this contribution node with the given node id.
  String getId ()
          Returns the id of this contribution node.
  Image getLabelImage ()
          Returns the image used to present this node in a preference dialog.
  String getLabelText ()
          Returns the text label used to present this node in a preference dialog.
  IPreferencePage getPage ()
          Returns the preference page for this node.
  IPreferenceNode[] getSubNodes ()
          Returns an iterator over the subnodes (immediate children) of this contribution node.
 boolean remove ( IPreferenceNode node)
          Removes the given preference node from the list of subnodes (immediate children) of this node.
  IPreferenceNode remove ( String id)
          Removes the subnode of this preference node with the given node id.
 

Method Detail

add

void add(
IPreferenceNode node)
Adds the given preference node as a subnode of this preference node.

Parameters:
node - the node to add

createPage

void createPage()
Creates the preference page for this node.


disposeResources

void 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.


findSubNode


IPreferenceNode findSubNode(
String id)
Returns the subnode of this contribution node with the given node id.

Parameters:
id - the preference node id
Returns:
the subnode, or null if none

getId


String getId()
Returns the id of this contribution node. This id identifies a contribution node relative to its parent.

Returns:
the node id

getLabelImage


Image getLabelImage()
Returns the image used to present this node in a preference dialog.

Returns:
the image for this node, or null if there is no image for this node

getLabelText


String getLabelText()
Returns the text label used to present this node in a preference dialog.

Returns:
the text label for this node, or null if there is no label for this node

getPage


IPreferencePage getPage()
Returns the preference page for this node.

Returns:
the preference page

getSubNodes


IPreferenceNode[] getSubNodes()
Returns an iterator over the subnodes (immediate children) of this contribution node.

Returns:
an IPreferenceNode array containing the child nodes

remove


IPreferenceNode remove(
String id)
Removes the subnode of this preference node with the given node id.

Parameters:
id - the subnode id
Returns:
the removed subnode, or null if none

remove

boolean remove(
IPreferenceNode node)
Removes the given preference node from the list of subnodes (immediate children) of this node.

Parameters:
node - the node to remove
Returns:
true if the node was removed, and false otherwise

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire