|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ujac.util.table.LayoutHints
public class LayoutHints
Name: LayoutHints
Description: A class holding layout hints for table columns.
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 |
---|
public static final int LEFT
public static final int CENTER
public static final int RIGHT
Constructor Detail |
---|
public LayoutHints()
public LayoutHints(float width, String title)
width
- The column width.title
- The column title.public LayoutHints(float width, String title, int align)
width
- The column width.title
- The column title.align
- The column alignment (LEFT|CENTER|RIGHT).public LayoutHints(float width, String header, int align, boolean visible)
width
- The column width.header
- The column title.align
- The column alignment (LEFT|CENTER|RIGHT).visible
- The visibility flag.Method Detail |
---|
public int getAlign()
public String getAlignText()
public LayoutHints setAlign(int align)
align
- The value to set for the property align.
public int getHeaderAlign()
public String getHeaderAlignText()
public LayoutHints setHeaderAlign(int headerAlign)
headerAlign
- The value to set for the property headerAlign.
public String getHeader()
public LayoutHints setHeader(String header)
header
- The value to set for the property header.
public boolean isVisible()
public LayoutHints setVisible(boolean visible)
visible
- The value to set for the property visible.
public int getLevel()
public LayoutHints setLevel(int level)
level
- The level of importance, the higher the value the less important it is.
public float getWidth()
public LayoutHints setWidth(float width)
width
- The value to set for the property width.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |