|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.structure.LayoutPropertiesHelper
public class LayoutPropertiesHelper
A Helper for persistence of layout properties.
Constructor Summary | |
---|---|
LayoutPropertiesHelper(ILayoutPropertiesAccessor layoutPropertiesAccessor)
The constructor for LayoutPropertiesHelper . |
Method Summary | |
---|---|
void |
setLayoutFilePath(String layoutFilePath)
Changes the layout file path, updating other layout properties as appropriated. |
void |
setLayoutType(int layoutType)
Sets the layout type for pages. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LayoutPropertiesHelper(ILayoutPropertiesAccessor layoutPropertiesAccessor)
LayoutPropertiesHelper
.
layoutPropertiesAccessor
- the object used to access the layout properties.Method Detail |
---|
public void setLayoutFilePath(String layoutFilePath)
The layoutFile
parameter cannot be an empty string or null
.
If it is null
the attribute is removed and the attribute layoutType is
automatically changed to PageConfig.PAGE_LAYOUT_TYPE_INHERIT
if the current value
is PageConfig.PAGE_LAYOUT_TYPE_LAYOUT_FILE
, else if it is a valid
value the attribute layoutType is automatically changed to PageConfig.PAGE_LAYOUT_TYPE_LAYOUT_FILE
.
layoutFilePath
- the path relative to the <lumisdata>/def
directory.public void setLayoutType(int layoutType)
The layout type have to be a valid type and may not be set to PageConfig.PAGE_LAYOUT_TYPE_LAYOUT_FILE
.
If want to set to it, use setLayoutFilePath(String)
and the layout type will be changed automatically.
This method may not be used to set the layout type to PageConfig.PAGE_LAYOUT_TYPE_LAYOUT_FILE
.
Use the method setLayoutFilePath(String)
instead, and the layout type is changed automatically.
If set to a value different of PageConfig.PAGE_LAYOUT_TYPE_LAYOUT_FILE
, the
property will be removed.
layoutType
- the layout type.setLayoutFilePath(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |