| java.lang.Object net.xoetrope.xui.XLayoutHelper
XLayoutHelper | public class XLayoutHelper (Code) | | A helper class for working with layout managers. This class provides mappings
between the names of layout styles and constraints and the corresponding
Java constants.
Copyright (c) Xoetrope Ltd., 2002-2003
License: see license.txt
$Revision: 1.8 $
|
Field Summary | |
final public static int | BOTTOM | final public static int | LEFT | final public static int | RIGHT | final public static int | TOP |
BOTTOM | final public static int BOTTOM(Code) | | |
LEFT | final public static int LEFT(Code) | | |
RIGHT | final public static int RIGHT(Code) | | |
TOP | final public static int TOP(Code) | | |
addLayout | public static LayoutManager addLayout(Container cont, int type)(Code) | | Sets a LayoutManager for the panel
Parameters: cont - the container whose layout manager is being set or null to set the parent panel's layout manager Parameters: type - the layout manager as defined in the XLayoutHelper class Parameters: style - the style containing the layout manager attributes |
addLayout | public static LayoutManager addLayout(Container cont, int type, Hashtable attribs)(Code) | | Sets a LayoutManager for the panel
Parameters: cont - the container whose layout manager is being set or null to set the parent panel's layout manager Parameters: type - the layout manager as defined in the XLayoutHelper class Parameters: style - the style containing the layout manager attributes |
getAlignment | public int getAlignment(String name)(Code) | | Gets a constraint object corresponding to a constraint name
Parameters: name - the constraint name the constraint object |
getConstraint | public Object getConstraint(String name)(Code) | | Gets a constraint object corresponding to a constraint name
Parameters: name - the constraint name the constraint object |
getIntAttrib | protected static int getIntAttrib(Hashtable attribs, String attrib)(Code) | | Get an attribute as an int value
Parameters: attribs - the attribs hashtable Parameters: attrib - the attribute key the integer value |
getLayoutType | public static int getLayoutType(String ls)(Code) | | Get the layout type enumerated in XPage
Parameters: ls - the layout style the type id |
|
|