org.odlabs.wiquery.ui.sortable
Class SortableContainment

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

public class SortableContainment
extends Object
implements IComplexOption

$Id: SortableContainment.java

Bean for the containment option for the Sortable behavior

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

Nested Class Summary
static class SortableContainment.ElementEnum
           
 
Constructor Summary
SortableContainment(LiteralOption selector)
          Constructor
SortableContainment(SortableContainment.ElementEnum elementEnumParam)
          Constructor
SortableContainment(String objectParam)
          Constructor
 
Method Summary
 SortableContainment.ElementEnum getElementEnumParamParam()
           
 String getElementOrSelectorParam()
           
 CharSequence getJavascriptOption()
          Method retrieving the javascript representation of this complex option
 LiteralOption getSelector()
           
 void setElementEnumParam(SortableContainment.ElementEnum elementEnumParam)
          Set's the literal parameter
 void setElementOrSelectorParam(String objectParam)
          Set's the object (Element or Selector) parameter
 void setSelector(LiteralOption selector)
          Set's the Selector
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SortableContainment

public SortableContainment(SortableContainment.ElementEnum elementEnumParam)
Constructor

Parameters:
elementEnumParam - elementEnum parameter

SortableContainment

public SortableContainment(String objectParam)
Constructor

Parameters:
objectParam - object parameter (Element or Selector)

SortableContainment

public SortableContainment(LiteralOption selector)
Constructor

Parameters:
selector - Selector
Method Detail

getElementEnumParamParam

public SortableContainment.ElementEnum getElementEnumParamParam()
Returns:
the elementEnumParam

getElementOrSelectorParam

public String getElementOrSelectorParam()
Returns:
the objectParam

getSelector

public LiteralOption getSelector()
Returns:
the Selector

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

setElementEnumParam

public void setElementEnumParam(SortableContainment.ElementEnum elementEnumParam)
Set's the literal parameter

Parameters:
literalParam - the literal to set

setElementOrSelectorParam

public void setElementOrSelectorParam(String objectParam)
Set's the object (Element or Selector) parameter

Parameters:
objectParam - the literal to set

setSelector

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

Parameters:
selector - Selector


Copyright © 2012. All Rights Reserved.