public class ColorPalette extends CellComponent<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()
.valueUpdater
adjustSize, allowTextSelection, cacheSizes, disableContextMenu, disabled, disabledStyle, ensureVisibilityOnSizing, height, hidden, lastSize, layer, left, mask, maskMessage, monitorWindowResize, pageX, pageY, resizeHandler, shim, tabIndex, toolTip, toolTipConfig, top, width, windowResizeDelay, windowResizeTask
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(<any> handler) |
addValueChangeHandler, createContext, getCell, getElement, getFocusEl, getKey, getKeyProvider, getValue, onAfterFirstAttach, onBrowserEvent, onDisable, onEnable, onRedraw, onResize, redraw, redraw, setKeyProvider, setValue, setValue, setValue
addBeforeHideHandler, addBeforeShowContextMenuHandler, addBeforeShowHandler, addBlurHandler, addDisableHandler, addEnableHandler, addFocusHandler, addHideHandler, addMoveHandler, addResizeHandler, addShowContextMenuHandler, addShowHandler, addStyleDependentName, addStyleOnOver, adjustPosition, adjustSize, applyState, assertAfterRender, assertPreRender, blur, clearSizeCache, disable, disableContextMenu, disableEvents, enable, enableEvents, fireCancellableEvent, fireEvent, focus, getData, getFocusSupport, getHideMode, getId, getItemId, getOffsetHeight, getOffsetWidth, getPositionEl, getShadow, getShadowPosition, getStateId, getTabIndex, getToolTip, hide, hideShadow, hideToolTip, isAllowTextSelection, isAutoHeight, isAutoWidth, isDeferHeight, isEnabled, isMonitorWindowResize, isRendered, isStateful, isVisible, isVisible, mask, mask, notifyHide, notifyShow, onAttach, onBlur, onDetach, onFocus, onHide, onHideContextMenu, onLoad, onPosition, onRightClick, onShow, onShowContextMenu, onUnload, onWindowResize, removeStyleDependentName, removeStyleOnOver, removeToolTip, setAllowTextSelection, setBorders, setBounds, setBounds, setContextMenu, setData, setDeferHeight, setEnabled, setHeight, setHeight, setHideMode, setId, setItemId, setMonitorWindowResize, setPagePosition, setPixelSize, setPosition, setShadow, setShadowPosition, setSize, setStateful, setStateId, setStyleDependentName, setTabIndex, setToolTip, setToolTipConfig, setVisible, setWidth, setWidth, show, sync, syncSize, unmask
public ColorPalette()
public ColorPalette(ColorPaletteCell cell)
CellComponent
with the specified color
palette Cell
.cell
- the color palette appearanceCopyright © 2018. All rights reserved.