public class ColorPickerArea extends AbstractColorPicker
ColorPicker
,
Serialized FormAbstractColorPicker.Coordinates2Color, AbstractColorPicker.PopupStyle
Component.ErrorEvent, Component.Event, Component.Focusable, Component.Listener
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener
Sizeable.Unit
color, historyVisible, hsvVisible, popupCaption, popupStyle, rgbVisible, STYLENAME_AREA, STYLENAME_BUTTON, STYLENAME_DEFAULT, swatchesVisible, textfieldVisible
DESIGN_ATTR_PLAIN_TEXT
SIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS
Constructor and Description |
---|
ColorPickerArea()
Instantiates a new color picker.
|
ColorPickerArea(String popupCaption)
Instantiates a new color picker.
|
ColorPickerArea(String popupCaption,
Color initialColor)
Instantiates a new color picker.
|
Modifier and Type | Method and Description |
---|---|
void |
beforeClientResponse(boolean initial)
Called before the shared state and RPC invocations are sent to the
client.
|
protected void |
setDefaultStyles()
Sets the default styles of the component
|
addColorChangeListener, colorChanged, fireColorChanged, getColor, getCustomAttributes, getHistoryVisibility, getHSVVisibility, getPopupStyle, getRGBVisibility, getState, getState, getSwatchesVisibility, getTextfieldVisibility, hidePopup, isDefaultCaptionEnabled, isHtmlContentAllowed, readDesign, removeColorChangeListener, setColor, setDefaultCaptionEnabled, setHistoryVisibility, setHSVVisibility, setHtmlContentAllowed, setPopupStyle, setPosition, setRGBVisibility, setSwatchesVisibility, setTextfieldVisibility, showPopup, showPopup, windowClose, writeDesign
addContextClickListener, addListener, addShortcutListener, addStyleName, attach, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorMessage, getExplicitImmediateValue, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isImmediate, isOrHasAncestor, isReadOnly, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setEnabled, setHeight, setHeight, setHeightUndefined, setIcon, setId, setImmediate, setLocale, setParent, setPrimaryStyleName, setReadOnly, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setStyleName, setVisible, setWidth, setWidth, setWidthUndefined
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addAttachListener, addDetachListener, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
getConnectorId
public ColorPickerArea()
public ColorPickerArea(String popupCaption)
popupCaption
- caption of the color select popupprotected void setDefaultStyles()
AbstractColorPicker
setDefaultStyles
in class AbstractColorPicker
public void beforeClientResponse(boolean initial)
ClientConnector
beforeClientResponse
in interface ClientConnector
beforeClientResponse
in class AbstractComponent
initial
- true
if the client-side connector will be created
and initialized after this method has been invoked.
false
if there is already an initialized
client-side connector.Copyright © 2019 Vaadin Ltd. All rights reserved.