public final class Drag extends NativeObjectContainer
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_ANIMATION_DURATION
Default animation duration, 0.
|
static String |
DEFAULT_BACKGROUND_COLOR
Default background color, "rgba(225,225,225,0.3)".
|
static String |
DEFAULT_BORDER_COLOR
Default border color, "rgb(225,225,225)".
|
static int |
DEFAULT_BORDER_WIDTH
Default border width, 0.
|
Modifier and Type | Method and Description |
---|---|
int |
getAnimationDuration()
Returns the number of milliseconds an animation takes.
|
IsColor |
getBackgroundColor()
Returns the fill color during dragging.
|
String |
getBackgroundColorAsString()
Returns the fill color during dragging.
|
IsColor |
getBorderColor()
Returns the color of the border during dragging.
|
String |
getBorderColorAsString()
Returns the color of the border during dragging.
|
int |
getBorderWidth()
Returns the width of the border in pixels.
|
void |
setAnimationDuration(int milliseconds)
Sets the number of milliseconds an animation takes.
|
void |
setBackgroundColor(IsColor backgroundColor)
Sets the fill color during dragging.
|
void |
setBackgroundColor(String backgroundColor)
Sets the fill color during dragging.
|
void |
setBorderColor(IsColor borderColor)
Sets the color of the border during dragging.
|
void |
setBorderColor(String borderColor)
Sets the color of the border during dragging.
|
void |
setBorderWidth(int borderWidth)
Sets the width of the border in pixels.
|
checkValue, empty, getArrayValue, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, keys, remove, remove, removeIfExists, setArrayValue, setArrayValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
public static final String DEFAULT_BACKGROUND_COLOR
public static final String DEFAULT_BORDER_COLOR
public static final int DEFAULT_BORDER_WIDTH
public static final int DEFAULT_ANIMATION_DURATION
public void setBackgroundColor(IsColor backgroundColor)
backgroundColor
- the fill color during draggingpublic void setBackgroundColor(String backgroundColor)
backgroundColor
- the fill color during draggingpublic String getBackgroundColorAsString()
public IsColor getBackgroundColor()
public void setBorderColor(IsColor borderColor)
borderColor
- the color of the border during draggingpublic void setBorderColor(String borderColor)
borderColor
- the color of the border during draggingpublic String getBorderColorAsString()
public IsColor getBorderColor()
public void setBorderWidth(int borderWidth)
borderWidth
- the width of the border in pixels.public int getBorderWidth()
public void setAnimationDuration(int milliseconds)
milliseconds
- the number of milliseconds an animation takes.public int getAnimationDuration()