public class ColorPickerPopup extends Window implements HasValue<Color>
Window.CloseEvent, Window.CloseListener, Window.CloseShortcut, Window.ResizeEvent, Window.ResizeListener, Window.WindowModeChangeEvent, Window.WindowModeChangeListener, Window.WindowOrderChangeEvent, Window.WindowOrderChangeListenerHasValue.ValueChangeEvent<V>, HasValue.ValueChangeListener<V>Component.ErrorEvent, Component.Event, Component.Focusable, Component.ListenerClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListenerSizeable.UnitHasComponents.ComponentAttachDetachNotifier, HasComponents.ComponentAttachEvent, HasComponents.ComponentAttachListener, HasComponents.ComponentDetachEvent, HasComponents.ComponentDetachListeneractionManagerDESIGN_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 |
|---|
ColorPickerPopup(Color initialColor)
Instantiates a new color picker popup.
|
| Modifier and Type | Method and Description |
|---|---|
Registration |
addValueChangeListener(HasValue.ValueChangeListener<Color> listener)
Adds a value change listener.
|
List<Color> |
getColorHistory()
Gets the color history.
|
ColorPickerHistory |
getHistory()
Gets the history.
|
Color |
getValue()
Returns the current value of this object.
|
boolean |
isReadOnly()
Returns the read-only status from the state of this
AbstractComponent. |
boolean |
isRequiredIndicatorVisible()
Checks whether the required indicator is visible or not.
|
void |
setHistoryVisible(boolean visible)
Sets the visibility of the History.
|
void |
setHSVTabVisible(boolean visible)
Sets the HSV tab visibility.
|
void |
setModal(boolean modal)
Sets window modality.
|
void |
setPreviewVisible(boolean visible)
Sets the preview visibility.
|
void |
setReadOnly(boolean readOnly)
Sets the read-only status in the state of this
AbstractComponent. |
void |
setRequiredIndicatorVisible(boolean visible)
Sets the visibility of the required indicator.
|
void |
setRGBTabVisible(boolean visible)
Sets the RGB tab visibility.
|
void |
setSwatchesTabVisible(boolean visible)
Sets the visibility of the Swatches tab.
|
void |
setValue(Color color)
Sets the value of this object.
|
addBlurListener, addCloseListener, addCloseShortcut, addFocusListener, addResizeListener, addWindowModeChangeListener, addWindowOrderChangeListener, bringToFront, center, changeVariables, close, fireClose, fireResize, fireWindowOrderChange, fireWindowWindowModeChange, focus, getAssistiveDescription, getAssistivePostfix, getAssistivePrefix, getAssistiveRole, getCloseShortcuts, getCustomAttributes, getOrderPosition, getPositionX, getPositionY, getState, getState, getTabStopBottomAssistiveText, getTabStopTopAssistiveText, getWindowMode, hasCloseShortcut, isClosable, isDraggable, isModal, isResizable, isResizeLazy, isTabStopEnabled, paintContent, readDesign, readDesignChildren, removeAllCloseShortcuts, removeCloseListener, removeCloseShortcut, removeCloseShortcut, removeResizeListener, removeWindowModeChangeListener, setAssistiveDescription, setAssistivePostfix, setAssistivePrefix, setAssistiveRole, setClosable, setCloseShortcut, setDraggable, setParent, setPosition, setPositionX, setPositionY, setResizable, setResizeLazy, setTabStopBottomAssistiveText, setTabStopEnabled, setTabStopTopAssistiveText, setWindowMode, writeDesignaddAction, addActionHandler, addClickListener, getActionManager, getScrollLeft, getScrollTop, getTabIndex, removeAction, removeActionHandler, removeAllActionHandlers, removeClickListener, setCaption, setScrollLeft, setScrollTop, setTabIndexaddComponentAttachListener, addComponentDetachListener, fireComponentAttachEvent, fireComponentDetachEvent, getComponentCount, getContent, iterator, removeComponentAttachListener, removeComponentDetachListener, removeFromParent, setContent, setHeight, setWidthaddContextClickListener, addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, 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, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeightFull, setHeightUndefined, setIcon, setId, setLocale, setPrimaryStyleName, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidthFull, 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, getEmptyValue, getOptionalValue, isEmptymarkAsDirtyisEnabledaddListener, addStyleName, addStyleNames, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, removeListener, removeStyleName, removeStyleNames, setEnabled, setIcon, setId, setPrimaryStyleName, setStyleName, setStyleName, setVisibleaddAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlergetConnectorIdgetHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightFull, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull, setWidthUndefinedforEach, spliteratorpublic ColorPickerPopup(Color initialColor)
initialColor - the initially selected colorpublic ColorPickerHistory getHistory()
public void setValue(Color color)
getValue(), fires a ValueChangeEvent. Throws
NullPointerException if the value is null.setValue in interface HasValue<Color>color - the new value, not nullNullPointerException - if color is nullpublic Color getValue()
HasValueImplementation note: the implementing class should document whether null values may be returned or not.
public Registration addValueChangeListener(HasValue.ValueChangeListener<Color> listener)
HasValueHasValue is changed either by the user or programmatically.addValueChangeListener in interface HasValue<Color>listener - the value change listener, not nullpublic List<Color> getColorHistory()
public void setRGBTabVisible(boolean visible)
visible - The visibility of the RGB tabpublic void setHSVTabVisible(boolean visible)
visible - The visibility of the HSV tabpublic void setSwatchesTabVisible(boolean visible)
visible - The visibility of the Swatches tabpublic void setHistoryVisible(boolean visible)
visible - true to show the history, false to hide itpublic void setPreviewVisible(boolean visible)
visible - true to show the preview, false to hide itpublic void setRequiredIndicatorVisible(boolean visible)
AbstractComponent
If the component supports the required indicator (state extends
AbstractFieldState), then expose this method and
AbstractComponent.isRequiredIndicatorVisible() as public in the component
and call this method.
This method will throw a IllegalStateException if the component
state (returned by AbstractComponent.getState()) does not inherit
AbstractFieldState.
setRequiredIndicatorVisible in interface HasValue<Color>setRequiredIndicatorVisible in class AbstractComponentvisible - true to make the required indicator visible,
false if notpublic boolean isRequiredIndicatorVisible()
AbstractComponent
This method will throw a IllegalStateException if the component
state (returned by AbstractComponent.getState()) does not inherit
AbstractFieldState.
isRequiredIndicatorVisible in interface HasValue<Color>isRequiredIndicatorVisible in class AbstractComponenttrue if visible, false if notAbstractComponent.setRequiredIndicatorVisible(boolean)public void setReadOnly(boolean readOnly)
AbstractComponentAbstractComponent.
This method should be made public in Components that
implement HasValue.setReadOnly in interface HasValue<Color>setReadOnly in class AbstractComponentreadOnly - a boolean value specifying whether the component is put
read-only mode or notpublic boolean isReadOnly()
AbstractComponentAbstractComponent. This method should be made public in
Components that implement HasValue.isReadOnly in interface HasValue<Color>isReadOnly in class AbstractComponenttrue if state has read-only on; false if notAbstractComponent.setReadOnly(boolean)public void setModal(boolean modal)
WindowKeyboard navigation is restricted by blocking the tab key at the top and bottom of the window by activating the tab stop function internally.
Copyright © 2020 Vaadin Ltd. All rights reserved.