org.ujac.util.table
Class LayoutHints

java.lang.Object
  extended by org.ujac.util.table.LayoutHints
All Implemented Interfaces:
Serializable

public class LayoutHints
extends Object
implements Serializable

Name: LayoutHints
Description: A class holding layout hints for table columns.

Author:
lauerc
See Also:
Serialized Form

Field Summary
static int CENTER
          Constant for left alignment.
static int LEFT
          Constant for left alignment.
static int RIGHT
          Constant for left alignment.
 
Constructor Summary
LayoutHints()
          Constructs a LayoutHints instance with no specific attributes.
LayoutHints(float width, String title)
          Constructs a LayoutHints instance with specific attributes.
LayoutHints(float width, String title, int align)
          Constructs a LayoutHints instance with specific attributes.
LayoutHints(float width, String header, int align, boolean visible)
          Constructs a LayoutHints instance with specific attributes.
 
Method Summary
 int getAlign()
          Getter method for the the property align.
 String getAlignText()
          Gets the textual representation of the column alignment.
 String getHeader()
          Getter method for the the property title.
 int getHeaderAlign()
          Getter method for the the property headerAlign.
 String getHeaderAlignText()
          Gets the textual representation of the column header alignment.
 int getLevel()
          Gets the level of importance.
 float getWidth()
          Getter method for the the property width.
 boolean isVisible()
          Getter method for the the property visible.
 LayoutHints setAlign(int align)
          Setter method for the the property align.
 LayoutHints setHeader(String header)
          Setter method for the the property title.
 LayoutHints setHeaderAlign(int headerAlign)
          Setter method for the the property headerAlign.
 LayoutHints setLevel(int level)
          Sets the level of importance.
 LayoutHints setVisible(boolean visible)
          Setter method for the the property visible.
 LayoutHints setWidth(float width)
          Setter method for the the property width.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LEFT

public static final int LEFT
Constant for left alignment.

See Also:
Constant Field Values

CENTER

public static final int CENTER
Constant for left alignment.

See Also:
Constant Field Values

RIGHT

public static final int RIGHT
Constant for left alignment.

See Also:
Constant Field Values
Constructor Detail

LayoutHints

public LayoutHints()
Constructs a LayoutHints instance with no specific attributes.


LayoutHints

public LayoutHints(float width,
                   String title)
Constructs a LayoutHints instance with specific attributes.

Parameters:
width - The column width.
title - The column title.

LayoutHints

public LayoutHints(float width,
                   String title,
                   int align)
Constructs a LayoutHints instance with specific attributes.

Parameters:
width - The column width.
title - The column title.
align - The column alignment (LEFT|CENTER|RIGHT).

LayoutHints

public LayoutHints(float width,
                   String header,
                   int align,
                   boolean visible)
Constructs a LayoutHints instance with specific attributes.

Parameters:
width - The column width.
header - The column title.
align - The column alignment (LEFT|CENTER|RIGHT).
visible - The visibility flag.
Method Detail

getAlign

public int getAlign()
Getter method for the the property align.

Returns:
The current value of property align.

getAlignText

public String getAlignText()
Gets the textual representation of the column alignment.

Returns:
The textual representation of the current column alignment.

setAlign

public LayoutHints setAlign(int align)
Setter method for the the property align.

Parameters:
align - The value to set for the property align.
Returns:
The reference to this instance.

getHeaderAlign

public int getHeaderAlign()
Getter method for the the property headerAlign.

Returns:
The current value of property headerAlign.

getHeaderAlignText

public String getHeaderAlignText()
Gets the textual representation of the column header alignment.

Returns:
The textual representation of the current column header alignment.

setHeaderAlign

public LayoutHints setHeaderAlign(int headerAlign)
Setter method for the the property headerAlign.

Parameters:
headerAlign - The value to set for the property headerAlign.
Returns:
The reference to this instance.

getHeader

public String getHeader()
Getter method for the the property title.

Returns:
The current value of property title.

setHeader

public LayoutHints setHeader(String header)
Setter method for the the property title.

Parameters:
header - The value to set for the property header.
Returns:
The reference to this instance.

isVisible

public boolean isVisible()
Getter method for the the property visible.

Returns:
The current value of property visible.

setVisible

public LayoutHints setVisible(boolean visible)
Setter method for the the property visible.

Parameters:
visible - The value to set for the property visible.
Returns:
The reference to this instance.

getLevel

public int getLevel()
Gets the level of importance.

Returns:
The current level of importance, the higher the value the less important it is.

setLevel

public LayoutHints setLevel(int level)
Sets the level of importance.

Parameters:
level - The level of importance, the higher the value the less important it is.
Returns:
A reference to the altered FormField instance.

getWidth

public float getWidth()
Getter method for the the property width.

Returns:
The current value of property width.

setWidth

public LayoutHints setWidth(float width)
Setter method for the the property width.

Parameters:
width - The value to set for the property width.
Returns:
The reference to this instance.


Copyright © 2003-2004 UJAC.org. All Rights Reserved.