Package org.netxms.client.maps.configs
Class DciContainerConfiguration
- java.lang.Object
-
- org.netxms.client.maps.configs.DciContainerConfiguration
-
public class DciContainerConfiguration extends Object
Base class for all DCI configuration for line
-
-
Constructor Summary
Constructors Constructor Description DciContainerConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DciContainerConfigurationcreateFromXml(String xml)Create DCI list object from XML documentStringcreateXml()Create XML from configuration.intgetBackgroundColor()intgetBorderColor()SingleDciConfig[]getDciList()intgetTextColor()booleanisBorderRequired()voidsetBackgroundColor(int backgroundColor)voidsetBorderColor(int borderColor)voidsetBorderRequired(boolean borderRequired)voidsetDciList(SingleDciConfig[] dciList)voidsetTextColor(int textColor)
-
-
-
Method Detail
-
createFromXml
public static DciContainerConfiguration createFromXml(String xml) throws Exception
Create DCI list object from XML document- Parameters:
xml- XML document- Returns:
- deserialized object
- Throws:
Exception- if the object cannot be fully deserialized
-
createXml
public String createXml() throws Exception
Create XML from configuration.- Returns:
- XML document
- Throws:
Exception- if the schema for the object is not valid
-
getDciList
public SingleDciConfig[] getDciList()
- Returns:
- the dciList
-
setDciList
public void setDciList(SingleDciConfig[] dciList)
- Parameters:
dciList- the dciList to set
-
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
-
-