|
||||||||||
| 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.CustomComponent
com.vaadin.ui.components.colorpicker.ColorPickerHistory
public class ColorPickerHistory
A component that represents color selection history within a color picker.
| Nested Class Summary |
|---|
| 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 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 | |
|---|---|
ColorPickerHistory()
Instantiates a new color picker history. |
|
| Method Summary | |
|---|---|
void |
addColorChangeListener(ColorChangeListener listener)
Adds a color change listener |
void |
attach()
Notifies the connector that it is connected to a VaadinSession (and therefore also to a UI). |
void |
colorChanged(ColorChangeEvent event)
Called when a new color has been selected. |
com.vaadin.shared.ui.colorpicker.Color |
getColor()
Gets the color. |
java.util.List<com.vaadin.shared.ui.colorpicker.Color> |
getHistory()
Gets the history. |
boolean |
hasColor(com.vaadin.shared.ui.colorpicker.Color c)
Checks if the history contains given color. |
void |
removeColorChangeListener(ColorChangeListener listener)
Removes a color change listener |
void |
setColor(com.vaadin.shared.ui.colorpicker.Color color)
Sets the color. |
void |
setHeight(java.lang.String height)
Sets the height of the component using String presentation. |
| Methods inherited from class com.vaadin.ui.CustomComponent |
|---|
getComponentCount, getCompositionRoot, iterator, setCompositionRoot |
| 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 |
|---|
addListener, addStyleName, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setReadOnly, setStyleName, setVisible |
| 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.shared.Connector |
|---|
getConnectorId |
| Methods inherited from interface com.vaadin.server.Sizeable |
|---|
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUndefined |
| Constructor Detail |
|---|
public ColorPickerHistory()
| Method Detail |
|---|
public void attach()
ClientConnector
The caller of this method is #setParent(ClientConnector) if the
parent is itself already attached to the session. If not, the parent will
call the ClientConnector.attach() for all its children when it is attached to
the session. This method is always called before the connector's data is
sent to the client-side for the first time.
The attachment logic is implemented in AbstractClientConnector.
attach in interface ClientConnectorattach in interface Componentattach in class AbstractComponentpublic void setHeight(java.lang.String height)
Sizeable
setHeight in interface SizeablesetHeight in class AbstractComponentheight - in CSS style string representationpublic 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 java.util.List<com.vaadin.shared.ui.colorpicker.Color> getHistory()
public boolean hasColor(com.vaadin.shared.ui.colorpicker.Color c)
c - the color
public void addColorChangeListener(ColorChangeListener listener)
addColorChangeListener in interface HasColorChangeListenerlistener - The listenerpublic void removeColorChangeListener(ColorChangeListener listener)
removeColorChangeListener in interface HasColorChangeListenerlistener - The listenerpublic void colorChanged(ColorChangeEvent event)
ColorChangeListener
colorChanged in interface ColorChangeListenerevent - An event containing information about the color change.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||