public final class CmsSliderMap extends com.google.gwt.user.client.ui.HTML
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
Constructor and Description |
---|
CmsSliderMap(CmsColorSelector parent)
Initialize the SliderMap -- default mode is Saturation.
|
Modifier and Type | Method and Description |
---|---|
void |
onAttach() |
void |
onBrowserEvent(com.google.gwt.user.client.Event event)
Fired whenever a browser event is received.
|
void |
onLoad() |
void |
onUnload() |
void |
setColorSelectMode(int mode)
Sets the color selection mode.
|
void |
setOverlayColor(java.lang.String color)
Sets the overlay layer's color.
|
void |
setOverlayOpacity(int alpha)
Set overlay layer's opacity.
|
void |
setSliderPosition(float x,
float y)
Sets the slider's position along the x-axis and y-axis.
|
void |
setUnderlayColor(java.lang.String color)
Sets the underlay's layer color.
|
getHTML, getTextOrHtml, setHTML, setHTML, setHTML, setHTML, wrap
addClickHandler, addClickListener, addDoubleClickHandler, addDragEndHandler, addDragEnterHandler, addDragHandler, addDragLeaveHandler, addDragOverHandler, addDragStartHandler, addDropHandler, addGestureChangeHandler, addGestureEndHandler, addGestureStartHandler, addMouseDownHandler, addMouseListener, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseUpHandler, addMouseWheelHandler, addMouseWheelListener, addTouchCancelHandler, addTouchEndHandler, addTouchMoveHandler, addTouchStartHandler, asEditor, getDirection, getText, getTextDirection, removeClickListener, removeMouseListener, removeMouseWheelListener, setDirection, setText, setText
getAutoHorizontalAlignment, getDirectionEstimator, getHorizontalAlignment, getWordWrap, setAutoHorizontalAlignment, setDirectionEstimator, setDirectionEstimator, setHorizontalAlignment, setWordWrap, updateHorizontalAlignment
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onDetach, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public CmsSliderMap(CmsColorSelector parent)
parent
- public void onAttach()
onAttach
in class com.google.gwt.user.client.ui.Widget
Widget.onAttach()
public void onBrowserEvent(com.google.gwt.user.client.Event event)
onBrowserEvent
in interface com.google.gwt.user.client.EventListener
onBrowserEvent
in class com.google.gwt.user.client.ui.Widget
event
- Event to processpublic void onLoad()
onLoad
in class com.google.gwt.user.client.ui.Widget
Widget.onLoad()
public void onUnload()
onUnload
in class com.google.gwt.user.client.ui.Widget
Widget.onUnload()
public void setColorSelectMode(int mode)
mode
- Saturationpublic void setOverlayColor(java.lang.String color)
color
- Hexadecimal representation of RGB.public void setOverlayOpacity(int alpha)
alpha
- An opacity percentage, between 100 (fully opaque) and 0 (invisible).public void setSliderPosition(float x, float y)
x
- position along the x-axis [0-256]y
- position along the y-axis [0-256]public void setUnderlayColor(java.lang.String color)
color
- Hexadecimal representation of RGB.