EchoPoint API - 3.0.0b5
App Webcontainer

echopoint.style
Class AbstractStyle

java.lang.Object
  extended by nextapp.echo.app.MutableStyle
      extended by echopoint.style.AbstractStyle
All Implemented Interfaces:
Serializable, Style
Direct Known Subclasses:
AbstractButtonStyle, AbstractChartStyle, AbstractListComponentStyle, AccordionPaneStyle, AnchorStyle, CalendarSelectStyle, ContextMenuStyle, InfoWindowStyle, MenuBarPaneStyle, ProgressBarStyle, TabPaneStyle, TagCloudStyle, TextComponentStyle, WindowPaneStyle

public abstract class AbstractStyle
extends MutableStyle

Abstract base class from which all style classes are derived. Primarily delegates to the init() method for configuration.

Version:
$Id: AbstractStyle.java 208 2009-05-25 02:40:35Z sptrakesh $
Author:
Rakesh 2009-05-12
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class nextapp.echo.app.MutableStyle
MutableStyle.IndexedPropertyValue
 
Field Summary
protected  Level level
          The log level to use to log missing style messages.
protected static Logger logger
          The logger to use to log messages.
 
Constructor Summary
AbstractStyle()
          Default constructor.
 
Method Summary
 Object get(String name)
          Over-ridden to log missing property requests.
protected  void init()
          Mandatory style initialisation method to be implemented by all sub-classes.
protected  void setFont()
          Set the default font to be used for all components.
protected  void setForeground()
          Set the default foreground colour for all components.
 
Methods inherited from class nextapp.echo.app.MutableStyle
addStyleContent, getIndex, getIndexedProperty, getProperty, getPropertyIndices, getPropertyNames, isIndexedPropertySet, isPropertySet, removeIndexedProperty, removeProperty, set, setIndex, 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.


level

protected final Level level
The log level to use to log missing style messages.

Constructor Detail

AbstractStyle

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

Method Detail

init

protected void init()
Mandatory style initialisation method to be implemented by all sub-classes. The default implementation sets the default font to use. Sub-classes should generally invoke super.init().

See Also:
DefaultFont, setFont()

setFont

protected void setFont()
Set the default font to be used for all components.


setForeground

protected void setForeground()
Set the default foreground colour for all components.


get

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

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

EchoPoint API - 3.0.0b5
App Webcontainer