Package javascript.swing.colorchooser
Class JSColorPreview
- java.lang.Object
-
- javascript.swing.JSComponent
-
- javascript.swing.colorchooser.JSColorPreview
-
public class JSColorPreview extends JSComponent
The component to preview a color- Author:
- gianpiero.diblasi
-
-
Constructor Summary
Constructors Constructor Description JSColorPreview()
Creates the object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setColor(Color color)
Sets the color to preview-
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
-
setColor
public void setColor(Color color)
Sets the color to preview- Parameters:
color
- The color to preview
-
-