|
||||||||||
| 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.ColorPickerGradient
public class ColorPickerGradient
A component that represents a color gradient 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 | |
|---|---|
ColorPickerGradient(java.lang.String id,
AbstractColorPicker.Coordinates2Color converter)
Instantiates a new color picker gradient. |
|
| Method Summary | |
|---|---|
void |
addColorChangeListener(ColorChangeListener listener)
Adds a ColorChangeListener to the component. |
void |
fireColorChanged(com.vaadin.shared.ui.colorpicker.Color color)
Notifies the listeners that the color has changed |
com.vaadin.shared.ui.colorpicker.Color |
getColor()
Gets the color. |
protected com.vaadin.shared.ui.colorpicker.ColorPickerGradientState |
getState()
Returns the shared state bean with information to be sent from the server to the client. |
void |
removeColorChangeListener(ColorChangeListener listener)
Removes a ColorChangeListener from the component. |
void |
setBackgroundColor(com.vaadin.shared.ui.colorpicker.Color color)
Sets the background color. |
void |
setColor(com.vaadin.shared.ui.colorpicker.Color c)
Sets the color. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, 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, isAttached, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler |
| Methods inherited from interface com.vaadin.shared.Connector |
|---|
getConnectorId |
| Constructor Detail |
|---|
public ColorPickerGradient(java.lang.String id,
AbstractColorPicker.Coordinates2Color converter)
id - the idconverter - the converter| Method Detail |
|---|
public void setColor(com.vaadin.shared.ui.colorpicker.Color c)
ColorSelector
setColor in interface ColorSelectorc - the new colorpublic void addColorChangeListener(ColorChangeListener listener)
HasColorChangeListenerColorChangeListener to the component.
addColorChangeListener in interface HasColorChangeListenerpublic void removeColorChangeListener(ColorChangeListener listener)
HasColorChangeListenerColorChangeListener from the component.
removeColorChangeListener in interface HasColorChangeListenerpublic void setBackgroundColor(com.vaadin.shared.ui.colorpicker.Color color)
color - the new background colorpublic com.vaadin.shared.ui.colorpicker.Color getColor()
ColorSelector
getColor in interface ColorSelectorpublic void fireColorChanged(com.vaadin.shared.ui.colorpicker.Color color)
color - The color which it changed toprotected com.vaadin.shared.ui.colorpicker.ColorPickerGradientState getState()
AbstractComponent
getState in class AbstractComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||