com.vaadin.client.ui
Class VColorPickerArea

java.lang.Object
  extended by Widget
      extended by com.vaadin.client.ui.VColorPickerArea

public class VColorPickerArea
extends Widget

Client side implementation for ColorPickerArea.

Since:
7.0.0

Field Summary
static java.lang.String CLASSNAME
           
 
Constructor Summary
VColorPickerArea()
          Initializes an area-style color picker widget.
 
Method Summary
 com.google.gwt.event.shared.HandlerRegistration addClickHandler(ClickHandler handler)
          Adds a click handler to the widget and sinks the click event.
 java.lang.String getHTML()
          Gets the caption's contents as HTML.
 java.lang.String getText()
          Gets the caption's contents as text.
 boolean isOpen()
          Check the popup's marked state.
 void onBrowserEvent(Event event)
           
 void onClick(ClickEvent event)
           
 void refreshColor()
          Update the color area with the currently set color.
 void setColor(java.lang.String color)
          Sets the color for the area.
 void setHeight(java.lang.String height)
          Sets the color area's height.
 void setHTML(java.lang.String html)
          Sets the caption's content to the given HTML.
 void setOpen(boolean open)
          Mark the popup opened/closed.
 void setStylePrimaryName(java.lang.String style)
           
 void setText(java.lang.String text)
          Sets the caption's content to the given text.
 void setWidth(java.lang.String width)
          Sets the color area's width.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASSNAME

public static final java.lang.String CLASSNAME
See Also:
Constant Field Values
Constructor Detail

VColorPickerArea

public VColorPickerArea()
Initializes an area-style color picker widget.

Method Detail

addClickHandler

public com.google.gwt.event.shared.HandlerRegistration addClickHandler(ClickHandler handler)
Adds a click handler to the widget and sinks the click event.

Parameters:
handler -
Returns:
HandlerRegistration used to remove the handler

onClick

public void onClick(ClickEvent event)

onBrowserEvent

public void onBrowserEvent(Event event)

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.

setText

public void setText(java.lang.String text)
Sets the caption's content to the given text.

Parameters:
text -
See Also:
Label#setText(String)

getText

public java.lang.String getText()
Gets the caption's contents as text.

Returns:
the caption's text

setHTML

public void setHTML(java.lang.String html)
Sets the caption's content to the given HTML.

Parameters:
html -

getHTML

public java.lang.String getHTML()
Gets the caption's contents as HTML.

Returns:
the caption's HTML

setColor

public void setColor(java.lang.String color)
Sets the color for the area.

Parameters:
color -

refreshColor

public void refreshColor()
Update the color area with the currently set color.


setStylePrimaryName

public void setStylePrimaryName(java.lang.String style)

setHeight

public void setHeight(java.lang.String height)
Sets the color area's height. This height does not include caption or decorations such as border, margin, and padding.


setWidth

public void setWidth(java.lang.String width)
Sets the color area's width. This width does not include caption or decorations such as border, margin, and padding.



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