|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Styleable
interface describes the methods that a component
should implement to allow style customization.
This interface allows unlimited style properties for a given object. Moreover those styles handle dynamic, selective inheritance. This mechanism is much more powerful than CSS, as the styles are also organized hierarchically.
The organizational model of styles follows in a way the package
organisation of Java. Each style property has an identifier which is
composed of words, including dashes, numbers and underscores, separated by
dots. For instance the font.name
property means the
name
property of the font
style group.
This mechanism allows to inherit only parts of a given style (eg. only the font size for instance).
Inner Class Summary | |
static class |
Styleable.StyleSheet
The StyleSheet provides a flexible way to store
structured, hierarchized style information. |
static class |
Styleable.Utils
|
Method Summary | |
Styleable.StyleSheet |
getParentStyleSheet()
|
Styleable.StyleSheet |
getStyleSheet()
|
void |
setStyleSheet(Styleable.StyleSheet style)
|
Method Detail |
public Styleable.StyleSheet getStyleSheet()
public void setStyleSheet(Styleable.StyleSheet style)
public Styleable.StyleSheet getParentStyleSheet()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |