com.vaadin.client.ui
Class VColorPicker

java.lang.Object
  extended by FocusWidget
      extended by com.vaadin.client.ui.VButton
          extended by com.vaadin.client.ui.VColorPicker

public class VColorPicker
extends VButton

Client side implementation for ColorPicker.

Since:
7.0.0

Field Summary
 
Fields inherited from class com.vaadin.client.ui.VButton
captionElement, CLASSNAME, clickPending, clickShortcut, client, errorIndicatorElement, icon, mousedownX, mousedownY, MOVE_THRESHOLD, wrapper
 
Constructor Summary
VColorPicker()
           
 
Method Summary
 boolean isOpen()
          Check the popup's marked state.
 void onClick(ClickEvent event)
           
 void refreshColor()
          Update color icon to show the currently selected color.
 void setColor(java.lang.String color)
          Set the color of the component, e.g.
 void setOpen(boolean open)
          Mark the popup opened/closed.
 
Methods inherited from class com.vaadin.client.ui.VButton
isEnabled, onBrowserEvent, onClick, setEnabled, setHtml, setStyleName, setStylePrimaryName, setTabIndex, setText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VColorPicker

public VColorPicker()
Method Detail

onClick

public void onClick(ClickEvent event)
Overrides:
onClick in class VButton

setColor

public void setColor(java.lang.String color)
Set the color of the component, e.g. #ffffff

Parameters:
color -

setOpen

public void setOpen(boolean open)
Mark the popup opened/closed.

Parameters:
open -

isOpen

public boolean isOpen()
Check the popup's marked state.

Returns:
true if the popup has been marked being open, false otherwise.

refreshColor

public void refreshColor()
Update color icon to show the currently selected color.



Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.