Package javascript.swing.colorchooser
Class JSAbstractColorSwatchesPanel
- java.lang.Object
-
- javascript.swing.JSComponent
-
- javascript.swing.JSPanel
-
- javascript.swing.colorchooser.JSAbstractColorSwatchesPanel
-
- Direct Known Subclasses:
JSColorMiniSwatchesPanel
,JSColorSwatchesPanel
public abstract class JSAbstractColorSwatchesPanel extends JSPanel
The abstract panel to show swatch colors- Author:
- gianpiero.diblasi
-
-
Constructor Summary
Constructors Constructor Description JSAbstractColorSwatchesPanel(int rows, int columns, def.js.Array<java.lang.Integer> rawValues)
Creates the object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addActionListener(ActionListener listener)
Adds an action listenerColor
getSelectedColor()
Returns the selected color-
Methods inherited from class javascript.swing.JSComponent
addChildEventListenerByQuery, addEventListener, appendChild, appendChildInTree, appendInBody, appendNodeChild, appendNodeChildInTree, clearChildContentByQuery, clearContent, cssAddClass, cssClassList, cssRemoveClass, cssToggleClass, getAttribute, getChildAttributeByIndex, getChildAttributeByQuery, getChildCount, getChildPropertyByQuery, getChilStyleByIndex, getChilStyleByQuery, getID, getProperty, getStyle, insertBefore, insertBeforeInTree, insertNodeBefore, insertNodeBeforeInTree, invoke, invokeInTree, prependChild, prependChildInTree, prependNodeChild, prependNodeChildInTree, removeAttribute, removeChildAttributeByQuery, removeFromBody, setAttribute, setBackground, setChildAttributeByIndex, setChildAttributeByQuery, setChildPropertyByQuery, setContent, setEnabled, setID, setProperty
-
-
-
-
Method Detail
-
getSelectedColor
public Color getSelectedColor()
Returns the selected color- Returns:
- The selected color
-
addActionListener
public void addActionListener(ActionListener listener)
Adds an action listener- Parameters:
listener
- The listener
-
-