com.vinay.ui.vinui.fw.core
Class TwoColumnLayout

java.lang.Object
  extended bycom.vinay.ui.vinui.fw.core.TwoColumnLayout
All Implemented Interfaces:
Layout

public class TwoColumnLayout
extends java.lang.Object
implements Layout

A layout in which divides the page into two columns. The width of the left column can be specified.

Author:
Vinay Nath

Field Summary
static int LEFT
           
static int RIGHT
           
 
Constructor Summary
TwoColumnLayout()
           
 
Method Summary
 void addControl(Control control, int pos)
           
 java.lang.String getLeftWidth()
           
 java.lang.String layout(Page page)
           
 void removeControl(Control control)
           
 void setLeftWidth(java.lang.String leftWidth)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LEFT

public static final int LEFT
See Also:
Constant Field Values

RIGHT

public static final int RIGHT
See Also:
Constant Field Values
Constructor Detail

TwoColumnLayout

public TwoColumnLayout()
Method Detail

addControl

public void addControl(Control control,
                       int pos)
Specified by:
addControl in interface Layout

removeControl

public void removeControl(Control control)
Specified by:
removeControl in interface Layout

layout

public java.lang.String layout(Page page)
                        throws VinUIException
Specified by:
layout in interface Layout
Throws:
VinUIException

getLeftWidth

public java.lang.String getLeftWidth()
Returns:
Returns the leftWidth as percentage of the page

setLeftWidth

public void setLeftWidth(java.lang.String leftWidth)
Parameters:
leftWidth - The leftWidth as percentage of page to set. usage : setLeftWidth("30")