SPT Core API

com.sptci.echo2.style
Class Style

java.lang.Object
  extended by nextapp.echo2.app.MutableStyle
      extended by com.sptci.echo2.style.Style
All Implemented Interfaces:
Serializable, Style
Direct Known Subclasses:
BoldLabel, Column, ContentPaneTopColumn, General, Header, HeaderTitle, Label, Link, MenuItem, Row, Tree, WindowPane

public abstract class Style
extends MutableStyle

A sub-class of MutableStyle that will be the root for all style classes

Copyright 2006 Sans Pareil Technologies, Inc.

Version:
$Id: Style.java 4553 2008-12-24 10:34:16Z rakesh $
Author:
Rakesh Vidyadharan 2006-11-06
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class nextapp.echo2.app.MutableStyle
MutableStyle.IndexedPropertyValue
 
Field Summary
protected static Logger logger
          The logger to use to log messages.
 
Constructor Summary
Style()
          Default constructor.
 
Method Summary
static ColumnLayoutData getColumnLayoutData()
          Return a default grid layout data object.
static GridLayoutData getGridLayoutData()
          Return a default grid layout data object.
 Object getProperty(String name)
          Over-ridden to log missing property requests.
protected abstract  void init()
          Mandatory style initialisation method to be implemented by all sub-classes.
 
Methods inherited from class nextapp.echo2.app.MutableStyle
addStyleContent, getIndexedProperty, getPropertyIndices, getPropertyNames, isIndexedPropertySet, isPropertySet, removeIndexedProperty, removeProperty, setIndexedProperty, setProperty, size, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

protected static final Logger logger
The logger to use to log messages.

Constructor Detail

Style

public Style()
Default constructor. Over-ridden to invoke init().

Method Detail

init

protected abstract void init()
Mandatory style initialisation method to be implemented by all sub-classes.


getProperty

public Object getProperty(String name)
Over-ridden to log missing property requests.

Specified by:
getProperty in interface Style
Overrides:
getProperty in class MutableStyle
Parameters:
name - The name of the property to use to retrieve style.
Returns:
Object The appropriate instance of Style.

getGridLayoutData

public static GridLayoutData getGridLayoutData()
Return a default grid layout data object.

Returns:
GridLayoutData The layout data object with default configuration.

getColumnLayoutData

public static ColumnLayoutData getColumnLayoutData()
Return a default grid layout data object.

Returns:
ColumnLayoutData The layout data object with default configuration.

SPT Core API