Package javascript.swing.colorchooser
Class JSColorHistoryPanel
- java.lang.Object
-
- javascript.swing.JSComponent
-
- javascript.swing.JSPanel
-
- javascript.swing.colorchooser.JSColorHistoryPanel
-
public class JSColorHistoryPanel extends JSPanel
The panel to show the color history- Author:
- gianpiero.diblasi
-
-
Constructor Summary
Constructors Constructor Description JSColorHistoryPanel()Creates the object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddActionListener(ActionListener listener)Adds an action listenerColorgetSelectedColor()Returns the selected colorvoidreload()Reloads the color history-
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
-
reload
public void reload()
Reloads the color history
-
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
-
-