|
Oracle Data-aware Controls Reference | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectoracle.dacf.style.Style
the
A Style consists of StyleElements and a Style holds a reference to every component using this Style. A Style is responsible for the following tasks.
| Constructor Summary | |
Style()
Constructor |
|
Style(java.lang.String name)
Constructor |
|
Style(java.lang.String name,
Style parentStyle)
Constructor used when you choose "Create a Style using...." |
|
Style(java.lang.String name,
Style style,
boolean parent)
Constructor used when you choose "Create a Style as...." with boolean false |
|
| Method Summary | |
void |
_setOverwriteStyleElements(StyleElement[] styleelements,
java.awt.Component component)
Overwrites the StyleElements passed in as for the given component. |
void |
addElement(StyleElement styleElement)
Adds a Style element to this style |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener propertyChangeListener)
A PropertyChange will get fired when a StyleElement changes, or all StyleElements are updated |
java.lang.Object |
clone()
implementation of Cloneable interface |
boolean |
compare(Style style)
Returns true if the 2 Styles define the same properties. |
void |
copy(Style style)
copies the Style definition to this style |
void |
dumpStyle()
|
Style[] |
getChildren()
returns all the child styles in an array |
java.lang.Object[] |
getComponents()
returns an array with references to all components currently using this Style |
java.lang.String |
getDescription()
Returns description of this Style |
java.lang.String |
getName()
Returns name of this Style |
StyleElement[] |
getOverwriteStyleElements(java.awt.Component component)
Retrieves the StyleElements that are overwritten as an array. |
StyleElement[] |
getOverwriteStyleElements(java.lang.String name)
Retrieves the StyleElements that are overwritten as an array. |
Style |
getParent()
returns the parent style |
StyleElement[] |
getParentStyleElements()
Retrieves the ParentStyle's Style table as an array. |
java.lang.String |
getParentStyleName()
Returns name of its Parent Style |
java.lang.Object |
getParentValue(java.lang.String property)
get the ParentStyle's value of a certain property. |
StyleElement |
getStyleElement(java.lang.String property)
Returns the StyleElement matching this Property name |
StyleElement[] |
getStyleElements()
Retrieves the Style table as an array. |
boolean |
hasOverwriteStyleElements()
Check if this style has overwrites defined. |
boolean |
isBaseStyle()
Returns true if this Style is a base Style (has children, but no parent) |
void |
propertyChange(java.beans.PropertyChangeEvent evt)
Implements PropertyChangeListener |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener propertyChangeListener)
A PropertyChange will get fired when a StyleElement changes, or all StyleElements are updated |
void |
setDescription(java.lang.String description)
sets description of this Style |
void |
setName(java.lang.String name)
sets name of this Style |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Style()
public Style(java.lang.String name)
public Style(java.lang.String name,
Style parentStyle)
public Style(java.lang.String name,
Style style,
boolean parent)
name - the new style nameparent - indicates if subclass or not| Method Detail |
public java.lang.Object clone()
public void copy(Style style)
public boolean compare(Style style)
public void addPropertyChangeListener(java.beans.PropertyChangeListener propertyChangeListener)
propertyChangeListener - the listener to be addedpublic void removePropertyChangeListener(java.beans.PropertyChangeListener propertyChangeListener)
propertyChangeListener - the listener to be removedpublic void setName(java.lang.String name)
name - Name this Style.public java.lang.String getName()
public void setDescription(java.lang.String description)
description - Description this Style.public java.lang.String getDescription()
public java.lang.String getParentStyleName()
public void addElement(StyleElement styleElement)
public StyleElement[] getStyleElements()
public StyleElement[] getParentStyleElements()
public StyleElement[] getOverwriteStyleElements(java.awt.Component component)
component - the component you request the override values for
public StyleElement[] getOverwriteStyleElements(java.lang.String name)
name - the component name you request the override values for
public void _setOverwriteStyleElements(StyleElement[] styleelements,
java.awt.Component component)
styleelements - The collection of style elements.component - the component that overridespublic boolean hasOverwriteStyleElements()
public Style getParent()
public Style[] getChildren()
public java.lang.Object[] getComponents()
public boolean isBaseStyle()
public java.lang.Object getParentValue(java.lang.String property)
property - property namepublic StyleElement getStyleElement(java.lang.String property)
property - name of the property we are looking for
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange in interface java.beans.PropertyChangeListenerevt - the PropertyChangeEventpublic void dumpStyle()
|
Oracle Data-aware Controls Reference | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Copyright © 1997, 2003, Oracle. All rights reserved.