Class ColorPickerGrid
- java.lang.Object
-
- com.vaadin.server.AbstractClientConnector
-
- com.vaadin.ui.AbstractComponent
-
- com.vaadin.v7.ui.components.colorpicker.ColorPickerGrid
-
- All Implemented Interfaces:
ContextClickEvent.ContextClickNotifier,MethodEventSource,ClientConnector,Sizeable,com.vaadin.shared.Connector,Component,ColorSelector,HasColorChangeListener,Serializable
@Deprecated public class ColorPickerGrid extends AbstractComponent implements ColorSelector
Deprecated.A component that represents a color selection grid 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.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 ColorPickerGrid()Deprecated.Instantiates a new color picker grid.ColorPickerGrid(int rows, int columns)Deprecated.Instantiates a new color picker grid.ColorPickerGrid(Color[][] colors)Deprecated.Instantiates a new color picker grid.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddColorChangeListener(ColorChangeListener listener)Deprecated.Adds a color change listener.voidfireColorChanged(Color color)Deprecated.Notifies the listeners that a color change has occurred.ColorgetColor()Deprecated.Gets the color.int[]getPosition()Deprecated.Gets the position.protected ColorPickerGridStategetState()Deprecated.voidremoveColorChangeListener(ColorChangeListener listener)Deprecated.Removes a color change listener.voidsetColor(Color color)Deprecated.Sets the color.voidsetColorGrid(Color[][] colors)Deprecated.Sets the color grid.voidsetPosition(int x, int y)Deprecated.Sets the position.-
Methods inherited from class com.vaadin.ui.AbstractComponent
addContextClickListener, addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getCustomAttributes, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getState, 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, 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, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
-
Methods inherited from interface com.vaadin.ui.Component
addStyleNames, getUI, removeStyleNames, setStyleName
-
-
-
-
Constructor Detail
-
ColorPickerGrid
public ColorPickerGrid()
Deprecated.Instantiates a new color picker grid.
-
ColorPickerGrid
public ColorPickerGrid(int rows, int columns)Deprecated.Instantiates a new color picker grid.- Parameters:
rows- the rowscolumns- the columns
-
ColorPickerGrid
public ColorPickerGrid(Color[][] colors)
Deprecated.Instantiates a new color picker grid.- Parameters:
colors- the colors
-
-
Method Detail
-
setColorGrid
public void setColorGrid(Color[][] colors)
Deprecated.Sets the color grid.- Parameters:
colors- the new color grid
-
addColorChangeListener
public void addColorChangeListener(ColorChangeListener listener)
Deprecated.Adds a color change listener.- Specified by:
addColorChangeListenerin interfaceHasColorChangeListener- Parameters:
listener- The color change listener
-
getColor
public Color getColor()
Deprecated.Description copied from interface:ColorSelectorGets the color.- Specified by:
getColorin interfaceColorSelector- Returns:
- the color
-
removeColorChangeListener
public void removeColorChangeListener(ColorChangeListener listener)
Deprecated.Removes a color change listener.- Specified by:
removeColorChangeListenerin interfaceHasColorChangeListener- Parameters:
listener- The listener
-
setColor
public void setColor(Color color)
Deprecated.Description copied from interface:ColorSelectorSets the color.- Specified by:
setColorin interfaceColorSelector- Parameters:
color- the new color
-
setPosition
public void setPosition(int x, int y)Deprecated.Sets the position.- Parameters:
x- the xy- the y
-
getPosition
public int[] getPosition()
Deprecated.Gets the position.- Returns:
- the position
-
fireColorChanged
public void fireColorChanged(Color color)
Deprecated.Notifies the listeners that a color change has occurred.- Parameters:
color- The color which it changed to
-
getState
protected ColorPickerGridState getState()
Deprecated.- Overrides:
getStatein classAbstractComponent
-
-