|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectFocusPanel
com.vaadin.client.ui.colorpicker.VColorPickerGradient
public class VColorPickerGradient
Client side implementation for ColorPickerGradient.
| Field Summary | |
|---|---|
static java.lang.String |
CLASSNAME
Set the CSS class name to allow styling. |
static java.lang.String |
CLASSNAME_BACKGROUND
|
static java.lang.String |
CLASSNAME_CLICKLAYER
|
static java.lang.String |
CLASSNAME_CONTAINER
|
static java.lang.String |
CLASSNAME_FOREGROUND
|
static java.lang.String |
CLASSNAME_HIGHERBOX
|
static java.lang.String |
CLASSNAME_LOWERBOX
|
| Constructor Summary | |
|---|---|
VColorPickerGradient()
Instantiates the client side component for a color picker gradient. |
|
| Method Summary | |
|---|---|
protected int |
getCursorX()
Returns the latest x-coordinate for pressed-down mouse cursor. |
protected int |
getCursorY()
Returns the latest y-coordinate for pressed-down mouse cursor. |
com.google.gwt.user.client.Element |
getSubPartElement(java.lang.String subPart)
Locates an element inside a component using the identifier provided in subPart. |
java.lang.String |
getSubPartName(com.google.gwt.user.client.Element subElement)
Provides an identifier that identifies the element within the component. |
void |
onMouseDown(MouseDownEvent event)
|
void |
onMouseMove(MouseMoveEvent event)
|
void |
onMouseUp(MouseUpEvent event)
|
protected void |
setBGColor(java.lang.String bgColor)
Sets the given css color as the background. |
void |
setCursor(int x,
int y)
Sets the latest coordinates for pressed-down mouse cursor and updates the cross elements. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CLASSNAME
public static final java.lang.String CLASSNAME_BACKGROUND
public static final java.lang.String CLASSNAME_FOREGROUND
public static final java.lang.String CLASSNAME_LOWERBOX
public static final java.lang.String CLASSNAME_HIGHERBOX
public static final java.lang.String CLASSNAME_CONTAINER
public static final java.lang.String CLASSNAME_CLICKLAYER
| Constructor Detail |
|---|
public VColorPickerGradient()
| Method Detail |
|---|
protected int getCursorX()
protected int getCursorY()
protected void setBGColor(java.lang.String bgColor)
bgColor - public void onMouseDown(MouseDownEvent event)
public void onMouseUp(MouseUpEvent event)
public void onMouseMove(MouseMoveEvent event)
public void setCursor(int x,
int y)
x - y - public com.google.gwt.user.client.Element getSubPartElement(java.lang.String subPart)
SubPartAwaresubPart. The subPart identifier is component specific and
may be any string of characters, numbers, space characters and brackets.
getSubPartElement in interface SubPartAwaresubPart - The identifier for the element inside the component
public java.lang.String getSubPartName(com.google.gwt.user.client.Element subElement)
SubPartAwaresubElement is a part of the component and must never be null.
Note!
getSubPartElement(getSubPartName(element)) == element is not
always true. A component can choose to provide a more generic
identifier for any given element if the results of all interactions with
subElement are the same as interactions with the element
identified by the return value. For example a button can return an
identifier for the root element even though a DIV inside the button was
passed as subElement because interactions with the DIV and the
root button element produce the same result.
getSubPartName in interface SubPartAwaresubElement - The element the identifier string should uniquely identify
subElement or null
if no identifier could be provided.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||