|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.knowcenter.wag.egov.egiz.table.Style
public class Style
This class implements an abstract style definiton used in tables or table entrys. Predefined
values exists for valign and halign. Color definitions uses the native awt color declarations.
The predefined keys are used in the setting definition file to style tables and table entries.
It provides an static method to inherit style informations from a given style object.
doInherit(at.knowcenter.wag.egov.egiz.table.Style, at.knowcenter.wag.egov.egiz.table.Style)
Color
,
Serialized FormField Summary | |
---|---|
static String |
BGCOLOR
bgcolor key |
static String |
BOLD
Font type BOLD |
static String |
BOLDITALIC
Font type BOLDITALIC |
static String |
BORDER
border key, default border = 1; The border value is one value for all border lines of an entry or table! |
static String |
BOTTOM
valign statement key bottom |
static String |
CENTER
halign statement key center |
static String |
COURIER
Font name COURIER |
static String |
FONT
Font key |
static String |
HALIGN
halign key |
static String |
HELVETICA
Font name HELVETICA |
static String |
ITALIC
Font type ITALIC |
static String |
LEFT
halign statement key left |
static String |
MIDDLE
valign statement key middle |
static String |
NORMAL
Font type NORMAL |
static String |
PADDING
padding key, default padding = 1 |
static String |
RIGHT
halign statement key right |
static String |
STRIKETHRU
Font type STRIKETHRU |
static String |
TIMES_ROMAN
Font name TIMES_ROMAN |
static String |
TOP
valign statement key top |
static String |
UNDERLINE
Font type UNDERLINE |
static String |
VALIGN
valign key |
static String |
VALUEFONT
The value font key. |
Constructor Summary | |
---|---|
Style()
The empty constructor. |
Method Summary | |
---|---|
static Style |
doInherit(Style baseStyle,
Style inhertStyle)
This method inherits all style attributes (values) from a given style object. |
Color |
getBgColor()
|
float |
getBorder()
|
String |
getFont()
|
String |
getHAlign()
|
float |
getPadding()
|
String |
getVAlign()
|
String |
getValueFont()
Returns the value font. |
void |
setBgColor(Color bgColor)
|
void |
setBorder(float border)
|
void |
setFont(String font)
|
void |
setHAlign(String align)
|
void |
setPadding(float padding)
|
void |
setStyle(String id,
String value)
Set a style attribute. |
void |
setVAlign(String align)
|
void |
setValueFont(String valuefont)
Sets the value font. |
String |
toString()
The toString method, used for tests or debugging. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String TOP
public static final String MIDDLE
public static final String BOTTOM
public static final String LEFT
public static final String CENTER
public static final String RIGHT
public static final String BGCOLOR
public static final String HALIGN
public static final String VALIGN
public static final String PADDING
public static final String BORDER
public static final String FONT
public static final String VALUEFONT
public static final String HELVETICA
public static final String TIMES_ROMAN
public static final String COURIER
public static final String NORMAL
public static final String BOLD
public static final String ITALIC
public static final String BOLDITALIC
public static final String UNDERLINE
public static final String STRIKETHRU
Constructor Detail |
---|
public Style()
Method Detail |
---|
public void setStyle(String id, String value)
id
- the style attribute to setvalue
- the style value to set for the given attributepublic Color getBgColor()
public void setBgColor(Color bgColor)
bgColor
- The bgColor to set.public String getHAlign()
public void setHAlign(String align)
align
- The hAlign to set.public float getPadding()
public void setPadding(float padding)
padding
- The padding to set.public String getVAlign()
public void setVAlign(String align)
align
- The vAlign to set.public float getBorder()
public void setBorder(float border)
border
- The border to set.public String getFont()
public void setFont(String font)
font
- The font to set.public String getValueFont()
public void setValueFont(String valuefont)
valuefont
- The value font to be set.public String toString()
toString
in class Object
public static Style doInherit(Style baseStyle, Style inhertStyle)
baseStyle
object it would be inhert from the inheritStyle
object.
baseStyle
- the base style object that should be enhancedinhertStyle
- the style values that could inherit from
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |