public class ColorPalette extends CellComponent<String> implements HasSelectionHandlers<String>
CellComponent.addValueChangeHandler(ValueChangeHandler)
for more
information.
To set the currently selected color, see
CellComponent.setValue(Object)
.
To get the currently selected color, see CellComponent.getValue()
.UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
Editor.Ignore, Editor.Path
DEBUG_ID_PREFIX
Constructor and Description |
---|
ColorPalette()
Creates a new color palette with default colors.
|
ColorPalette(ColorPaletteCell cell)
Creates a new color palette
CellComponent with the specified color
palette Cell . |
ColorPalette(String[] colors,
String[] labels)
Creates a new color palette with the specified colors.
|
Modifier and Type | Method and Description |
---|---|
HandlerRegistration |
addSelectionHandler(SelectionHandler<String> handler) |
addValueChangeHandler, getCell, getElement, getKeyProvider, getValue, onBrowserEvent, redraw, setValue, setValue, setValue
addBeforeHideHandler, addBeforeShowContextMenuHandler, addBeforeShowHandler, addBlurHandler, addDisableHandler, addEnableHandler, addFocusHandler, addHideHandler, addMoveHandler, addResizeHandler, addShowContextMenuHandler, addShowHandler, addStyleOnOver, clearSizeCache, disable, disableEvents, enable, enableEvents, fireEvent, focus, getData, getFocusSupport, getHideMode, getId, getItemId, getOffsetHeight, getOffsetWidth, getShadow, getShadowPosition, getStateId, getTabIndex, getToolTip, hide, hideToolTip, isAllowTextSelection, isAutoHeight, isAutoWidth, isDeferHeight, isEnabled, isRendered, isStateful, isVisible, isVisible, mask, mask, removeToolTip, setAllowTextSelection, setBorders, setBounds, setBounds, setContextMenu, setData, setDeferHeight, setEnabled, setHeight, setHeight, setHideMode, setId, setItemId, setPagePosition, setPixelSize, setPosition, setShadow, setShadowPosition, setSize, setStateful, setStateId, setTabIndex, setToolTip, setToolTip, setToolTipConfig, setVisible, setWidth, setWidth, show, sync, syncSize, unmask
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, getLayoutData, getParent, isAttached, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, removeStyleName, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
fireEvent
public ColorPalette()
public ColorPalette(ColorPaletteCell cell)
CellComponent
with the specified color
palette Cell
.cell
- the color palette appearancepublic HandlerRegistration addSelectionHandler(SelectionHandler<String> handler)
addSelectionHandler
in interface HasSelectionHandlers<String>
Copyright © 2015. All rights reserved.