|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.server.AbstractClientConnector
com.vaadin.ui.AbstractComponent
com.vaadin.ui.components.colorpicker.ColorPickerGrid
public class ColorPickerGrid
A component that represents a color selection grid within a color picker.
| Nested Class Summary |
|---|
| 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.ClientConnector |
|---|
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener |
| Nested classes/interfaces inherited from interface com.vaadin.server.Sizeable |
|---|
Sizeable.Unit |
| Field Summary |
|---|
| 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 | |
|---|---|
ColorPickerGrid()
Instantiates a new color picker grid. |
|
ColorPickerGrid(com.vaadin.shared.ui.colorpicker.Color[][] colors)
Instantiates a new color picker grid. |
|
ColorPickerGrid(int rows,
int columns)
Instantiates a new color picker grid. |
|
| Method Summary | |
|---|---|
void |
addColorChangeListener(ColorChangeListener listener)
Adds a color change listener |
void |
fireColorChanged(com.vaadin.shared.ui.colorpicker.Color color)
Notifies the listeners that a color change has occurred |
com.vaadin.shared.ui.colorpicker.Color |
getColor()
Gets the color. |
int[] |
getPosition()
Gets the position. |
protected com.vaadin.shared.ui.colorpicker.ColorPickerGridState |
getState()
Returns the shared state bean with information to be sent from the server to the client. |
void |
removeColorChangeListener(ColorChangeListener listener)
Removes a color change listener |
void |
setColor(com.vaadin.shared.ui.colorpicker.Color color)
Sets the color. |
void |
setColorGrid(com.vaadin.shared.ui.colorpicker.Color[][] colors)
Sets the color grid. |
void |
setPosition(int x,
int y)
Sets the position. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.vaadin.ui.Component |
|---|
getUI |
| Methods inherited from interface com.vaadin.server.ClientConnector |
|---|
addAttachListener, addDetachListener, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler |
| Methods inherited from interface com.vaadin.shared.Connector |
|---|
getConnectorId |
| Constructor Detail |
|---|
public ColorPickerGrid()
public ColorPickerGrid(int rows,
int columns)
rows - the rowscolumns - the columnspublic ColorPickerGrid(com.vaadin.shared.ui.colorpicker.Color[][] colors)
colors - the colors| Method Detail |
|---|
public void setColorGrid(com.vaadin.shared.ui.colorpicker.Color[][] colors)
colors - the new color gridpublic void addColorChangeListener(ColorChangeListener listener)
addColorChangeListener in interface HasColorChangeListenerlistener - The color change listenerpublic com.vaadin.shared.ui.colorpicker.Color getColor()
ColorSelector
getColor in interface ColorSelectorpublic void removeColorChangeListener(ColorChangeListener listener)
removeColorChangeListener in interface HasColorChangeListenerlistener - The listenerpublic void setColor(com.vaadin.shared.ui.colorpicker.Color color)
ColorSelector
setColor in interface ColorSelectorcolor - the new color
public void setPosition(int x,
int y)
x - the xy - the ypublic int[] getPosition()
public void fireColorChanged(com.vaadin.shared.ui.colorpicker.Color color)
color - The color which it changed toprotected com.vaadin.shared.ui.colorpicker.ColorPickerGridState getState()
AbstractComponent
getState in class AbstractComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||