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
The icon used when this category is displayed. |
protected java.lang.String |
text
The text describing this category. |
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 |
text
protected java.lang.String text
- The text describing this category.
icon
protected javax.swing.Icon icon
- The icon used when this category is displayed.
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.
getText
public java.lang.String getText()
- Get the text that describes this category.
- Returns:
- the text describing this category.
getIcon
public javax.swing.Icon getIcon()
- Get the icon that represents this category.
- Returns:
- the icon representing this category.