|
NextApp Echo3 v3.0.rc1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo.app.MutableStyleSheet
public class 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. |
java.util.Iterator |
getComponentTypes(java.lang.String styleName)
Retrieves the names of all component types present in the StyleSheet with the specified name. |
Style |
getStyle(java.lang.String styleName,
java.lang.Class componentClass,
boolean searchSuperClasses)
Retrieves the appropriate style for the specified component class and style name. |
java.util.Iterator |
getStyleNames()
Retrieves the names of all styles present in the StyleSheet |
| 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 addpublic java.util.Iterator getComponentTypes(java.lang.String styleName)
StyleSheetStyleSheet with the specified name.
getComponentTypes in interface StyleSheetstyleName - the style name
Classes providing the fully qualified names of all component types
which provide styles for the styleName valueStyleSheet.getComponentTypes(java.lang.String)
public Style getStyle(java.lang.String styleName,
java.lang.Class componentClass,
boolean searchSuperClasses)
StyleSheet
getStyle in interface StyleSheetstyleName - the name of the Component's specified named stylecomponentClass - the Class of the Component for which style information is being determinedsearchSuperClasses - flag indicating whether a style for a superclass should be returned in the event that no
specific style can be found for the specified componentClass
Style if found, or null otherwiseStyleSheet.getStyle(java.lang.String, java.lang.Class, boolean)public java.util.Iterator getStyleNames()
StyleSheetStyleSheet
getStyleNames in interface StyleSheetStrings naming all styles presentStyleSheet.getStyleNames()
|
NextApp Echo3 v3.0.rc1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||