public class VColorPickerArea
extends com.google.gwt.user.client.ui.Widget
implements com.google.gwt.event.dom.client.ClickHandler, com.google.gwt.user.client.ui.HasHTML, com.google.gwt.event.dom.client.HasClickHandlers
| Constructor and Description |
|---|
VColorPickerArea()
Initializes an area-style color picker widget.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addClickHandler(com.google.gwt.event.dom.client.ClickHandler handler)
Adds a click handler to the widget and sinks the click event.
|
String |
getColor()
Gets the color.
|
String |
getHTML()
Gets the caption's contents as HTML.
|
String |
getText()
Gets the caption's contents as text.
|
boolean |
isOpen()
Check the popup's marked state.
|
void |
onBrowserEvent(com.google.gwt.user.client.Event event) |
void |
onClick(com.google.gwt.event.dom.client.ClickEvent event) |
void |
refreshColor()
Update the color area with the currently set color.
|
void |
setColor(String color)
Sets the color for the area.
|
void |
setHeight(String height)
Sets the color area's height.
|
void |
setHTML(String html)
Sets the caption's content to the given HTML.
|
void |
setOpen(boolean open)
Mark the popup opened/closed.
|
void |
setStylePrimaryName(String style) |
void |
setText(String text)
Sets the caption's content to the given text.
|
void |
setWidth(String width)
Sets the color area's width.
|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, setVisible, sinkBitlessEvent, toStringpublic static final String CLASSNAME
public VColorPickerArea()
public com.google.gwt.event.shared.HandlerRegistration addClickHandler(com.google.gwt.event.dom.client.ClickHandler handler)
addClickHandler in interface com.google.gwt.event.dom.client.HasClickHandlershandler - public void onClick(com.google.gwt.event.dom.client.ClickEvent event)
onClick in interface com.google.gwt.event.dom.client.ClickHandlerpublic void onBrowserEvent(com.google.gwt.user.client.Event event)
onBrowserEvent in interface com.google.gwt.user.client.EventListeneronBrowserEvent in class com.google.gwt.user.client.ui.Widgetpublic void setOpen(boolean open)
open - public boolean isOpen()
public void setText(String text)
setText in interface com.google.gwt.user.client.ui.HasTexttext - Label.setText(String)public String getText()
getText in interface com.google.gwt.user.client.ui.HasTextpublic void setHTML(String html)
setHTML in interface com.google.gwt.user.client.ui.HasHTMLhtml - public String getHTML()
getHTML in interface com.google.gwt.user.client.ui.HasHTMLpublic void setColor(String color)
color - public String getColor()
public void refreshColor()
public void setStylePrimaryName(String style)
setStylePrimaryName in class com.google.gwt.user.client.ui.UIObjectpublic void setHeight(String height)
setHeight in class com.google.gwt.user.client.ui.UIObjectpublic void setWidth(String width)
setWidth in class com.google.gwt.user.client.ui.UIObjectCopyright © 2023 Vaadin Ltd. All rights reserved.