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 :
- type : the type of the Header (navigation, note, ...)
- text-alignment : the text alignment of the header
- width : the width of the header
Constructor index
-
HeaderComponent(JSliderFrame, String, Header)
- Constructs a new HeaderComponent with the specified title and the
specified header.
Method index
-
getTextAlignment()
- Gets the text-align property.
-
getType()
- Gets the type of this header.
-
getWidth()
- Gets the width property.
-
setHeader(Header)
- Sets the header of this HeaderComponent to the specified header.
-
setTextAlignment(String)
- Sets the text-align property to the specified value.
-
setWidth(String)
- Sets the width to the specified value.
Constructors
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
setHeader
public void setHeader(Header header)
- Sets the header of this HeaderComponent to the specified header.
- Parameters:
- header - the new header of this HeaderComponent
setTextAlignment
public void setTextAlignment(String align)
- Sets the text-align property to the specified value.
- Parameters:
- align - the alignment
setWidth
public void setWidth(String width)
- Sets the width to the specified value.
- Parameters:
- width - the width
getWidth
public String getWidth()
- Gets the width property.
getTextAlignment
public String getTextAlignment()
- Gets the text-align property.
getType
public String getType()
- Gets the type of this header.