|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LayoutHelper
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: 2.21 $
Field Summary | |
---|---|
static int |
BOTTOM
|
static int |
LEFT
|
static int |
RIGHT
|
static int |
TOP
|
Method Summary | |
---|---|
java.lang.Object |
addLayout(java.lang.Object cont,
int type)
Sets a LayoutManager for the panel |
java.lang.Object |
addLayout(java.lang.Object cont,
int type,
java.util.Hashtable attribs)
Sets a LayoutManager for the panel |
int |
getAlignment(java.lang.String name)
Gets a constraint object corresponding to a constraint name |
java.lang.Object |
getConstraint(java.lang.String name)
Gets a constraint object corresponding to a constraint name |
java.lang.String |
getLayoutClass(java.lang.Object layout)
Get the layout type |
int |
getLayoutType(java.lang.String ls)
Get the layout type enumerated in XPage |
boolean |
getUsesConstraints(java.lang.Object layout)
Does the layout manager use constraints for its children? |
boolean |
getUsesDimensions(java.lang.Object layout)
Does this layout manager used the absoulte dimensions? |
void |
setAttrib(java.lang.Object cont,
java.lang.Object lm,
java.lang.String attrib,
java.lang.Object value)
Set the attributes for a layout manager |
Field Detail |
---|
static final int LEFT
static final int RIGHT
static final int TOP
static final int BOTTOM
Method Detail |
---|
java.lang.Object addLayout(java.lang.Object cont, int type)
cont
- the container whose layout manager is being set or null to set the parent panel's layout managertype
- the layout manager as defined in the XLayoutHelper classjava.lang.Object addLayout(java.lang.Object cont, int type, java.util.Hashtable attribs)
cont
- the container whose layout manager is being set or null to set the parent panel's layout managertype
- the layout manager as defined in the XLayoutHelper classint getAlignment(java.lang.String name)
name
- the constraint name
int getLayoutType(java.lang.String ls)
ls
- the layout style
java.lang.String getLayoutClass(java.lang.Object layout)
layout
- the layout manager instance
boolean getUsesConstraints(java.lang.Object layout)
layout
- the layout manager instance
boolean getUsesDimensions(java.lang.Object layout)
layout
- the layout manager instance
java.lang.Object getConstraint(java.lang.String name)
name
- the quoted constraint name e.g. "WEST"
void setAttrib(java.lang.Object cont, java.lang.Object lm, java.lang.String attrib, java.lang.Object value)
cont
- the containerlm
- the layout managerattrib
- the attribute namevalue
- the value of the attribute
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |