com.vinay.ui.vinui.fw.core
Class TwoColumnLayout
java.lang.Object
com.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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LEFT
public static final int LEFT
- See Also:
- Constant Field Values
RIGHT
public static final int RIGHT
- See Also:
- Constant Field Values
TwoColumnLayout
public TwoColumnLayout()
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")