Colors

Inheritance: java.lang.Object

public class Colors

Set of colors for calendar object

Constructors

Constructor Description
Colors() Initializes a new instance of the Colors class.
Colors(String background, String foreground) Initializes a new instance of the Colors class.

Methods

Method Description
getBackground() The background color associated with this color definition.
setBackground(String value) The background color associated with this color definition.
getForeground() The foreground color that can be used to write on top of a background with ‘background’ color.
setForeground(String value) The foreground color that can be used to write on top of a background with ‘background’ color.
toString() Returns a String which represents the object instance.

Colors()

public Colors()

Initializes a new instance of the Colors class.

Colors(String background, String foreground)

public Colors(String background, String foreground)

Initializes a new instance of the Colors class.

Parameters:

Parameter Type Description
background java.lang.String The background color associated with this color definition.
foreground java.lang.String The foreground color that can be used to write on top of a background with ‘background’ color.

getBackground()

public final String getBackground()

The background color associated with this color definition.

Returns: java.lang.String

setBackground(String value)

public final void setBackground(String value)

The background color associated with this color definition.

Parameters:

Parameter Type Description
value java.lang.String

getForeground()

public final String getForeground()

The foreground color that can be used to write on top of a background with ‘background’ color.

Returns: java.lang.String

setForeground(String value)

public final void setForeground(String value)

The foreground color that can be used to write on top of a background with ‘background’ color.

Parameters:

Parameter Type Description
value java.lang.String

toString()

public String toString()

Returns a String which represents the object instance.

Returns: java.lang.String - Returns a String which represents the object instance.