Package ro.sync.ecss.conditions
Class ProfilingAttributesPresentingColorsPO
- java.lang.Object
-
- ro.sync.ecss.conditions.ProfilingAttributesPresentingColorsPO
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,PersistentObject
@API(type=EXTENDABLE, src=PRIVATE) public class ProfilingAttributesPresentingColorsPO extends java.lang.Object implements PersistentObject
Persistent object containing information about the colors used when presenting the profiling attributes in the Author page.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static ProfilingAttributesPresentingColorsPO
DEFAULT_PROFILING_SHOW_ATTRIBUTES_COLORS
Default colors used for profiling.
-
Constructor Summary
Constructors Constructor Description ProfilingAttributesPresentingColorsPO()
Default constructorProfilingAttributesPresentingColorsPO(int backgroundColor, int nameForegroundColor, int valuesForegroundColor, int borderColor)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkValid()
Check if object is valid to be used.java.lang.Object
clone()
Forces all the persistent objects to be cloneable.int
getBackgroundColor()
int
getBorderColor()
int
getNameForegroundColor()
java.lang.String[]
getNotPersistentFieldNames()
int
getValuesForegroundColor()
-
-
-
Field Detail
-
DEFAULT_PROFILING_SHOW_ATTRIBUTES_COLORS
public static final ProfilingAttributesPresentingColorsPO DEFAULT_PROFILING_SHOW_ATTRIBUTES_COLORS
Default colors used for profiling.
-
-
Constructor Detail
-
ProfilingAttributesPresentingColorsPO
public ProfilingAttributesPresentingColorsPO()
Default constructor
-
ProfilingAttributesPresentingColorsPO
public ProfilingAttributesPresentingColorsPO(int backgroundColor, int nameForegroundColor, int valuesForegroundColor, int borderColor)
Constructor.- Parameters:
backgroundColor
- Profiling background color.nameForegroundColor
- Profiling attribute name foreground color.valuesForegroundColor
- Profiling attribute values foreground color.borderColor
- The color of the border that surrounds the profiled content.
-
-
Method Detail
-
getNameForegroundColor
public int getNameForegroundColor()
- Returns:
- Returns the profiling attribute name foreground color.
-
getValuesForegroundColor
public int getValuesForegroundColor()
- Returns:
- Returns the profiling attribute values foreground color.
-
getBackgroundColor
public int getBackgroundColor()
- Returns:
- Returns the profiling background color.
-
getBorderColor
public int getBorderColor()
- Returns:
- Returns the color of the border that surrounds the profiled content.
-
checkValid
public void checkValid() throws InvalidPersistentObjException
Description copied from interface:PersistentObject
Check if object is valid to be used. Method is called after it is deserialized from options. If not then throw anInvalidPersistentObjException
exception.- Specified by:
checkValid
in interfacePersistentObject
- Throws:
InvalidPersistentObjException
- Thrown when instance is not valid.- See Also:
PersistentObject.checkValid()
-
getNotPersistentFieldNames
public java.lang.String[] getNotPersistentFieldNames()
- Specified by:
getNotPersistentFieldNames
in interfacePersistentObject
- Returns:
- The names of the field from this object which should not be serialized.
- See Also:
PersistentObject.getNotPersistentFieldNames()
-
clone
public java.lang.Object clone()
Description copied from interface:PersistentObject
Forces all the persistent objects to be cloneable.- Specified by:
clone
in interfacePersistentObject
- Overrides:
clone
in classjava.lang.Object
- Returns:
- A clone of this object. The clone and the original are disjunct. They share only immutable objects, like Strings, Integers, etc.
- See Also:
Object.clone()
-
-