public class ColorPickerArea extends AbstractColorPicker
ColorPicker,
Serialized FormAbstractColorPicker.Coordinates2Color, AbstractColorPicker.PopupStyleHasValue.ValueChangeEvent<V>, HasValue.ValueChangeListener<V>Component.ErrorEvent, Component.Event, Component.Focusable, Component.ListenerClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListenerSizeable.Unitcolor, historyVisible, hsvVisible, popupStyle, rgbVisible, STYLENAME_AREA, STYLENAME_BUTTON, STYLENAME_DEFAULT, swatchesVisible, textfieldVisibleDESIGN_ATTR_PLAIN_TEXTSIZE_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 ColorPickerAreaState |
getState()
Returns the shared state bean with information to be sent from the server
to the client.
|
protected ColorPickerAreaState |
getState(boolean markAsDirty)
Returns the shared state for this connector.
|
protected void |
setDefaultStyles()
Sets the default styles of the component.
|
doSetValue, getCustomAttributes, getEmptyValue, getHistoryVisibility, getHSVVisibility, getPopupStyle, getRGBVisibility, getSwatchesVisibility, getTextfieldVisibility, getValue, hidePopup, isDefaultCaptionEnabled, isModal, readDesign, setDefaultCaptionEnabled, setHistoryVisibility, setHSVVisibility, setModal, setPopupStyle, setPosition, setRGBVisibility, setSwatchesVisibility, setTextfieldVisibility, setValue, showPopup, showPopup, writeDesignaddValueChangeListener, createValueChange, focus, getTabIndex, isDifferentValue, isReadOnly, isRequiredIndicatorVisible, setReadOnly, setRequiredIndicatorVisible, setTabIndex, setValueaddContextClickListener, addListener, addShortcutListener, addStyleName, attach, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, getActionManager, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isOrHasAncestor, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeight, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidth, setWidthUndefinedaddAttachListener, 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, updateDiffstateclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitclear, getDefaultValidator, getOptionalValue, isEmptyaddListener, addStyleName, addStyleNames, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisibleaddAttachListener, addDetachListener, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlergetConnectorIdgetHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUndefinedpublic ColorPickerArea()
public ColorPickerArea(String popupCaption)
popupCaption - caption of the color select popupprotected void setDefaultStyles()
AbstractColorPickersetDefaultStyles in class AbstractColorPickerpublic void beforeClientResponse(boolean initial)
ClientConnectorbeforeClientResponse in interface ClientConnectorbeforeClientResponse in class AbstractComponentinitial - 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.protected ColorPickerAreaState getState()
AbstractComponentgetState in class AbstractColorPickerprotected ColorPickerAreaState getState(boolean markAsDirty)
AbstractClientConnectorgetState in class AbstractColorPickermarkAsDirty - true if the connector should automatically be marked dirty,
false otherwiseAbstractClientConnector.getState()Copyright © 2019 Vaadin Ltd. All rights reserved.