public class DraggableContainment extends Object implements IComplexOption
Bean for the containment option for the Draggable behavior
| Modifier and Type | Class and Description |
|---|---|
static class |
DraggableContainment.ContainmentEnum
Enumeration of possible values for the containment option
|
| Modifier and Type | Field and Description |
|---|---|
static DraggableContainment |
DOCUMENT
Containment to document
|
static DraggableContainment |
PARENT
Containment to parent
|
static DraggableContainment |
WINDOW
Containment to window
|
| Constructor and Description |
|---|
DraggableContainment(DraggableContainment.ContainmentEnum containmentEnumParam)
Constructor
|
DraggableContainment(Integer x1,
Integer y1,
Integer x2,
Integer y2)
Constructor
|
DraggableContainment(LiteralOption selector)
Constructor
|
DraggableContainment(String stringParam)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
ICollectionItemOptions |
getArrayParam() |
DraggableContainment.ContainmentEnum |
getContainmentEnumParam() |
CharSequence |
getJavascriptOption()
Method retrieving the javascript representation of this complex option
|
LiteralOption |
getSelector() |
String |
getStringParam() |
void |
setArrayParam(Integer x1,
Integer y1,
Integer x2,
Integer y2)
Set's the array parameter
|
void |
setContainmentEnumParam(DraggableContainment.ContainmentEnum containmentEnumParam)
Set's the ContainmentEnum parameter
|
void |
setSelector(LiteralOption selector)
Set's the Selector
|
void |
setStringParam(String stringParam)
Set's the Selector or Element parameter
|
public static final DraggableContainment PARENT
public static final DraggableContainment DOCUMENT
public static final DraggableContainment WINDOW
public DraggableContainment(DraggableContainment.ContainmentEnum containmentEnumParam)
containmentEnumParam - ContainmentEnum parameterpublic DraggableContainment(Integer x1, Integer y1, Integer x2, Integer y2)
x1 - First x coordinatey1 - First y coordinatex2 - Second x coordinatey2 - Second y coordinatepublic DraggableContainment(String stringParam)
stringParam - Selector or element parameterpublic DraggableContainment(LiteralOption selector)
selector - Selectorpublic ICollectionItemOptions getArrayParam()
public DraggableContainment.ContainmentEnum getContainmentEnumParam()
public LiteralOption getSelector()
public String getStringParam()
public CharSequence getJavascriptOption()
IComplexOptiongetJavascriptOption in interface IComplexOptionpublic void setArrayParam(Integer x1, Integer y1, Integer x2, Integer y2)
x1 - First x coordinatey1 - First y coordinatex2 - Second x coordinatey2 - Second y coordinatepublic void setContainmentEnumParam(DraggableContainment.ContainmentEnum containmentEnumParam)
containmentEnumParam - the ContainmentEnum to setpublic void setSelector(LiteralOption selector)
selector - Selectorpublic void setStringParam(String stringParam)
stringParam - Selector or Element paramCopyright © 2009-2012. All Rights Reserved.