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, General, Header, Label, Link, LoginView, LoginViewColumn, Row, 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 3334 2007-06-08 16:25:49Z 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
private 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.
private static void setInsets(CellLayoutData layoutData)
          Set the insets for the layout data to default values.
 
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

private 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 final GridLayoutData getGridLayoutData()
Return a default grid layout data object.

Returns:
GridLayoutData The layout data object with default configuration.

getColumnLayoutData

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

Returns:
ColumnLayoutData The layout data object with default configuration.

setInsets

private static void setInsets(CellLayoutData layoutData)
Set the insets for the layout data to default values.

Parameters:
layoutData - The layout data for which insets are to be set.