All Packages Class Hierarchy This Package Previous Next Index

Class org.jfouffa.jslider.HeaderController

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

public class HeaderController
extends Object
This class controls headers and the edition part.

See Also:
Header

Constructor index

 o HeaderController(Frame)
Constructs a new HeaderController for the specified Frame.

Method index

 o edit(int)
Edits the Header at the specified index.
 o getHeader(int)
Returns the Header at the specified index or null if any.
 o getHeaderIndex(Header)
Returns the index of the specified Header or -1 if the specified Header has no real position.
 o getHeaderList()
Gets the list of headers available in the HeaderFactory property file.
 o setHeader(int, String)
Sets a header at the specified index with the specified name.

Constructors

 o HeaderController
 public HeaderController(Frame frame)
Constructs a new HeaderController for the specified Frame.

Parameters:
frame - the frame

Methods

 o setHeader
 public void setHeader(int index,
                       String name)
Sets a header at the specified index with the specified name.

Parameters:
index - the index of the new header
name - the header's name
 o edit
 public void edit(int index)
Edits the Header at the specified index.

 o getHeader
 public Header getHeader(int index)
Returns the Header at the specified index or null if any.

Parameters:
index - the index
 o getHeaderIndex
 public int getHeaderIndex(Header header)
Returns the index of the specified Header or -1 if the specified Header has no real position.

Parameters:
header - the header to find
 o getHeaderList
 public String[] getHeaderList()
Gets the list of headers available in the HeaderFactory property file.