|
NextApp Echo2 v2.1.0.rc2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnextapp.echo2.app.MutableStyleSheet
A mutable implementation of a StyleSheet.
| Constructor Summary | |
MutableStyleSheet()
|
|
| Method Summary | |
void |
addStyle(java.lang.Class componentClass,
java.lang.String styleName,
Style style)
Adds a Style to the StyleSheet. |
void |
addStyleSheet(MutableStyleSheet styleSheet)
Adds the contents of another StyleSheet to this
StyleSheet. |
Style |
getStyle(java.lang.Class componentClass,
java.lang.String styleName)
Retrieves the appropriate style for the specified component class and style name. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MutableStyleSheet()
| Method Detail |
public void addStyle(java.lang.Class componentClass,
java.lang.String styleName,
Style style)
Style to the StyleSheet.
componentClass - the Class of the
Component for which the style is to be usedstyleName - the name of the stylestyle - the Style to be addedpublic void addStyleSheet(MutableStyleSheet styleSheet)
StyleSheet to this
StyleSheet. Future changes to the added
StyleSheet will not be reflected, unless it is re-added.
styleSheet - the StyleSheet to add
public Style getStyle(java.lang.Class componentClass,
java.lang.String styleName)
StyleSheet
getStyle in interface StyleSheetcomponentClass - the Class of the
Component for which style information is being
determinedstyleName - the name of the Component's specified
named style
Style if found, or null otherwiseStyleSheet.getStyle(java.lang.Class, java.lang.String)
|
NextApp Echo2 v2.1.0.rc2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||