|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.visuals.NodeStyle
public class NodeStyle
A customizable set of node properties.
This class is implemented as a bag, rather than as a fixed set of properties, so that new properties can be added without having to subclass, and so that properties can have the notion of being unset. Unset properties are properties that are not members of the bag, as opposed to set properties which are bag members. By default, no properties are set; i.e. the bag is empty. Such property bags are referred to as styles.
Styles are often used as formatting defaults and rendering hints by views. For example, TreeView allows a NodeStyle to be associated with individual nodes.
Styles sometimes contain other styles. This occurs by simply adding a property of type StaticPropertyBagInterface to a style. An example is NodeStyle's fontStyle.
FontStyle
,
TreeView
,
Serialized FormField Summary | |
---|---|
static java.lang.String |
BACKGROUND_COLOR
String used to identify the backgroundColor property in the bag. |
static java.lang.String |
DEFAULT_ICON
String used to identify the defaultIcon property in the bag. |
static java.lang.String |
DRAG_EXPAND_ENABLED
String used to identify the dragExpandEnabled property in the bag. |
static java.lang.String |
EDITABLE
String used to identify the editable property in the bag. |
static java.lang.String |
ERROR_HANDLER
String used to identify the errorHandler property in the bag. |
static java.lang.String |
EXPANDED_ICON
String used to identify the expandedIcon property in the bag. |
static java.lang.String |
EXPANDED_SELECTED_ICON
String used to identify the expandedSelectedIcon property in the bag. |
static java.lang.String |
EXPANDED_TEXT_DISPLAYED
String used to identify the expandedTextDisplayed property in the bag. |
static java.lang.String |
FONT_STYLE
String used to identify the fontStyle property in the bag. |
static java.lang.String |
FOREGROUND_COLOR
String used to identify the foregroundColor property in the bag. |
static java.lang.String |
IMAGE_SIZE
String used to identify the imageSize property in the bag. |
static java.lang.String |
IMAGE_VISIBLE
String used to identify the imageVisible property in the bag. |
static java.lang.String |
LEAF_NODE_VERIFICATION_ENABLED
String used to identify the leafNodeVerificationEnabled property in the bag. |
static java.lang.String |
SELECTABLE
NOTE: This property is not yet supported. |
static java.lang.String |
SELECTED_BACKGROUND_COLOR
String used to identify the selectedBackgroundColor property in the bag. |
static java.lang.String |
SELECTED_FOREGROUND_COLOR
String used to identify the selectedForegroundColor property in the bag. |
static java.lang.String |
SELECTED_ICON
String used to identify the selectedIcon property in the bag. |
static java.lang.String |
TEXT_GAP
String used to identify the textGap property in the bag. |
static java.lang.String |
TEXT_PAD
String used to identify the textPad property in the bag. |
static java.lang.String |
VISIBLE
String used to identify the visible property in the bag. |
Constructor Summary | |
---|---|
NodeStyle()
|
Field Detail |
---|
public static final java.lang.String BACKGROUND_COLOR
public static final java.lang.String SELECTED_BACKGROUND_COLOR
public static final java.lang.String FOREGROUND_COLOR
public static final java.lang.String SELECTED_FOREGROUND_COLOR
public static final java.lang.String EXPANDED_TEXT_DISPLAYED
public static final java.lang.String SELECTABLE
public static final java.lang.String TEXT_GAP
public static final java.lang.String TEXT_PAD
public static final java.lang.String IMAGE_VISIBLE
public static final java.lang.String IMAGE_SIZE
public static final java.lang.String DEFAULT_ICON
public static final java.lang.String SELECTED_ICON
public static final java.lang.String EXPANDED_ICON
public static final java.lang.String EXPANDED_SELECTED_ICON
public static final java.lang.String FONT_STYLE
public static final java.lang.String ERROR_HANDLER
public static final java.lang.String VISIBLE
public static final java.lang.String EDITABLE
public static final java.lang.String LEAF_NODE_VERIFICATION_ENABLED
public static final java.lang.String DRAG_EXPAND_ENABLED
Constructor Detail |
---|
public NodeStyle()
Method Detail |
---|
public java.awt.Color getBackgroundColor()
public void setBackgroundColor(java.awt.Color newValue)
public boolean isBackgroundColorSet()
public void unsetBackgroundColor()
public java.awt.Color getSelectedBackgroundColor()
public void setSelectedBackgroundColor(java.awt.Color newValue)
public boolean isSelectedBackgroundColor()
public void unsetSelectedBackgroundColor()
public java.awt.Color getForegroundColor()
public void setForegroundColor(java.awt.Color newValue)
public boolean isForegroundColorSet()
public void unsetForegroundColor()
public java.awt.Color getSelectedForegroundColor()
public void setSelectedForegroundColor(java.awt.Color newValue)
public boolean isSelectedForegroundColorSet()
public void unsetSelectedForegroundColor()
public boolean isExpandedTextDisplayed()
public void setExpandedTextDisplayed(boolean newValue)
public boolean isExpandedTextDisplayedSet()
public void unsetExpandedTextDisplayed()
public boolean isSelectable()
public void setSelectable(boolean newValue)
public boolean isSelectableSet()
public void unsetSelectable()
public int getTextGap()
public void setTextGap(int newValue)
public boolean isTextGapSet()
public void unsetTextGap()
public int getTextPad()
public void setTextPad(int newValue)
public boolean isTextPadSet()
public void unsetTextPad()
public boolean isImageVisible()
public void setImageVisible(boolean newValue)
public boolean isImageVisibleSet()
public void unsetImageVisible()
public java.awt.Dimension getImageSize()
public void setImageSize(java.awt.Dimension newValue)
public boolean isImageSizeSet()
public void unsetImageSize()
public com.sas.visuals.IconInterface getDefaultIcon()
public void setDefaultIcon(com.sas.visuals.IconInterface newValue)
public boolean isDefaultIconSet()
public void unsetDefaultIcon()
public com.sas.visuals.IconInterface getSelectedIcon()
public void setSelectedIcon(com.sas.visuals.IconInterface newValue)
public boolean isSelectedIconSet()
public void unsetSelectedIcon()
public com.sas.visuals.IconInterface getExpandedIcon()
public void setExpandedIcon(com.sas.visuals.IconInterface newValue)
public boolean isExpandedIconSet()
public void unsetExpandedIcon()
public com.sas.visuals.IconInterface getExpandedSelectedIcon()
public void setExpandedSelectedIcon(com.sas.visuals.IconInterface newValue)
public boolean isExpandedSelectedIconSet()
public void unsetExpandedSelectedIcon()
public FontStyle getFontStyle()
public void setFontStyle(FontStyle newValue)
public boolean isFontStyleSet()
public void unsetFontStyle()
public boolean isVisible()
public void setVisible(boolean newValue)
public boolean isVisibleSet()
public void unsetVisible()
public boolean isEditable()
public void setEditable(boolean newValue)
public boolean isEditableSet()
public void unsetEditable()
public boolean isLeafNodeVerificationEnabled()
public void setLeafNodeVerificationEnabled(boolean newValue)
public boolean isLeafNodeVerificationEnabledSet()
public void unsetLeafNodeVerificationEnabled()
public boolean isDragExpandEnabled()
public void setDragExpandEnabled(boolean newValue)
public boolean isDragExpandEnabledSet()
public void unsetDragExpandEnabled()
public ErrorHandlerInterface getErrorHander()
public void setErrorHandler(ErrorHandlerInterface newValue)
public boolean isErrorHandlerSet()
public void unsetErrorHandler()
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |