org.odlabs.wiquery.ui.position
Class PositionOffset

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

public class PositionOffset
extends Object
implements IComplexOption

$Id$

Bean for the offset option for the Position behavior

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

Constructor Summary
PositionOffset(int offsetLeft)
          Constructor
PositionOffset(int offsetLeft, int offsetTop)
          Constructor
 
Method Summary
 CharSequence getJavascriptOption()
          Method retrieving the javascript representation of this complex option
 int getOffsetLeft()
           
 int getOffsetTop()
           
 void setOffsetLeft(int offsetLeft)
          Set the offset left
 void setOffsetTop(int offsetTop)
          Set the offset top
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PositionOffset

public PositionOffset(int offsetLeft)
Constructor

Parameters:
offsetLeft - offset Left

PositionOffset

public PositionOffset(int offsetLeft,
                      int offsetTop)
Constructor

Parameters:
offsetLeft - offset Left
offsetTop - Offset top
Method Detail

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

getOffsetLeft

public int getOffsetLeft()
Returns:
the offset left

getOffsetTop

public int getOffsetTop()
Returns:
the offset top

setOffsetLeft

public void setOffsetLeft(int offsetLeft)
Set the offset left

Parameters:
offsetLeft -

setOffsetTop

public void setOffsetTop(int offsetTop)
Set the offset top

Parameters:
offserTop -


Copyright © 2012. All Rights Reserved.