Class ColorPickerHistory
- java.lang.Object
-
- com.vaadin.server.AbstractClientConnector
-
- com.vaadin.ui.AbstractComponent
-
- com.vaadin.ui.CustomComponent
-
- com.vaadin.v7.ui.components.colorpicker.ColorPickerHistory
-
- All Implemented Interfaces:
ContextClickEvent.ContextClickNotifier,MethodEventSource,SerializableEventListener,ClientConnector,Sizeable,com.vaadin.shared.Connector,Component,HasComponents,ColorChangeListener,ColorSelector,HasColorChangeListener,Serializable,Iterable<Component>,EventListener
@Deprecated public class ColorPickerHistory extends CustomComponent implements ColorSelector, ColorChangeListener
Deprecated.A component that represents color selection history within a color picker.- Since:
- 7.0.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener
-
Nested classes/interfaces inherited from interface com.vaadin.ui.Component
Component.ErrorEvent, Component.Event, Component.Focusable, Component.Listener
-
Nested classes/interfaces inherited from interface com.vaadin.ui.HasComponents
HasComponents.ComponentAttachDetachNotifier, HasComponents.ComponentAttachEvent, HasComponents.ComponentAttachListener, HasComponents.ComponentDetachEvent, HasComponents.ComponentDetachListener
-
Nested classes/interfaces inherited from interface com.vaadin.server.Sizeable
Sizeable.Unit
-
-
Field Summary
-
Fields inherited from class com.vaadin.ui.AbstractComponent
DESIGN_ATTR_PLAIN_TEXT
-
Fields inherited from interface com.vaadin.server.Sizeable
SIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS
-
-
Constructor Summary
Constructors Constructor Description ColorPickerHistory()Deprecated.Instantiates a new color picker history.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddColorChangeListener(ColorChangeListener listener)Deprecated.Adds a color change listener.voidattach()Deprecated.voidcolorChanged(ColorChangeEvent event)Deprecated.Called when a new color has been selected.ColorgetColor()Deprecated.Gets the color.List<Color>getHistory()Deprecated.Gets the history.booleanhasColor(Color c)Deprecated.Checks if the history contains given color.voidremoveColorChangeListener(ColorChangeListener listener)Deprecated.Removes a color change listener.voidsetColor(Color color)Deprecated.Sets the color.voidsetHeight(String height)Deprecated.-
Methods inherited from class com.vaadin.ui.CustomComponent
getComponentCount, getCompositionRoot, getState, getState, iterator, setCompositionRoot
-
Methods inherited from class com.vaadin.ui.AbstractComponent
addContextClickListener, addListener, addShortcutListener, addStyleName, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getCustomAttributes, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isOrHasAncestor, isReadOnly, isRequiredIndicatorVisible, isResponsive, isVisible, readDesign, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeightFull, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidth, setWidthFull, setWidthUndefined, writeDesign
-
Methods inherited from class com.vaadin.server.AbstractClientConnector
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, 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, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstate
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.server.ClientConnector
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
-
Methods inherited from interface com.vaadin.ui.Component
addListener, addStyleName, addStyleNames, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, readDesign, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisible, writeDesign
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface com.vaadin.server.Sizeable
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeightFull, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull, setWidthUndefined
-
-
-
-
Method Detail
-
attach
public void attach()
Deprecated.- Specified by:
attachin interfaceClientConnector- Specified by:
attachin interfaceComponent- Overrides:
attachin classAbstractComponent
-
setHeight
public void setHeight(String height)
Deprecated.- Specified by:
setHeightin interfaceSizeable- Overrides:
setHeightin classAbstractComponent
-
setColor
public void setColor(Color color)
Deprecated.Description copied from interface:ColorSelectorSets the color.- Specified by:
setColorin interfaceColorSelector- Parameters:
color- the new color
-
getColor
public Color getColor()
Deprecated.Description copied from interface:ColorSelectorGets the color.- Specified by:
getColorin interfaceColorSelector- Returns:
- the color
-
hasColor
public boolean hasColor(Color c)
Deprecated.Checks if the history contains given color.- Parameters:
c- the color- Returns:
- true, if successful
-
addColorChangeListener
public void addColorChangeListener(ColorChangeListener listener)
Deprecated.Adds a color change listener.- Specified by:
addColorChangeListenerin interfaceHasColorChangeListener- Parameters:
listener- The listener
-
removeColorChangeListener
public void removeColorChangeListener(ColorChangeListener listener)
Deprecated.Removes a color change listener.- Specified by:
removeColorChangeListenerin interfaceHasColorChangeListener- Parameters:
listener- The listener
-
colorChanged
public void colorChanged(ColorChangeEvent event)
Deprecated.Description copied from interface:ColorChangeListenerCalled when a new color has been selected.- Specified by:
colorChangedin interfaceColorChangeListener- Parameters:
event- An event containing information about the color change.
-
-