Package org.javlo.template
Class TemplatePart
- java.lang.Object
-
- org.javlo.template.TemplatePart
-
- Direct Known Subclasses:
Area
,Row
,TemplateStyle
public class TemplatePart extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TemplatePart.SortByName
static class
TemplatePart.SortByPriority
-
Constructor Summary
Constructors Constructor Description TemplatePart()
-
Method Summary
-
-
-
Method Detail
-
getDefaultH1Size
public String getDefaultH1Size()
-
getDefaultH2Size
public String getDefaultH2Size()
-
getDefaultH3Size
public String getDefaultH3Size()
-
getDefaultH4Size
public String getDefaultH4Size()
-
getDefaultH5Size
public String getDefaultH5Size()
-
getDefaultH6Size
public String getDefaultH6Size()
-
getDefaultFont
public String getDefaultFont()
-
getDefaultTextColor
public String getDefaultTextColor()
-
getDefaultTextSize
public String getDefaultTextSize()
-
getDefaultPadding
public String getDefaultPadding()
-
getDefaultWidth
public String getDefaultWidth()
-
getWidth
public String getWidth()
-
getFinalWidth
public String getFinalWidth()
-
setWidth
public void setWidth(String width)
-
getHeight
public String getHeight()
-
setHeight
public void setHeight(String height)
-
getPadding
public String getPadding()
-
getFinalPadding
public String getFinalPadding()
-
getFinalMargin
public String getFinalMargin()
-
setPadding
public void setPadding(String padding)
-
getMargin
public String getMargin()
-
setMargin
public void setMargin(String margin)
-
getBorderWidth
public String getBorderWidth()
-
setBorderWidth
public void setBorderWidth(String borderWidth)
-
getBorderColor
public String getBorderColor()
-
setBorderColor
public void setBorderColor(String borderColor)
-
getTextColor
public String getTextColor()
-
setTextColor
public void setTextColor(String textColor)
-
getBackgroundColor
public String getBackgroundColor()
-
setBackgroundColor
public void setBackgroundColor(String backgroundColor)
-
getFont
public String getFont()
-
getFinalFont
public String getFinalFont()
-
getFinalTitleColor
public String getFinalTitleColor()
-
getFinalTextColor
public String getFinalTextColor()
-
getFinalLinkColor
public String getFinalLinkColor()
-
getParent
protected TemplatePart getParent()
get the parent in the html structure (sp. parent of area if row).
-
setFont
public void setFont(String font)
-
getTextSize
public String getTextSize()
-
getFinalTextSize
public String getFinalTextSize()
-
setTextSize
public void setTextSize(String textSize)
-
getName
public String getName()
-
setName
public void setName(String name)
-
getTitleColor
public String getTitleColor()
-
setTitleColor
public void setTitleColor(String titleColor)
-
getTextStyle
public String getTextStyle()
-
getH1Size
public String getH1Size()
-
getFinalH1Size
public String getFinalH1Size()
-
getFinalH2Size
public String getFinalH2Size()
-
getFinalH3Size
public String getFinalH3Size()
-
getFinalH4Size
public String getFinalH4Size()
-
getFinalH5Size
public String getFinalH5Size()
-
getFinalH6Size
public String getFinalH6Size()
-
setH1Size
public void setH1Size(String h1Size)
-
getH2Size
public String getH2Size()
-
setH2Size
public void setH2Size(String h2Size)
-
getH3Size
public String getH3Size()
-
setH3Size
public void setH3Size(String h3Size)
-
getH4Size
public String getH4Size()
-
setH4Size
public void setH4Size(String h4Size)
-
getH5Size
public String getH5Size()
-
setH5Size
public void setH5Size(String h5Size)
-
getH6Size
public String getH6Size()
-
setH6Size
public void setH6Size(String h6Size)
-
setEmptyField
public void setEmptyField(TemplatePart part)
set value of part in empty field, stay not empty field unmodified.- Parameters:
part
-- Throws:
InvocationTargetException
IllegalArgumentException
IllegalAccessException
-
getFrameThickness
public Integer getFrameThickness()
return the Thinckness of the frame (padding+border+margin), if some item is defined without px, return null.- Returns:
-
getLinkColor
public String getLinkColor()
-
setLinkColor
public void setLinkColor(String linkColor)
-
main
public static void main(String[] args)
-
getOuterBackgroundColor
public String getOuterBackgroundColor()
-
setOuterBackgroundColor
public void setOuterBackgroundColor(String outerBackgroundColor)
-
getResponsive
public String getResponsive()
-
setResponsive
public void setResponsive(String responsive)
-
getPriority
public int getPriority()
-
setPriority
public void setPriority(int priority)
-
getLevel
public String getLevel()
-
isFirst
public boolean isFirst()
-
setFirst
public void setFirst(boolean first)
-
isLast
public boolean isLast()
-
setLast
public void setLast(boolean last)
-
-