org.odlabs.wiquery.ui.draggable
Class DraggableContainment

java.lang.Object
  extended by org.odlabs.wiquery.ui.draggable.DraggableContainment
All Implemented Interfaces:
Serializable, IComplexOption

public class DraggableContainment
extends Object
implements IComplexOption

$Id: DraggableContainment.java

Bean for the containment option for the Draggable behavior

Since:
1.0
Author:
Julien Roche
See Also:
Serialized Form

Nested Class Summary
static class DraggableContainment.ContainmentEnum
          Enumeration of possible values for the containment option
 
Field Summary
static DraggableContainment DOCUMENT
          Containment to document
static DraggableContainment PARENT
          Containment to parent
static DraggableContainment WINDOW
          Containment to window
 
Constructor Summary
DraggableContainment(DraggableContainment.ContainmentEnum containmentEnumParam)
          Constructor
DraggableContainment(Integer x1, Integer y1, Integer x2, Integer y2)
          Constructor
DraggableContainment(LiteralOption selector)
          Constructor
DraggableContainment(String stringParam)
          Constructor
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARENT

public static final DraggableContainment PARENT
Containment to parent


DOCUMENT

public static final DraggableContainment DOCUMENT
Containment to document


WINDOW

public static final DraggableContainment WINDOW
Containment to window

Constructor Detail

DraggableContainment

public DraggableContainment(DraggableContainment.ContainmentEnum containmentEnumParam)
Constructor

Parameters:
containmentEnumParam - ContainmentEnum parameter

DraggableContainment

public DraggableContainment(Integer x1,
                            Integer y1,
                            Integer x2,
                            Integer y2)
Constructor

Parameters:
x1 - First x coordinate
y1 - First y coordinate
x2 - Second x coordinate
y2 - Second y coordinate

DraggableContainment

public DraggableContainment(String stringParam)
Constructor

Parameters:
stringParam - Selector or element parameter

DraggableContainment

public DraggableContainment(LiteralOption selector)
Constructor

Parameters:
selector - Selector
Method Detail

getArrayParam

public ICollectionItemOptions getArrayParam()
Returns:
the arrayParam

getContainmentEnumParam

public DraggableContainment.ContainmentEnum getContainmentEnumParam()
Returns:
the containmentEnumParam

getSelector

public LiteralOption getSelector()
Returns:
the Selector

getStringParam

public String getStringParam()
Returns:
the Selector or Element param

getJavascriptOption

public CharSequence getJavascriptOption()
Description copied from interface: IComplexOption
Method retrieving the javascript representation of this complex option

Specified by:
getJavascriptOption in interface IComplexOption
Returns:
the javascript

setArrayParam

public void setArrayParam(Integer x1,
                          Integer y1,
                          Integer x2,
                          Integer y2)
Set's the array parameter

Parameters:
x1 - First x coordinate
y1 - First y coordinate
x2 - Second x coordinate
y2 - Second y coordinate

setContainmentEnumParam

public void setContainmentEnumParam(DraggableContainment.ContainmentEnum containmentEnumParam)
Set's the ContainmentEnum parameter

Parameters:
containmentEnumParam - the ContainmentEnum to set

setSelector

public void setSelector(LiteralOption selector)
Set's the Selector

Parameters:
selector - Selector

setStringParam

public void setStringParam(String stringParam)
Set's the Selector or Element parameter

Parameters:
stringParam - Selector or Element param


Copyright © 2012. All Rights Reserved.