|
||||||||||
| 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.AbstractComponentContainer
com.vaadin.ui.AbstractLayout
com.vaadin.ui.CssLayout
com.vaadin.ui.components.colorpicker.ColorPickerPreview
public class ColorPickerPreview
A component that represents color selection preview within a color picker.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.vaadin.ui.Layout |
|---|
Layout.AlignmentHandler, Layout.MarginHandler, Layout.SpacingHandler |
| 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.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 class com.vaadin.ui.CssLayout |
|---|
components |
| 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 | |
|---|---|
ColorPickerPreview(com.vaadin.shared.ui.colorpicker.Color color)
Instantiates a new color picker preview. |
|
| Method Summary | |
|---|---|
void |
addColorChangeListener(ColorChangeListener listener)
Adds a ColorChangeListener to the component. |
com.vaadin.shared.ui.colorpicker.Color |
getColor()
Gets the color. |
protected java.lang.String |
getCss(Component c)
Called when the component is refreshing |
void |
removeColorChangeListener(ColorChangeListener listener)
Removes a ColorChangeListener from the component. |
void |
setColor(com.vaadin.shared.ui.colorpicker.Color color)
Sets the color. |
void |
valueChange(Property.ValueChangeEvent event)
Notifies this listener that the Property's value has changed. |
| Methods inherited from class com.vaadin.ui.CssLayout |
|---|
addComponent, addComponent, addComponentAsFirst, addLayoutClickListener, addListener, beforeClientResponse, getComponent, getComponentCount, getComponentIndex, getState, iterator, removeComponent, removeLayoutClickListener, removeListener, replaceComponent |
| 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.ComponentContainer |
|---|
addComponents, addListener, addListener, getComponentIterator, moveComponentsFrom, removeAllComponents, removeListener, removeListener |
| Methods inherited from interface com.vaadin.ui.Component |
|---|
addListener, addStyleName, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setId, setPrimaryStyleName, setReadOnly, setStyleName, setVisible |
| Methods inherited from interface com.vaadin.server.ClientConnector |
|---|
addAttachListener, addDetachListener, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setParent |
| Methods inherited from interface com.vaadin.shared.Connector |
|---|
getConnectorId |
| Methods inherited from interface com.vaadin.server.Sizeable |
|---|
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setSizeFull, setSizeUndefined, setWidth, setWidth |
| Methods inherited from interface com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier |
|---|
addComponentAttachListener, addComponentDetachListener, removeComponentAttachListener, removeComponentDetachListener |
| Constructor Detail |
|---|
public ColorPickerPreview(com.vaadin.shared.ui.colorpicker.Color color)
| Method Detail |
|---|
public void setColor(com.vaadin.shared.ui.colorpicker.Color color)
ColorSelector
setColor in interface ColorSelectorcolor - the new colorpublic com.vaadin.shared.ui.colorpicker.Color getColor()
ColorSelector
getColor in interface ColorSelectorpublic 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 valueChange(Property.ValueChangeEvent event)
Property.ValueChangeListener
valueChange in interface Property.ValueChangeListenerevent - value change event objectprotected java.lang.String getCss(Component c)
getCss in class CssLayoutc - the component
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||