All Packages Class Hierarchy This Package Previous Next Index

Class org.jfouffa.jslider.Header

java.lang.Object
   |
   +----org.jfouffa.jslider.Header

public abstract class Header
extends Object
Defines a generic header. Header should store its property in a template file. Properties is available using the TemplateLoader.

See Also:
TemplateLoader

Constructor index

 o Header()

Method index

 o getEditor(Frame)
Gets the Editor associated to this Header with the specified Frame as parent.
 o getIndex()
Gets the index of this header.
 o getTextAlignment()
Gets the text-align property.
 o getType()
Gets the type of this header.
 o getWidth()
Gets the width of this header.
 o save(TemplateLoader)
Saves this Header using the specified TemplateLoader.
 o setIndex(String)
Sets the index of this header to the specified index.
 o setProperties(TemplateLoader, String)
Sets the properties of this Header using the specified TemplateLoader.
 o setTextAlignment(String)
Sets the text-align property to the specified value.
 o setWidth(String)
Sets the width property to the specified value.
 o update(HeaderEditor)
Updates this header with the specified editor.

Constructors

 o Header
 public Header()

Methods

 o getEditor
 public abstract HeaderEditor getEditor(Frame parent)
Gets the Editor associated to this Header with the specified Frame as parent.

Parameters:
parent - the parent of this dialog
 o update
 public abstract void update(HeaderEditor editor)
Updates this header with the specified editor.

Parameters:
editor - the editor that contains the new attributs for thsi header
 o setIndex
 public void setIndex(String index)
Sets the index of this header to the specified index.

Parameters:
index - the new index of this header
 o getIndex
 public String getIndex()
Gets the index of this header.

 o setProperties
 public void setProperties(TemplateLoader loader,
                           String index)
Sets the properties of this Header using the specified TemplateLoader. The basic properties are width, type and align. Subclasses should call the super.setProperties method.

Parameters:
loader - the TemplateLoader
index - the index of this header (the string format)
 o save
 public void save(TemplateLoader loader)
Saves this Header using the specified TemplateLoader.

Parameters:
loader - the template loader to use for saving
 o setTextAlignment
 public void setTextAlignment(String textAlign)
Sets the text-align property to the specified value.

Parameters:
alignment - the new text-align
 o getTextAlignment
 public String getTextAlignment()
Gets the text-align property.

 o setWidth
 public void setWidth(String width)
Sets the width property to the specified value.

Parameters:
width - the new width of this header
 o getWidth
 public String getWidth()
Gets the width of this header.

 o getType
 public String getType()
Gets the type of this header.