com.borland.primetime.editor
Class EditorOptionCategory

java.lang.Object
  |
  +--com.borland.primetime.editor.EditorOptionCategory

public class EditorOptionCategory
extends java.lang.Object

An EditorOptionCategory represents, amazingly enough, a category of editor options.

An EditorOptionCategory appears to the user on the EditorPropertySheet as a node in a JTree, provided there are one or more options registered as belonging to that category. The text and icon properties determine how the category is represented in the tree.

See Also:
EditorOption

Field Summary
protected  javax.swing.Icon icon
           
protected  java.lang.String text
           
 
Constructor Summary
EditorOptionCategory(java.lang.String text)
          Creates a new EditorOptionCategory with no icon.
EditorOptionCategory(java.lang.String text, javax.swing.Icon icon)
          Creates a new EditorOptionCategory.
 
Method Summary
 javax.swing.Icon getIcon()
          Get the icon that represents this category.
 java.lang.String getText()
          Get the text that describes this category.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

text

protected java.lang.String text

icon

protected javax.swing.Icon icon
Constructor Detail

EditorOptionCategory

public EditorOptionCategory(java.lang.String text,
                            javax.swing.Icon icon)
Creates a new EditorOptionCategory.
Parameters:
text - The text to display for this category.
icon - The icon to use for this category.

EditorOptionCategory

public EditorOptionCategory(java.lang.String text)
Creates a new EditorOptionCategory with no icon.
Parameters:
text - The text to display for this category.
Method Detail

getText

public java.lang.String getText()
Get the text that describes this category.

getIcon

public javax.swing.Icon getIcon()
Get the icon that represents this category.