ColorJButton

Extends
JButton
Methods
5
Fields
1

Getting one

ColorJButton.new(…)

Methods

MethodReturnsDescription
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?)ColorJButtonA swatch button showing text in color.
init(ColorJButton, string?, Color?)()A swatch button showing text in color.
isInstance(any)booleanWhether obj is a ColorJButton object, a class(ColorJButton) subclass's included.

Fields

FieldTypeDescription
superJButtonClassJButton's class table: the base class.

Returned by

MethodReturnsDescription
ColorJButtonClass.newColorJButtonA swatch button showing text in color.

Method details

isInstance

isInstance: (any) -> boolean

Whether obj is a ColorJButton object, a class(ColorJButton) subclass's included.