getColor
getColor: (ColorJButton) -> Color?The swatch colour.
ColorJButton.new(…)| Method | Returns | Description |
|---|---|---|
getColor() | Color? | The swatch colour. |
setColor(Color?) | () | Sets the swatch colour and the text colour that reads on it. Raises for nil. |
new(string?, Color?) | ColorJButton | A swatch button showing text in color. |
init(ColorJButton, string?, Color?) | () | A swatch button showing text in color. |
isInstance(any) | boolean | Whether obj is a ColorJButton object, a class(ColorJButton) subclass's included. |
| Field | Type | Description |
|---|---|---|
super | JButtonClass | JButton's class table: the base class. |
| Method | Returns | Description |
|---|---|---|
ColorJButtonClass.new | ColorJButton | A swatch button showing text in color. |
getColorgetColor: (ColorJButton) -> Color?The swatch colour.
setColorsetColor: (ColorJButton, Color?) -> ()Sets the swatch colour and the text colour that reads on it. Raises for nil.
newnew: (string?, Color?) -> ColorJButtonA swatch button showing text in color.
initinit: (ColorJButton, string?, Color?) -> ()A swatch button showing text in color.
isInstanceisInstance: (any) -> booleanWhether obj is a ColorJButton object, a class(ColorJButton) subclass's included.