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 StringgetCssClass()get the layout as css style.StringgetFont()StringgetLayout()static ComponentLayoutgetNewInstance(ComponentLayout layout)StringgetStyle()get the layout as css style.booleanisBold()booleanisCenter()booleanisItalic()booleanisJustify()booleanisLeft()booleanisLineThrough()booleanisRight()booleanisUnderline()voidsetBold(boolean bold)voidsetCenter(boolean center)voidsetFont(String font)voidsetItalic(boolean italic)voidsetJustify(boolean justify)voidsetLeft(boolean left)voidsetLineThrough(boolean lineTrough)voidsetRight(boolean right)voidsetUnderline(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:
-
-