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
-
Header()
-
Method index
-
getEditor(Frame)
- Gets the Editor associated to this Header with the specified Frame as
parent.
-
getIndex()
- Gets the index of this header.
-
getTextAlignment()
- Gets the text-align property.
-
getType()
- Gets the type of this header.
-
getWidth()
- Gets the width of this header.
-
save(TemplateLoader)
- Saves this Header using the specified TemplateLoader.
-
setIndex(String)
- Sets the index of this header to the specified index.
-
setProperties(TemplateLoader, String)
- Sets the properties of this Header using the specified TemplateLoader.
-
setTextAlignment(String)
- Sets the text-align property to the specified value.
-
setWidth(String)
- Sets the width property to the specified value.
-
update(HeaderEditor)
- Updates this header with the specified editor.
Constructors
Header
public Header()
Methods
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
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
setIndex
public void setIndex(String index)
- Sets the index of this header to the specified index.
- Parameters:
- index - the new index of this header
getIndex
public String getIndex()
- Gets the index of this header.
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)
save
public void save(TemplateLoader loader)
- Saves this Header using the specified TemplateLoader.
- Parameters:
- loader - the template loader to use for saving
setTextAlignment
public void setTextAlignment(String textAlign)
- Sets the text-align property to the specified value.
- Parameters:
- alignment - the new text-align
getTextAlignment
public String getTextAlignment()
- Gets the text-align property.
setWidth
public void setWidth(String width)
- Sets the width property to the specified value.
- Parameters:
- width - the new width of this header
getWidth
public String getWidth()
- Gets the width of this header.
getType
public String getType()
- Gets the type of this header.