Package org.javlo.component.core
Class ComponentLayout
- java.lang.Object
-
- org.javlo.component.core.ComponentLayout
-
public class ComponentLayout extends Object
represent a simple layout. center, left, right, justify, bold, italic...- Author:
- pvandermaesen
-
-
Constructor Summary
Constructors Constructor Description ComponentLayout(String layout)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCssClass()
get the layout as css style.String
getFont()
String
getLayout()
static ComponentLayout
getNewInstance(ComponentLayout layout)
String
getStyle()
get the layout as css style.boolean
isBold()
boolean
isCenter()
boolean
isItalic()
boolean
isJustify()
boolean
isLeft()
boolean
isLineThrough()
boolean
isRight()
boolean
isUnderline()
void
setBold(boolean bold)
void
setCenter(boolean center)
void
setFont(String font)
void
setItalic(boolean italic)
void
setJustify(boolean justify)
void
setLeft(boolean left)
void
setLineThrough(boolean lineTrough)
void
setRight(boolean right)
void
setUnderline(boolean underline)
-
-
-
Constructor Detail
-
ComponentLayout
public ComponentLayout(String layout)
-
-
Method Detail
-
getNewInstance
public static ComponentLayout getNewInstance(ComponentLayout layout)
-
getLayout
public String getLayout()
-
isLeft
public boolean isLeft()
-
setLeft
public void setLeft(boolean left)
-
isRight
public boolean isRight()
-
setRight
public void setRight(boolean right)
-
isCenter
public boolean isCenter()
-
setCenter
public void setCenter(boolean center)
-
isJustify
public boolean isJustify()
-
setJustify
public void setJustify(boolean justify)
-
isBold
public boolean isBold()
-
setBold
public void setBold(boolean bold)
-
isItalic
public boolean isItalic()
-
setItalic
public void setItalic(boolean italic)
-
isUnderline
public boolean isUnderline()
-
setUnderline
public void setUnderline(boolean underline)
-
isLineThrough
public boolean isLineThrough()
-
setLineThrough
public void setLineThrough(boolean lineTrough)
-
getFont
public String getFont()
-
setFont
public void setFont(String font)
-
getStyle
public String getStyle()
get the layout as css style.- Returns:
-
getCssClass
public String getCssClass()
get the layout as css style.- Returns:
-
-