Package com.io7m.idstore.server.api
Record Class IdServerColorScheme
java.lang.Object
java.lang.Record
com.io7m.idstore.server.api.IdServerColorScheme
- Record Components:
- The color of buttonserrorBorderColor- The border color for error messagesheaderBackgroundColor- The background color of the page headerheaderLinkColor- The color of links in the page headerheaderTextColor- The color of text in the page headermainBackgroundColor- The background color of the main pagemainLinkColor- The color of links on the main pagemainMessageBorderColor- The border color of page messagesmainTableBorderColor- The border color of tablesmainTextColor- The main text color
public record IdServerColorScheme(com.io7m.cxbutton.core.CxButtonColors buttonColors, IdColor errorBorderColor, IdColor headerBackgroundColor, IdColor headerLinkColor, IdColor headerTextColor, IdColor mainBackgroundColor, IdColor mainLinkColor, IdColor mainMessageBorderColor, IdColor mainTableBorderColor, IdColor mainTextColor)
extends Record
A server color scheme.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIdServerColorScheme(com.io7m.cxbutton.core.CxButtonColors buttonColors, IdColor errorBorderColor, IdColor headerBackgroundColor, IdColor headerLinkColor, IdColor headerTextColor, IdColor mainBackgroundColor, IdColor mainLinkColor, IdColor mainMessageBorderColor, IdColor mainTableBorderColor, IdColor mainTextColor) A server color scheme. -
Method Summary
Modifier and TypeMethodDescriptioncom.io7m.cxbutton.core.CxButtonColorsReturns the value of thebuttonColorsrecord component.static IdServerColorSchemedefaults()final booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorBorderColorrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theheaderBackgroundColorrecord component.Returns the value of theheaderLinkColorrecord component.Returns the value of theheaderTextColorrecord component.Returns the value of themainBackgroundColorrecord component.Returns the value of themainLinkColorrecord component.Returns the value of themainMessageBorderColorrecord component.Returns the value of themainTableBorderColorrecord component.Returns the value of themainTextColorrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
OCEAN_BLUE
An ocean blue colour.
-
-
Constructor Details
-
IdServerColorScheme
public IdServerColorScheme(com.io7m.cxbutton.core.CxButtonColors buttonColors, IdColor errorBorderColor, IdColor headerBackgroundColor, IdColor headerLinkColor, IdColor headerTextColor, IdColor mainBackgroundColor, IdColor mainLinkColor, IdColor mainMessageBorderColor, IdColor mainTableBorderColor, IdColor mainTextColor) A server color scheme.- Parameters:
buttonColors- The color of buttonserrorBorderColor- The border color for error messagesheaderBackgroundColor- The background color of the page headerheaderLinkColor- The color of links in the page headerheaderTextColor- The color of text in the page headermainBackgroundColor- The background color of the main pagemainLinkColor- The color of links on the main pagemainMessageBorderColor- The border color of page messagesmainTableBorderColor- The border color of tablesmainTextColor- The main text color
-
-
Method Details
-
defaults
- Returns:
- The default color scheme
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
buttonColors
public com.io7m.cxbutton.core.CxButtonColors buttonColors()Returns the value of thebuttonColorsrecord component.- Returns:
- the value of the
buttonColorsrecord component
-
errorBorderColor
Returns the value of theerrorBorderColorrecord component.- Returns:
- the value of the
errorBorderColorrecord component
-
headerBackgroundColor
Returns the value of theheaderBackgroundColorrecord component.- Returns:
- the value of the
headerBackgroundColorrecord component
-
headerLinkColor
Returns the value of theheaderLinkColorrecord component.- Returns:
- the value of the
headerLinkColorrecord component
-
headerTextColor
Returns the value of theheaderTextColorrecord component.- Returns:
- the value of the
headerTextColorrecord component
-
mainBackgroundColor
Returns the value of themainBackgroundColorrecord component.- Returns:
- the value of the
mainBackgroundColorrecord component
-
mainLinkColor
Returns the value of themainLinkColorrecord component.- Returns:
- the value of the
mainLinkColorrecord component
-
mainMessageBorderColor
Returns the value of themainMessageBorderColorrecord component.- Returns:
- the value of the
mainMessageBorderColorrecord component
-
mainTableBorderColor
Returns the value of themainTableBorderColorrecord component.- Returns:
- the value of the
mainTableBorderColorrecord component
-
mainTextColor
Returns the value of themainTextColorrecord component.- Returns:
- the value of the
mainTextColorrecord component
-