net.sourceforge.spedit.core
Interface Styleable

All Known Implementing Classes:
ParagraphView, WrapperView, LabelView, TableView, BlockView

public interface Styleable

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

getStyleSheet

public Styleable.StyleSheet getStyleSheet()

setStyleSheet

public void setStyleSheet(Styleable.StyleSheet style)

getParentStyleSheet

public Styleable.StyleSheet getParentStyleSheet()