Package org.netxms.client.maps.configs
Class TextBoxConfig
- java.lang.Object
-
- org.netxms.client.maps.configs.TextBoxConfig
-
public class TextBoxConfig extends Object
Text box element config
-
-
Constructor Summary
Constructors Constructor Description TextBoxConfig()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TextBoxConfigcreateFromXml(String xml)Create text box element from XML documentStringcreateXml()Create XML from configurationintgetBackgroundColor()intgetBorderColor()longgetDrillDownObjectId()intgetFontSize()StringgetText()intgetTextColor()booleanisBorderRequired()voidsetBackgroundColor(int backgroundColor)voidsetBorderColor(int borderColor)voidsetBorderRequired(boolean borderRequired)voidsetDrillDownObjectId(long drillDownObjectId)voidsetFontSize(int fontSize)voidsetText(String text)voidsetTextColor(int textColor)
-
-
-
Method Detail
-
createFromXml
public static TextBoxConfig createFromXml(String xml) throws Exception
Create text box element from XML document- Parameters:
xml- XML document- Returns:
- deserialized text box element
- Throws:
Exception- if deserialization error occurs
-
createXml
public String createXml() throws Exception
Create XML from configuration- Returns:
- XML document
- Throws:
Exception- if the schema for the object is not valid
-
getText
public String getText()
-
setText
public void setText(String text)
-
getBackgroundColor
public int getBackgroundColor()
- Returns:
- the backgroundColor
-
setBackgroundColor
public void setBackgroundColor(int backgroundColor)
- Parameters:
backgroundColor- the backgroundColor to set
-
getTextColor
public int getTextColor()
- Returns:
- the textColor
-
setTextColor
public void setTextColor(int textColor)
- Parameters:
textColor- the textColor to set
-
getBorderColor
public int getBorderColor()
- Returns:
- the borderColor
-
setBorderColor
public void setBorderColor(int borderColor)
- Parameters:
borderColor- the borderColor to set
-
isBorderRequired
public boolean isBorderRequired()
- Returns:
- the borderRequired
-
setBorderRequired
public void setBorderRequired(boolean borderRequired)
- Parameters:
borderRequired- the borderRequired to set
-
getFontSize
public int getFontSize()
- Returns:
- font size
-
setFontSize
public void setFontSize(int fontSize)
- Parameters:
fontSize- to set
-
getDrillDownObjectId
public long getDrillDownObjectId()
- Returns:
- drill down object id
-
setDrillDownObjectId
public void setDrillDownObjectId(long drillDownObjectId)
- Parameters:
drillDownObjectId- to set
-
-