|
||||||||||
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.AbstractSingleComponentContainer
com.vaadin.ui.Panel
com.vaadin.ui.Window
com.vaadin.ui.components.colorpicker.ColorPickerPopup
public class ColorPickerPopup
A component that represents color selection popup within a color picker.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.vaadin.ui.Window |
---|
Window.CloseEvent, Window.CloseListener, Window.CloseShortcut, Window.ResizeEvent, Window.ResizeListener, Window.WindowModeChangeEvent, Window.WindowModeChangeListener |
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 |
Nested classes/interfaces inherited from interface com.vaadin.ui.HasComponents |
---|
HasComponents.ComponentAttachDetachNotifier, HasComponents.ComponentAttachEvent, HasComponents.ComponentAttachListener, HasComponents.ComponentDetachEvent, HasComponents.ComponentDetachListener |
Field Summary |
---|
Fields inherited from class com.vaadin.ui.Window |
---|
closeShortcut |
Fields inherited from class com.vaadin.ui.Panel |
---|
actionManager |
Fields inherited from interface com.vaadin.ui.Button.ClickListener |
---|
BUTTON_CLICK_METHOD |
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 | |
---|---|
ColorPickerPopup(com.vaadin.shared.ui.colorpicker.Color initialColor)
Instantiates a new color picker popup. |
Method Summary | |
---|---|
void |
addColorChangeListener(ColorChangeListener listener)
Adds a ColorChangeListener to the component. |
void |
buttonClick(Button.ClickEvent event)
Called when a Button has been clicked. |
void |
colorChanged(ColorChangeEvent event)
Called when a new color has been selected. |
void |
fireColorChanged()
Notifies the listeners that the color changed |
com.vaadin.shared.ui.colorpicker.Color |
getColor()
Gets the color. |
java.util.List<com.vaadin.shared.ui.colorpicker.Color> |
getColorHistory()
Gets the color history. |
ColorPickerHistory |
getHistory()
Gets the history. |
static java.util.logging.Logger |
getLogger()
|
void |
removeColorChangeListener(ColorChangeListener listener)
Removes a ColorChangeListener from the component. |
void |
setColor(com.vaadin.shared.ui.colorpicker.Color color)
Sets the color. |
void |
setHistoryVisible(boolean visible)
Set the History visibility |
void |
setHSVTabVisible(boolean visible)
Set HSV tab visibility |
void |
setPreviewVisible(boolean visible)
Set the preview visibility |
void |
setRGBTabVisible(boolean visible)
Set RGB tab visibility |
void |
setSwatchesTabVisible(boolean visible)
Set Swatches tab visibility |
Methods inherited from class com.vaadin.ui.Panel |
---|
addAction, addActionHandler, addClickListener, addListener, getActionManager, getScrollLeft, getScrollTop, getTabIndex, removeAction, removeActionHandler, removeAllActionHandlers, removeClickListener, removeListener, setCaption, setScrollLeft, setScrollTop, setTabIndex |
Methods inherited from class com.vaadin.ui.AbstractSingleComponentContainer |
---|
addComponentAttachListener, addComponentDetachListener, fireComponentAttachEvent, fireComponentDetachEvent, getComponentCount, getContent, iterator, removeComponentAttachListener, removeComponentDetachListener, removeFromParent, setContent, setHeight, setWidth |
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.LegacyComponent |
---|
markAsDirty |
Methods inherited from interface com.vaadin.server.VariableOwner |
---|
isEnabled, isImmediate |
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, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, 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, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUndefined |
Constructor Detail |
---|
public ColorPickerPopup(com.vaadin.shared.ui.colorpicker.Color initialColor)
Method Detail |
---|
public void buttonClick(Button.ClickEvent event)
Button.ClickListener
Button
has been clicked. A reference to the
button is given by Button.ClickEvent.getButton()
.
buttonClick
in interface Button.ClickListener
event
- An event containing information about the click.public void fireColorChanged()
public ColorPickerHistory getHistory()
public void setColor(com.vaadin.shared.ui.colorpicker.Color color)
ColorSelector
setColor
in interface ColorSelector
color
- the new colorpublic com.vaadin.shared.ui.colorpicker.Color getColor()
ColorSelector
getColor
in interface ColorSelector
public java.util.List<com.vaadin.shared.ui.colorpicker.Color> getColorHistory()
public void colorChanged(ColorChangeEvent event)
ColorChangeListener
colorChanged
in interface ColorChangeListener
event
- An event containing information about the color change.public void addColorChangeListener(ColorChangeListener listener)
HasColorChangeListener
ColorChangeListener
to the component.
addColorChangeListener
in interface HasColorChangeListener
public void removeColorChangeListener(ColorChangeListener listener)
HasColorChangeListener
ColorChangeListener
from the component.
removeColorChangeListener
in interface HasColorChangeListener
public void setRGBTabVisible(boolean visible)
visible
- The visibility of the RGB tabpublic void setHSVTabVisible(boolean visible)
visible
- The visibility of the HSV tabpublic void setSwatchesTabVisible(boolean visible)
visible
- The visibility of the Swatches tabpublic void setHistoryVisible(boolean visible)
visible
- public void setPreviewVisible(boolean visible)
visible
- public static java.util.logging.Logger getLogger()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |