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, com.io7m.dixmont.colors.DmColor errorBorderColor, com.io7m.dixmont.colors.DmColor headerBackgroundColor, com.io7m.dixmont.colors.DmColor headerLinkColor, com.io7m.dixmont.colors.DmColor headerTextColor, com.io7m.dixmont.colors.DmColor mainBackgroundColor, com.io7m.dixmont.colors.DmColor mainLinkColor, com.io7m.dixmont.colors.DmColor mainMessageBorderColor, com.io7m.dixmont.colors.DmColor mainTableBorderColor, com.io7m.dixmont.colors.DmColor mainTextColor)
extends Record
A server color scheme.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.io7m.dixmont.colors.DmColorAn ocean blue colour. -
Constructor Summary
ConstructorsConstructorDescriptionIdServerColorScheme(com.io7m.cxbutton.core.CxButtonColors buttonColors, com.io7m.dixmont.colors.DmColor errorBorderColor, com.io7m.dixmont.colors.DmColor headerBackgroundColor, com.io7m.dixmont.colors.DmColor headerLinkColor, com.io7m.dixmont.colors.DmColor headerTextColor, com.io7m.dixmont.colors.DmColor mainBackgroundColor, com.io7m.dixmont.colors.DmColor mainLinkColor, com.io7m.dixmont.colors.DmColor mainMessageBorderColor, com.io7m.dixmont.colors.DmColor mainTableBorderColor, com.io7m.dixmont.colors.DmColor 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.com.io7m.dixmont.colors.DmColorReturns the value of theerrorBorderColorrecord component.final inthashCode()Returns a hash code value for this object.com.io7m.dixmont.colors.DmColorReturns the value of theheaderBackgroundColorrecord component.com.io7m.dixmont.colors.DmColorReturns the value of theheaderLinkColorrecord component.com.io7m.dixmont.colors.DmColorReturns the value of theheaderTextColorrecord component.com.io7m.dixmont.colors.DmColorReturns the value of themainBackgroundColorrecord component.com.io7m.dixmont.colors.DmColorReturns the value of themainLinkColorrecord component.com.io7m.dixmont.colors.DmColorReturns the value of themainMessageBorderColorrecord component.com.io7m.dixmont.colors.DmColorReturns the value of themainTableBorderColorrecord component.com.io7m.dixmont.colors.DmColorReturns the value of themainTextColorrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
OCEAN_BLUE
public static final com.io7m.dixmont.colors.DmColor OCEAN_BLUEAn ocean blue colour.
-
-
Constructor Details
-
IdServerColorScheme
public IdServerColorScheme(com.io7m.cxbutton.core.CxButtonColors buttonColors, com.io7m.dixmont.colors.DmColor errorBorderColor, com.io7m.dixmont.colors.DmColor headerBackgroundColor, com.io7m.dixmont.colors.DmColor headerLinkColor, com.io7m.dixmont.colors.DmColor headerTextColor, com.io7m.dixmont.colors.DmColor mainBackgroundColor, com.io7m.dixmont.colors.DmColor mainLinkColor, com.io7m.dixmont.colors.DmColor mainMessageBorderColor, com.io7m.dixmont.colors.DmColor mainTableBorderColor, com.io7m.dixmont.colors.DmColor 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
public com.io7m.dixmont.colors.DmColor errorBorderColor()Returns the value of theerrorBorderColorrecord component.- Returns:
- the value of the
errorBorderColorrecord component
-
headerBackgroundColor
public com.io7m.dixmont.colors.DmColor headerBackgroundColor()Returns the value of theheaderBackgroundColorrecord component.- Returns:
- the value of the
headerBackgroundColorrecord component
-
headerLinkColor
public com.io7m.dixmont.colors.DmColor headerLinkColor()Returns the value of theheaderLinkColorrecord component.- Returns:
- the value of the
headerLinkColorrecord component
-
headerTextColor
public com.io7m.dixmont.colors.DmColor headerTextColor()Returns the value of theheaderTextColorrecord component.- Returns:
- the value of the
headerTextColorrecord component
-
mainBackgroundColor
public com.io7m.dixmont.colors.DmColor mainBackgroundColor()Returns the value of themainBackgroundColorrecord component.- Returns:
- the value of the
mainBackgroundColorrecord component
-
mainLinkColor
public com.io7m.dixmont.colors.DmColor mainLinkColor()Returns the value of themainLinkColorrecord component.- Returns:
- the value of the
mainLinkColorrecord component
-
mainMessageBorderColor
public com.io7m.dixmont.colors.DmColor mainMessageBorderColor()Returns the value of themainMessageBorderColorrecord component.- Returns:
- the value of the
mainMessageBorderColorrecord component
-
mainTableBorderColor
public com.io7m.dixmont.colors.DmColor mainTableBorderColor()Returns the value of themainTableBorderColorrecord component.- Returns:
- the value of the
mainTableBorderColorrecord component
-
mainTextColor
public com.io7m.dixmont.colors.DmColor mainTextColor()Returns the value of themainTextColorrecord component.- Returns:
- the value of the
mainTextColorrecord component
-