public class ColorPicker extends Window implements HasColorSelectedHandlers
config, configOnly, id, isElementSet, nativeObject, scClassName
Constructor and Description |
---|
ColorPicker() |
ColorPicker(com.google.gwt.core.client.JavaScriptObject jsObj) |
Modifier and Type | Method and Description |
---|---|
com.google.gwt.event.shared.HandlerRegistration |
addColorSelectedHandler(ColorSelectedHandler handler)
Add a colorSelected handler.
|
static void |
changeAutoChildDefaults(java.lang.String autoChildName,
Canvas defaults)
Changes the defaults for Canvas AutoChildren named
autoChildName . |
static void |
changeAutoChildDefaults(java.lang.String autoChildName,
FormItem defaults)
Changes the defaults for FormItem AutoChildren named
autoChildName . |
void |
colorChanged()
Override this method to be kept informed when the ColorPicker changes in real-time (for example, if you need to update
your own GUI accordingly).
|
protected com.google.gwt.core.client.JavaScriptObject |
create() |
java.lang.Boolean |
getAllowComplexMode()
Should the "complex" mode be allowed for this ColorPicker? If false, no "More" button is shown on the simple picker
|
java.lang.Boolean |
getAutoCenterOnShow()
If
autoPosition is false, this property controls
whether to automatically center the colorPicker every time it is reshown with the show() method. |
java.lang.Boolean |
getAutoPosition()
If true, causes the ColorPicker to appear near where the mouse was last clicked.
|
java.lang.String |
getBasicColorLabel()
The label shown above the basic color blocks.
|
int |
getBlue()
Returns the Blue element of the currently-selected color, as an integer from 0-255
|
java.lang.String |
getBlueFieldPrompt()
The text to show when the mouse hovers over the 'Blue' field in the complex chooser.
|
java.lang.String |
getBlueFieldTitle()
The title for the 'Blue' field in the complex chooser.
|
IButton |
getCancelButton()
Cancel button for the ColorPicker
|
java.lang.String |
getCancelButtonTitle()
The title for the 'Cancel' button.
|
java.lang.String |
getColorButtonBaseStyle()
Base CSS style applied to the basic color boxes
|
int |
getColorButtonSize()
Width and height of the basic color boxes (they are always square, and they are all the same size).
|
java.lang.String |
getCrosshairImageURL()
The location of the crosshair image file
|
java.lang.String |
getDefaultColor()
The default color.
|
int |
getDefaultOpacity()
The initial opacity value for the component, as a percentage value between 0 and 100
|
java.lang.String |
getDefaultPickMode()
The ColorPicker can operate in either a "simple" mode (where it displays just the 40 basic colors and allows the user to
click one), or a "complex" mode (where the user can specify a color from anywhere in the spectrum, with an optional
alpha element).
|
int |
getGreen()
Returns the Green element of the currently-selected color, as an integer from 0-255
|
java.lang.String |
getGreenFieldPrompt()
The text to show when the mouse hovers over the 'Green' field in the complex chooser.
|
java.lang.String |
getGreenFieldTitle()
The title for the 'Green' field in the complex chooser.
|
java.lang.String |
getHtmlColor()
Returns the currently-selected color, in HTML color representation form, as a string.
|
java.lang.String |
getHtmlFieldPrompt()
The text to show when the mouse hovers over the 'HTML' field in the complex chooser.
|
java.lang.String |
getHtmlFieldTitle()
The title for the 'HTML' field in the complex chooser.
|
int |
getHue()
Returns the Hue of the currently-selected color, as an integer from 0-239
|
java.lang.String |
getHueFieldPrompt()
The text to show when the mouse hovers over the 'Hue' field in the complex chooser.
|
java.lang.String |
getHueFieldTitle()
The title for the 'Hue' field in the complex chooser.
|
java.lang.String |
getLessButtonTitle()
The title for the button that switches to a less complex view.
|
com.smartgwt.logicalstructure.core.LogicalStructureObject |
getLogicalStructure() |
java.lang.String |
getLumFieldPrompt()
The text to show when the mouse hovers over the 'Luminosity' field in the complex chooser.
|
java.lang.String |
getLumFieldTitle()
The title for the 'Luminosity' field in the complex chooser.
|
int |
getLuminosity()
Returns the Luminosity (brightness) of the currently-selected color, as an integer from 0-240
|
int |
getLumWidth()
Width of the Luminosity bar
|
IButton |
getModeToggleButton()
"More"/"Less" button for the ColorPicker
|
java.lang.String |
getMoreButtonTitle()
The title for the button that switches to a more complex view.
|
IButton |
getOkButton()
"OK" button for the ColorPicker
|
java.lang.String |
getOkButtonTitle()
The title for the 'OK' button.
|
java.lang.String |
getOpacitySliderLabel()
The label shown next to the opacity slider.
|
java.lang.String |
getOpacityText()
The text to show underneath the selected color box, so that it can be seen through semi-transparent colors.
|
static ColorPicker |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj) |
int |
getRed()
Returns the Red element of the currently-selected color, as an integer from 0-255
|
java.lang.String |
getRedFieldPrompt()
The text to show when the mouse hovers over the 'Red' field in the complex chooser.
|
java.lang.String |
getRedFieldTitle()
The title for the 'Red' field in the complex chooser.
|
java.lang.String |
getSatFieldPrompt()
The text to show when the mouse hovers over the 'Saturation' field in the complex chooser.
|
java.lang.String |
getSatFieldTitle()
The title for the 'Sat' field in the complex chooser.
|
int |
getSaturation()
Returns the Saturation of the currently-selected color, as an integer from 0-240
|
java.lang.String |
getSelectedColorLabel()
The label shown next to the selected color box.
|
java.lang.Boolean |
getSupportsTransparency()
Determines whether to show the opacity slider.
|
int |
getSwatchHeight()
Displayed height of the color swatch image.
|
java.lang.String |
getSwatchImageURL()
The location of the color swatch image file
|
int |
getSwatchWidth()
Displayed width of the color swatch image.
|
void |
setAllowComplexMode(java.lang.Boolean allowComplexMode)
Should the "complex" mode be allowed for this ColorPicker? If false, no "More" button is shown on the simple picker
|
void |
setAutoCenterOnShow(java.lang.Boolean autoCenterOnShow)
If
autoPosition is false, this property controls
whether to automatically center the colorPicker every time it is reshown with the show() method. |
void |
setAutoPosition(java.lang.Boolean autoPosition)
If true, causes the ColorPicker to appear near where the mouse was last clicked.
|
void |
setBasicColorLabel(java.lang.String basicColorLabel)
The label shown above the basic color blocks.
|
void |
setBlue(int newValue)
Sets the Blue element of the selected color
|
void |
setBlueFieldPrompt(java.lang.String blueFieldPrompt)
The text to show when the mouse hovers over the 'Blue' field in the complex chooser.
|
void |
setBlueFieldTitle(java.lang.String blueFieldTitle)
The title for the 'Blue' field in the complex chooser.
|
void |
setCancelButtonTitle(java.lang.String cancelButtonTitle)
The title for the 'Cancel' button.
|
void |
setColorButtonBaseStyle(java.lang.String colorButtonBaseStyle)
Base CSS style applied to the basic color boxes
|
void |
setColorButtonSize(int colorButtonSize)
Width and height of the basic color boxes (they are always square, and they are all the same size).
|
void |
setCrosshairImageURL(java.lang.String crosshairImageURL)
The location of the crosshair image file
|
void |
setDefaultColor(java.lang.String defaultColor)
The default color.
|
void |
setDefaultOpacity(int defaultOpacity)
The initial opacity value for the component, as a percentage value between 0 and 100
|
void |
setDefaultPickMode(java.lang.String defaultPickMode)
The ColorPicker can operate in either a "simple" mode (where it displays just the 40 basic colors and allows the user to
click one), or a "complex" mode (where the user can specify a color from anywhere in the spectrum, with an optional
alpha element).
|
static void |
setDefaultProperties(ColorPicker colorPickerProperties)
Class level method to set the default properties of this class.
|
void |
setGreen(int newValue)
Sets the Green element of the selected color
|
void |
setGreenFieldPrompt(java.lang.String greenFieldPrompt)
The text to show when the mouse hovers over the 'Green' field in the complex chooser.
|
void |
setGreenFieldTitle(java.lang.String greenFieldTitle)
The title for the 'Green' field in the complex chooser.
|
void |
setHtmlColor(java.lang.String newValue)
Changes the selected color to the one represented by the supplied HTML color string.
|
void |
setHtmlFieldPrompt(java.lang.String htmlFieldPrompt)
The text to show when the mouse hovers over the 'HTML' field in the complex chooser.
|
void |
setHtmlFieldTitle(java.lang.String htmlFieldTitle)
The title for the 'HTML' field in the complex chooser.
|
void |
setHue(int newValue)
Sets the Hue of the selected color
|
void |
setHueFieldPrompt(java.lang.String hueFieldPrompt)
The text to show when the mouse hovers over the 'Hue' field in the complex chooser.
|
void |
setHueFieldTitle(java.lang.String hueFieldTitle)
The title for the 'Hue' field in the complex chooser.
|
void |
setJavaScriptObject(com.google.gwt.core.client.JavaScriptObject jsObj) |
void |
setLessButtonTitle(java.lang.String lessButtonTitle)
The title for the button that switches to a less complex view.
|
com.smartgwt.logicalstructure.core.LogicalStructureObject |
setLogicalStructure(com.smartgwt.logicalstructure.widgets.form.ColorPickerLogicalStructure s) |
void |
setLumFieldPrompt(java.lang.String lumFieldPrompt)
The text to show when the mouse hovers over the 'Luminosity' field in the complex chooser.
|
void |
setLumFieldTitle(java.lang.String lumFieldTitle)
The title for the 'Luminosity' field in the complex chooser.
|
void |
setLuminosity(int newValue)
Sets the Luminosity (brightness) of the selected color
|
void |
setLumWidth(int lumWidth)
Width of the Luminosity bar
|
void |
setMoreButtonTitle(java.lang.String moreButtonTitle)
The title for the button that switches to a more complex view.
|
void |
setOkButtonTitle(java.lang.String okButtonTitle)
The title for the 'OK' button.
|
void |
setOpacity(int newValue)
Sets the Opacity of the selected color.
|
void |
setOpacitySliderLabel(java.lang.String opacitySliderLabel)
The label shown next to the opacity slider.
|
void |
setOpacityText(java.lang.String opacityText)
The text to show underneath the selected color box, so that it can be seen through semi-transparent colors.
|
void |
setRed(int newValue)
Sets the Red element of the selected color
|
void |
setRedFieldPrompt(java.lang.String redFieldPrompt)
The text to show when the mouse hovers over the 'Red' field in the complex chooser.
|
void |
setRedFieldTitle(java.lang.String redFieldTitle)
The title for the 'Red' field in the complex chooser.
|
void |
setSatFieldPrompt(java.lang.String satFieldPrompt)
The text to show when the mouse hovers over the 'Saturation' field in the complex chooser.
|
void |
setSatFieldTitle(java.lang.String satFieldTitle)
The title for the 'Sat' field in the complex chooser.
|
void |
setSaturation(int newValue)
Sets the Saturation of the selected color
|
void |
setSelectedColorLabel(java.lang.String selectedColorLabel)
The label shown next to the selected color box.
|
void |
setSupportsTransparency(java.lang.Boolean supportsTransparency)
Determines whether to show the opacity slider.
|
void |
setSwatchHeight(int swatchHeight)
Displayed height of the color swatch image.
|
void |
setSwatchImageURL(java.lang.String swatchImageURL)
The location of the color swatch image file
|
void |
setSwatchWidth(int swatchWidth)
Displayed width of the color swatch image.
|
addCloseClickHandler, addItem, addItem, addMaximizeClickHandler, addMember, addMember, addMinimizeClickHandler, addRestoreClickHandler, centerInPage, close, flash, getAnimateMinimize, getAutoCenter, getAutoSize, getBody, getBodyColor, getBodyStyle, getCanDragReposition, getCanDragResize, getCanFocusInHeaderButtons, getCloseButton, getContentLayout, getContentsType, getDefaultMinimizeHeight, getDismissOnEscape, getDismissOnOutsideClick, getFooter, getFooterHeight, getHeader, getHeaderBackground, getHeaderIcon, getHeaderLabel, getHeaderSrc, getHeaderStyle, getHiliteBodyColor, getHiliteHeaderSrc, getHiliteHeaderStyle, getIsModal, getItems, getMaximizeButton, getMaximized, getMinimizeAcceleration, getMinimizeButton, getMinimized, getMinimizeHeight, getMinimizeTime, getModalMask, getModalMaskOpacity, getModalMaskStyle, getOpacity, getResizer, getRestoreButton, getShowBody, getShowCloseButton, getShowFooter, getShowHeader, getShowHeaderBackground, getShowHeaderIcon, getShowMaximizeButton, getShowMinimizeButton, getShowModalMask, getShowResizer, getShowStatusBar, getShowTitle, getSrc, getStatus, getStatusBar, getTitle, getUseBackMask, maximize, minimize, onCloseClick, preloadImages, removeItem, restore, setAnimateMinimize, setAutoCenter, setAutoSize, setBodyColor, setBodyDefaults, setBodyStyle, setCanDragReposition, setCanDragResize, setCanFocusInHeaderButtons, setContentLayout, setContentsType, setDefaultMinimizeHeight, setDefaultProperties, setDismissOnEscape, setDismissOnOutsideClick, setFooterControls, setFooterHeight, setHeaderControls, setHeaderIcon, setHeaderIcon, setHeaderIconDefaults, setHeaderIconProperties, setHeaderSrc, setHeaderStyle, setHiliteBodyColor, setHiliteHeaderSrc, setHiliteHeaderStyle, setIsModal, setKeepInParentRect, setKeepInParentRect, setLogicalStructure, setMaximized, setMinimizeAcceleration, setMinimized, setMinimizeHeight, setMinimizeTime, setModalMaskOpacity, setModalMaskStyle, setOpacity, setShowBody, setShowCloseButton, setShowFooter, setShowHeader, setShowHeaderBackground, setShowHeaderIcon, setShowMaximizeButton, setShowMinimizeButton, setShowModalMask, setShowResizer, setShowStatusBar, setShowTitle, setSrc, setStatus, setTitle, setUseBackMask, shouldDismissOnEscape
setDefaultProperties, setLogicalStructure
addMember, addMember, addMember, addMemberPostCreate, addMemberPostCreate, addMemberPreCreate, addMemberPreCreate, addMembers, addMembers, getAnimateMembers, getAnimateMemberTime, getCanDropComponents, getDefaultResizeBars, getDropComponent, getDropLine, getDropLineThickness, getDropPosition, getEnforcePolicy, getHPolicy, getLayoutBottomMargin, getLayoutLeftMargin, getLayoutMargin, getLayoutRightMargin, getLayoutTopMargin, getLeaveScrollbarGap, getLocateMembersBy, getLocateMembersType, getManagePercentBreadth, getMember, getMember, getMemberDefaultBreadth, getMemberNumber, getMemberNumber, getMemberOffset, getMemberOverlap, getMembers, getMembersMargin, getMinMemberSize, getOverflow, getPaddingAsLayoutMargin, getResizeBarClass, getResizeBarSize, getReverseOrder, getShowDragPlaceHolder, getShowDropLines, getStackZIndex, getVertical, getVPolicy, hasMember, hideDropLine, hideMember, hideMember, membersChanged, onInit_Layout, onInit, reflow, reflow, reflowNow, removeMember, removeMembers, reorderMember, reorderMembers, setAlign, setAlign, setAnimateMembers, setAnimateMemberTime, setCanDropComponents, setDefaultLayoutAlign, setDefaultLayoutAlign, setDefaultProperties, setDefaultResizeBars, setDropLineProperties, setDropLineThickness, setEnforcePolicy, setHPolicy, setLayoutBottomMargin, setLayoutLeftMargin, setLayoutMargin, setLayoutRightMargin, setLayoutTopMargin, setLeaveScrollbarGap, setLocateMembersBy, setLocateMembersType, setLogicalStructure, setManagePercentBreadth, setMemberOverlap, setMembers, setMembersMargin, setMinMemberSize, setOverflow, setPaddingAsLayoutMargin, setPlaceHolderDefaults, setPlaceHolderProperties, setResizeBarClass, setResizeBarSize, setReverseOrder, setShowDragPlaceHolder, setShowDropLines, setStackZIndex, setVertical, setVisibleMember, setVPolicy, showMember, showMember
addChild, addChild, addChild, addChild, addChild, addClickHandler, addDoubleClickHandler, addDragMoveHandler, addDragRepositionMoveHandler, addDragRepositionStartHandler, addDragRepositionStopHandler, addDragResizeMoveHandler, addDragResizeStartHandler, addDragResizeStopHandler, addDragStartHandler, addDragStopHandler, addDropHandler, addDropMoveHandler, addDropOutHandler, addDropOverHandler, addFocusChangedHandler, addHoverHandler, addHoverHiddenHandler, addKeyDownHandler, addKeyPressHandler, addMouseDownHandler, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseStillDownHandler, addMouseUpHandler, addMouseWheelHandler, addMovedHandler, addParentMovedHandler, addPeer, addPeer, addPeer, addPeer, addResizedHandler, addRightMouseDownHandler, addScrolledHandler, addShowContextMenuHandler, addStyleName, addVisibilityChangedHandler, adjustForContent, animateFade, animateFade, animateFade, animateFade, animateFade, animateFade, animateFade, animateHide, animateHide, animateHide, animateMove, animateMove, animateMove, animateMove, animateRect, animateRect, animateRect, animateRect, animateResize, animateResize, animateResize, animateResize, animateScroll, animateScroll, animateScroll, animateScroll, animateScroll, animateScroll, animateShow, animateShow, animateShow, asSGWTComponent, blur, bringToFront, clear, clickMaskUp, clickMaskUp, contains, contains, containsEvent, containsFocus, containsPoint, containsPoint, deparent, depeer, disable, enable, focus, focusInNextTabElement, focusInPreviousTabElement, getAbsoluteLeft, getAbsoluteTop, getAccessKey, getAnimateAcceleration, getAnimateFadeTime, getAnimateHideAcceleration, getAnimateHideTime, getAnimateMoveAcceleration, getAnimateMoveTime, getAnimateRectAcceleration, getAnimateRectTime, getAnimateResizeAcceleration, getAnimateResizeTime, getAnimateScrollAcceleration, getAnimateScrollTime, getAnimateShowAcceleration, getAnimateShowEffect, getAnimateShowTime, getAnimateTime, getAppImgDir, getAriaRole, getAutoDraw, getAutoShowParent, getBackgroundColor, getBackgroundImage, getBackgroundPosition, getBackgroundRepeat, getBorder, getBottom, getById, getByJSObject, getByLocalId, getCanAcceptDrop, getCanDrag, getCanDragScroll, getCanDrop, getCanDropBefore, getCanFocus, getCanHover, getCanSelectText, getCanvasAutoChild, getCanvasItem, getChildren, getChildrenSnapResizeToGrid, getChildrenSnapToGrid, getClassName, getContentElement, getContents, getContextMenu, getCursor, getDataPath, getDefaultHeight, getDefaultWidth, getDestroyed, getDestroying, getDisabled, getDisabledCursor, getDoubleClickDelay, getDragAppearance, getDragIntersectStyle, getDragOpacity, getDragRepositionAppearance, getDragRepositionCursor, getDragResizeAppearance, getDragScrollDelay, getDragStartDistance, getDragTarget, getDragType, getDropTypes, getDynamicContents, getEdgeBackgroundColor, getEdgeCenterBackgroundColor, getEdgeImage, getEdgeMarginSize, getEdgeOffset, getEdgeOpacity, getEdgeShowCenter, getEdgeSize, getEventEdge, getEventEdge, getExtraSpace, getFacetId, getFormItemAutoChild, getFullDataPath, getGroupBorderCSS, getGroupLabelBackgroundColor, getGroupLabelStyleName, getGroupTitle, getHeight, getHeightAsString, getHideUsingDisplayNone, getHoverAlign, getHoverAutoDestroy, getHoverComponent, getHoverDelay, getHoverHeight, getHoverHTML, getHoverMoveWithMouse, getHoverOpacity, getHoverStyle, getHoverVAlign, getHoverWidth, getHoverWrap, getHSnapOrigin, getHSnapOrigin, getHSnapPosition, getHSnapPosition, getHtmlPosition, getImage, getImgURL, getImgURL, getInnerContentHeight, getInnerContentWidth, getInnerHeight, getInnerWidth, getIsGroup, getKeepInParentRect, getLayoutAlign, getLeft, getLeftAsString, getLocateChildrenBy, getLocateChildrenType, getLocatePeersBy, getLocatePeersType, getMargin, getMasterElement, getMatchElement, getMaxHeight, getMaxWidth, getMenuConstructor, getMinHeight, getMinWidth, getMouseStillDownDelay, getMouseStillDownInitialDelay, getNextZIndex, getNoDoubleClicks, getOffsetHeight, getOffsetWidth, getOffsetX, getOffsetY, getOuterElement, getPadding, getPageBottom, getPageLeft, getPageRect, getPageRight, getPageTop, getParentElement, getPeers, getPercentBox, getPercentSource, getPosition, getPrefix, getPrintChildrenAbsolutelyPositioned, getPrintHTML, getPrintHTML, getPrompt, getRect, getRedrawOnResize, getResizeBarTarget, getResizeFrom, getRight, getScrollbarSize, getScrollBottom, getScrollHeight, getScrollLeft, getScrollRight, getScrollTop, getScrollWidth, getShadowDepth, getShadowImage, getShadowOffset, getShadowSoftness, getShouldPrint, getShowCustomScrollbars, getShowDragShadow, getShowEdges, getShowHover, getShowHoverComponents, getShowResizeBar, getShowShadow, getSkinImgDir, getSnapAxis, getSnapEdge, getSnapHDirection, getSnapHGap, getSnapOffsetLeft, getSnapOffsetTop, getSnapOnDrop, getSnapResizeToGrid, getSnapTo, getSnapToGrid, getSnapVDirection, getSnapVGap, getStyleName, getTabIndex, getTestInstance, getTooltip, getTop, getTopAsString, getTopElement, getUseOpacityFilter, getValuesManager, getViewportHeight, getViewportWidth, getVisibility, getVisibleHeight, getVisibleWidth, getVSnapOrigin, getVSnapOrigin, getVSnapPosition, getVSnapPosition, getWidth, getWidthAsString, getZIndex, handleHover, hide, hideClickMask, hideClickMask, hideContextMenu, imgHTML, imgHTML, imgHTML, intersects, isDirty, isDisabled, isDrawn, isVisible, keyUp, layoutChildren, linkHTML, linkHTML, linkHTML, linkHTML, linkHTML, linkHTML, markForDestroy, markForRedraw, markForRedraw, moveAbove, moveBelow, moveBy, moveTo, onAttach, onDetach, parentResized, printComponents, redraw, redraw, removeChild, removeChild, removePeer, removePeer, resizeBy, resizeTo, resizeTo, scrollBy, scrollByPercent, scrollTo, scrollTo, scrollTo, scrollToBottom, scrollToLeft, scrollToPercent, scrollToRight, scrollToTop, sendToBack, setAccessKey, setAllowExternalFilters, setAnimateAcceleration, setAnimateFadeTime, setAnimateHideAcceleration, setAnimateHideTime, setAnimateMoveAcceleration, setAnimateMoveTime, setAnimateRectAcceleration, setAnimateRectTime, setAnimateResizeAcceleration, setAnimateResizeTime, setAnimateScrollAcceleration, setAnimateScrollTime, setAnimateShowAcceleration, setAnimateShowEffect, setAnimateShowTime, setAnimateTime, setAppImgDir, setAriaRole, setAriaState, setAutoChildConstructor, setAutoChildProperties, setAutoChildProperties, setAutoChildVisibility, setAutoDraw, setAutoHeight, setAutoShowParent, setAutoWidth, setBackgroundColor, setBackgroundImage, setBackgroundPosition, setBackgroundRepeat, setBorder, setBottom, setCanAcceptDrop, setCanDrag, setCanDragScroll, setCanDrop, setCanDropBefore, setCanFocus, setCanHover, setCanSelectText, setCanvasItem, setChildren, setChildrenSnapResizeToGrid, setChildrenSnapToGrid, setContents, setContextMenu, setCursor, setDataPath, setDefaultHeight, setDefaultProperties, setDefaultWidth, setDisabled, setDisabledCursor, setDoubleClickDelay, setDragAppearance, setDragIntersectStyle, setDragOpacity, setDragRepositionAppearance, setDragRepositionCursor, setDragResizeAppearance, setDragScrollDelay, setDragStartDistance, setDragTarget, setDragType, setDropTypes, setDynamicContents, setEdgeBackgroundColor, setEdgeCenterBackgroundColor, setEdgeImage, setEdgeMarginSize, setEdgeOffset, setEdgeOpacity, setEdgeShowCenter, setEdgeSize, setExtraSpace, setFacetId, setGroupBorderCSS, setGroupLabelBackgroundColor, setGroupLabelStyleName, setGroupTitle, setHeight, setHeight, setHeight100, setHideUsingDisplayNone, setHoverAlign, setHoverAutoDestroy, setHoverDelay, setHoverHeight, setHoverMoveWithMouse, setHoverOpacity, setHoverStyle, setHoverVAlign, setHoverWidth, setHoverWrap, setHtmlPosition, setImage, setImage, setIsGroup, setKeepInParentRect, setLayoutAlign, setLayoutAlign, setLeft, setLeft, setLocateChildrenBy, setLocateChildrenType, setLocatePeersBy, setLocatePeersType, setLogicalStructure, setMargin, setMatchElement, setMaxHeight, setMaxWidth, setMenuConstructor, setMinHeight, setMinWidth, setMouseStillDownDelay, setMouseStillDownInitialDelay, setNeverUseFilters, setNoDoubleClicks, setPadding, setPageLeft, setPageTop, setParentElement, setPeers, setPercentBox, setPercentSource, setPosition, setPrefix, setPrintChildrenAbsolutelyPositioned, setPrompt, setRect, setRect, setRedrawOnResize, setResizeBarTarget, setResizeFrom, setResizeFrom, setRight, setScrollbarConstructor, setScrollbarSize, setShadowDepth, setShadowImage, setShadowOffset, setShadowSoftness, setShouldPrint, setShowCustomScrollbars, setShowDragShadow, setShowEdges, setShowHover, setShowHoverComponents, setShowResizeBar, setShowShadow, setSkinImgDir, setSmoothFade, setSnapAxis, setSnapEdge, setSnapHDirection, setSnapHGap, setSnapOffsetLeft, setSnapOffsetTop, setSnapOnDrop, setSnapResizeToGrid, setSnapTo, setSnapToGrid, setSnapVDirection, setSnapVGap, setStyleName, setTabIndex, setTooltip, setTop, setTop, setUseOpacityFilter, setValuesManager, setVisibility, setVisible, setWidth, setWidth, setWidth100, setZIndex, shouldDragScroll, show, showClickMask, showNextTo, showNextTo, showNextTo, showNextTo, showPrintPreview, showPrintPreview, showPrintPreview, showPrintPreview, showRecursively, updateHover, updateHover, updateShadow, visibleAtPoint, willAcceptDrop
addDrawHandler, destroy, doAddHandler, doInit, doOnRender, draw, equals, error, errorIfNotCreated, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDateArray, getAttributeAsDouble, getAttributeAsElement, getAttributeAsFloat, getAttributeAsFloatArray, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsMap, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getConfig, getDOM, getElement, getElement, getHandlerCount, getID, getInnerHTML, getJsObj, getOrCreateJsObj, getRef, getScClassName, hashCode, initNativeObject, internalSetID, internalSetID, isConfigOnly, isCreated, onBind, onDestroy, onDraw, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setConfig, setConfigOnly, setDragTracker, setElement, setHtmlElement, setID, setLogicalStructure, setNullProperty, setPosition, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setScClassName, toString
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getStyleElement, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, unsinkEvents
public ColorPicker()
public ColorPicker(com.google.gwt.core.client.JavaScriptObject jsObj)
public static ColorPicker getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public void setJavaScriptObject(com.google.gwt.core.client.JavaScriptObject jsObj)
setJavaScriptObject
in class Window
public static void changeAutoChildDefaults(java.lang.String autoChildName, Canvas defaults)
autoChildName
.autoChildName
- name of an AutoChild to customize the defaults for.defaults
- Canvas defaults to apply. These defaults override any existing properties
without destroying or wiping out non-overridden properties.AutoChildUsage
public static void changeAutoChildDefaults(java.lang.String autoChildName, FormItem defaults)
autoChildName
.autoChildName
- name of an AutoChild to customize the defaults for.defaults
- FormItem defaults to apply. These defaults override any existing properties
without destroying or wiping out non-overridden properties.AutoChildUsage
protected com.google.gwt.core.client.JavaScriptObject create()
public void setAllowComplexMode(java.lang.Boolean allowComplexMode) throws java.lang.IllegalStateException
allowComplexMode
- allowComplexMode Default value is truejava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.Boolean getAllowComplexMode()
public void setAutoCenterOnShow(java.lang.Boolean autoCenterOnShow) throws java.lang.IllegalStateException
autoPosition
is false, this property controls
whether to automatically center the colorPicker every time it is reshown with the show() method.autoCenterOnShow
- autoCenterOnShow Default value is truejava.lang.IllegalStateException
- this property cannot be changed after the component has been createdsetAutoPosition(java.lang.Boolean)
public java.lang.Boolean getAutoCenterOnShow()
autoPosition
is false, this property controls
whether to automatically center the colorPicker every time it is reshown with the show() method.getAutoPosition()
public void setAutoPosition(java.lang.Boolean autoPosition) throws java.lang.IllegalStateException
autoCenterOnShow
, it either reappears wherever it was last shown after hide/show(), or centered regardless of where it
was last shown.autoPosition
- autoPosition Default value is truejava.lang.IllegalStateException
- this property cannot be changed after the component has been createdsetAutoCenterOnShow(java.lang.Boolean)
public java.lang.Boolean getAutoPosition()
autoCenterOnShow
, it either reappears wherever it was last shown after hide/show(), or centered regardless of where it
was last shown.getAutoCenterOnShow()
public void setBasicColorLabel(java.lang.String basicColorLabel) throws java.lang.IllegalStateException
basicColorLabel
- . See String
. Default value is "Basic Colors:"java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getBasicColorLabel()
String
public void setBlueFieldPrompt(java.lang.String blueFieldPrompt) throws java.lang.IllegalStateException
blueFieldPrompt
- . See String
. Default value is "The Blue component of the selected color"java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getBlueFieldPrompt()
String
public void setBlueFieldTitle(java.lang.String blueFieldTitle) throws java.lang.IllegalStateException
blueFieldTitle
- . See String
. Default value is "Blue"java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getBlueFieldTitle()
String
public IButton getCancelButton() throws java.lang.IllegalStateException
For an overview of how to use and configure AutoChildren, see Using AutoChildren
.
java.lang.IllegalStateException
- if this widget has not yet been rendered.public void setCancelButtonTitle(java.lang.String cancelButtonTitle) throws java.lang.IllegalStateException
cancelButtonTitle
- . See String
. Default value is "Cancel"java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getCancelButtonTitle()
String
public void setColorButtonBaseStyle(java.lang.String colorButtonBaseStyle) throws java.lang.IllegalStateException
colorButtonBaseStyle
- . See String
. Default value is "ColorChooserCell"java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getColorButtonBaseStyle()
String
public void setColorButtonSize(int colorButtonSize) throws java.lang.IllegalStateException
colorButtonSize
- colorButtonSize Default value is 20java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic int getColorButtonSize()
public void setCrosshairImageURL(java.lang.String crosshairImageURL) throws java.lang.IllegalStateException
crosshairImageURL
- . See String
. Default value is "[SKIN]ColorPicker/crosshair.png"java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getCrosshairImageURL()
String
public void setDefaultColor(java.lang.String defaultColor) throws java.lang.IllegalStateException
defaultColor
- . See String
. Default value is #808080java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getDefaultColor()
String
public void setDefaultOpacity(int defaultOpacity) throws java.lang.IllegalStateException
defaultOpacity
- defaultOpacity Default value is 100java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic int getDefaultOpacity()
public void setDefaultPickMode(java.lang.String defaultPickMode) throws java.lang.IllegalStateException
defaultPickMode
- . See String
. Default value is "simple"java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getDefaultPickMode()
String
public void setGreenFieldPrompt(java.lang.String greenFieldPrompt) throws java.lang.IllegalStateException
greenFieldPrompt
- . See String
. Default value is "The Green component of the selected color"java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getGreenFieldPrompt()
String
public void setGreenFieldTitle(java.lang.String greenFieldTitle) throws java.lang.IllegalStateException
greenFieldTitle
- . See String
. Default value is "Green"java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getGreenFieldTitle()
String
public void setHtmlFieldPrompt(java.lang.String htmlFieldPrompt) throws java.lang.IllegalStateException
htmlFieldPrompt
- . See String
. Default value is "The selected color's HTML coding"java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getHtmlFieldPrompt()
String
public void setHtmlFieldTitle(java.lang.String htmlFieldTitle) throws java.lang.IllegalStateException
htmlFieldTitle
- . See String
. Default value is "HTML"java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getHtmlFieldTitle()
String
public void setHueFieldPrompt(java.lang.String hueFieldPrompt) throws java.lang.IllegalStateException
hueFieldPrompt
- . See String
. Default value is "The Hue (base tone) of the selected color"java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getHueFieldPrompt()
String
public void setHueFieldTitle(java.lang.String hueFieldTitle) throws java.lang.IllegalStateException
hueFieldTitle
- . See String
. Default value is "Hue"java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getHueFieldTitle()
String
public void setLessButtonTitle(java.lang.String lessButtonTitle) throws java.lang.IllegalStateException
lessButtonTitle
- . See String
. Default value is "<< Less"java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getLessButtonTitle()
String
public void setLumFieldPrompt(java.lang.String lumFieldPrompt) throws java.lang.IllegalStateException
lumFieldPrompt
- . See String
. Default value is "The Luminosity (brightness) of the selected color"java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getLumFieldPrompt()
String
public void setLumFieldTitle(java.lang.String lumFieldTitle) throws java.lang.IllegalStateException
lumFieldTitle
- . See String
. Default value is "Luminosity"java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getLumFieldTitle()
String
public void setLumWidth(int lumWidth) throws java.lang.IllegalStateException
lumWidth
- lumWidth Default value is 15java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic int getLumWidth()
public IButton getModeToggleButton() throws java.lang.IllegalStateException
For an overview of how to use and configure AutoChildren, see Using AutoChildren
.
java.lang.IllegalStateException
- if this widget has not yet been rendered.public void setMoreButtonTitle(java.lang.String moreButtonTitle) throws java.lang.IllegalStateException
moreButtonTitle
- . See String
. Default value is "More >>"java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getMoreButtonTitle()
String
public IButton getOkButton() throws java.lang.IllegalStateException
For an overview of how to use and configure AutoChildren, see Using AutoChildren
.
java.lang.IllegalStateException
- if this widget has not yet been rendered.public void setOkButtonTitle(java.lang.String okButtonTitle) throws java.lang.IllegalStateException
okButtonTitle
- . See String
. Default value is "OK"java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getOkButtonTitle()
String
public void setOpacitySliderLabel(java.lang.String opacitySliderLabel) throws java.lang.IllegalStateException
supportsTransparency
is false.opacitySliderLabel
- . See String
. Default value is "Opacity"java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getOpacitySliderLabel()
supportsTransparency
is false.String
public void setOpacityText(java.lang.String opacityText) throws java.lang.IllegalStateException
supportsTransparency
is false.opacityText
- . See String
. Default value is "Lorem ipsum dolor sit amet, consectetuer adipiscing elit."java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getOpacityText()
supportsTransparency
is false.String
public void setRedFieldPrompt(java.lang.String redFieldPrompt) throws java.lang.IllegalStateException
redFieldPrompt
- . See String
. Default value is "The Red component of the selected color"java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getRedFieldPrompt()
String
public void setRedFieldTitle(java.lang.String redFieldTitle) throws java.lang.IllegalStateException
redFieldTitle
- . See String
. Default value is "Red"java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getRedFieldTitle()
String
public void setSatFieldPrompt(java.lang.String satFieldPrompt) throws java.lang.IllegalStateException
satFieldPrompt
- . See String
. Default value is "The Saturation (color purity) of the selected color"java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getSatFieldPrompt()
String
public void setSatFieldTitle(java.lang.String satFieldTitle) throws java.lang.IllegalStateException
satFieldTitle
- . See String
. Default value is "Sat"java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getSatFieldTitle()
String
public void setSelectedColorLabel(java.lang.String selectedColorLabel) throws java.lang.IllegalStateException
selectedColorLabel
- . See String
. Default value is "Selected Color"java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getSelectedColorLabel()
String
public void setSupportsTransparency(java.lang.Boolean supportsTransparency) throws java.lang.IllegalStateException
supportsTransparency
flag.supportsTransparency
- Set to true to enable transparency/opacity. Default value is truejava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.Boolean getSupportsTransparency()
public void setSwatchHeight(int swatchHeight) throws java.lang.IllegalStateException
swatchHeight
- swatchHeight Default value is 170java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic int getSwatchHeight()
public void setSwatchImageURL(java.lang.String swatchImageURL) throws java.lang.IllegalStateException
swatchImageURL
- . See String
. Default value is "[SKIN]ColorPicker/spectrum.png"java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getSwatchImageURL()
String
public void setSwatchWidth(int swatchWidth) throws java.lang.IllegalStateException
swatchWidth
- swatchWidth Default value is 170java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic int getSwatchWidth()
public void colorChanged()
getBlue()
or getLuminosity()
)to obtain current state as required.ColorSelectedEvent
public com.google.gwt.event.shared.HandlerRegistration addColorSelectedHandler(ColorSelectedHandler handler)
Override this method to be notified when the user selects a color either by clicking a basic color box in simple mode, or by clicking the OK button in complex mode. It is not intended that client code call this method.
addColorSelectedHandler
in interface HasColorSelectedHandlers
handler
- the colorSelected handlerHandlerRegistration
used to remove this handlerpublic int getBlue()
setBlue(int)
public int getGreen()
setGreen(int)
public java.lang.String getHtmlColor()
setHtmlColor(java.lang.String)
public int getHue()
setHue(int)
public int getLuminosity()
setLuminosity(int)
public int getRed()
setRed(int)
public int getSaturation()
setSaturation(int)
public void setBlue(int newValue)
newValue
- An integer between 0 and 255getBlue()
public void setGreen(int newValue)
newValue
- An integer between 0 and 255getGreen()
public void setHtmlColor(java.lang.String newValue)
newValue
- A string in HTML color representation format (#RRGGBB)getHtmlColor()
public void setHue(int newValue)
newValue
- An integer between 0 and 239getHue()
public void setLuminosity(int newValue)
newValue
- An integer between 0 and 240getLuminosity()
public void setOpacity(int newValue)
newValue
- An integer between 0 and 100Window.getOpacity()
public void setRed(int newValue)
newValue
- An integer between 0 and 255getRed()
public void setSaturation(int newValue)
newValue
- An integer between 0 and 240getSaturation()
public static void setDefaultProperties(ColorPicker colorPickerProperties)
Note: This method is intended for setting default attributes only and will effect all instances of the underlying class (including those automatically generated in JavaScript). This method should not be used to apply standard EventHandlers or override methods for a class - use a custom subclass instead.
colorPickerProperties
- properties that should be used as new defaults when instances of this class are createdpublic com.smartgwt.logicalstructure.core.LogicalStructureObject setLogicalStructure(com.smartgwt.logicalstructure.widgets.form.ColorPickerLogicalStructure s)
public com.smartgwt.logicalstructure.core.LogicalStructureObject getLogicalStructure()
getLogicalStructure
in interface LogicalStructure
getLogicalStructure
in class Window