public class ColorPicker extends com.google.gwt.user.client.ui.PopupPanel implements com.google.gwt.event.logical.shared.SelectionHandler<String>
com.google.gwt.user.client.ui.PopupPanel.PositionCallback| Constructor and Description |
|---|
ColorPicker(ColorPalette palette)
Creates a new color picker that uses the given color palette.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getColor() |
protected ColorPalette |
getColorPalette() |
void |
onSelection(com.google.gwt.event.logical.shared.SelectionEvent<String> event) |
void |
setColor(String color)
Sets the color that should appear as selected on the color palette.
|
addAutoHidePartner, addCloseHandler, addPopupListener, center, getContainerElement, getGlassElement, getGlassStyleName, getOffsetHeight, getOffsetWidth, getPopupLeft, getPopupTop, getStyleElement, getTitle, hide, hide, isAnimationEnabled, isAutoHideEnabled, isAutoHideOnHistoryEventsEnabled, isGlassEnabled, isModal, isPreviewingAllNativeEvents, isShowing, isVisible, onEventPreview, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, onPreviewNativeEvent, onUnload, removeAutoHidePartner, removePopupListener, setAnimationEnabled, setAutoHideEnabled, setAutoHideOnHistoryEventsEnabled, setGlassEnabled, setGlassStyleName, setHeight, setModal, setPopupPosition, setPopupPositionAndShow, setPreviewingAllNativeEvents, setTitle, setVisible, setWidget, setWidth, show, showRelativeToadd, getWidget, iterator, remove, setWidgetadd, adopt, clear, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, toStringpublic ColorPicker(ColorPalette palette)
palette - the color palette to be used by this color pickerpublic void onSelection(com.google.gwt.event.logical.shared.SelectionEvent<String> event)
onSelection in interface com.google.gwt.event.logical.shared.SelectionHandler<String>SelectionHandler.onSelection(SelectionEvent)protected ColorPalette getColorPalette()
public String getColor()
public void setColor(String color)
color - the color to be selectedCopyright © 2004–2015 XWiki. All rights reserved.