All Packages Class Hierarchy This Package Previous Next Index

Class org.jfouffa.jslider.gui.HeaderComponent

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----org.jfouffa.components.Delimiter
                           |
                           +----org.jfouffa.jslider.gui.HeaderComponent

public class HeaderComponent
extends Delimiter
This class is a component for an Header. Its part of the JSliderFrame interface.
It enables the edition of 3 properties :


Constructor index

 o HeaderComponent(JSliderFrame, String, Header)
Constructs a new HeaderComponent with the specified title and the specified header.

Method index

 o getTextAlignment()
Gets the text-align property.
 o getType()
Gets the type of this header.
 o getWidth()
Gets the width property.
 o setHeader(Header)
Sets the header of this HeaderComponent to the specified header.
 o setTextAlignment(String)
Sets the text-align property to the specified value.
 o setWidth(String)
Sets the width to the specified value.

Constructors

 o HeaderComponent
 public HeaderComponent(JSliderFrame fr,
                        String title,
                        Header h)
Constructs a new HeaderComponent with the specified title and the specified header.

Parameters:
fr - the parent
title - the header's title
header - the header

Methods

 o setHeader
 public void setHeader(Header header)
Sets the header of this HeaderComponent to the specified header.

Parameters:
header - the new header of this HeaderComponent
 o setTextAlignment
 public void setTextAlignment(String align)
Sets the text-align property to the specified value.

Parameters:
align - the alignment
 o setWidth
 public void setWidth(String width)
Sets the width to the specified value.

Parameters:
width - the width
 o getWidth
 public String getWidth()
Gets the width property.

 o getTextAlignment
 public String getTextAlignment()
Gets the text-align property.

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