public class LayoutPropertiesHelper extends Object
Constructor and Description |
---|
LayoutPropertiesHelper(ILayoutPropertiesAccessor layoutPropertiesAccessor)
The constructor for
LayoutPropertiesHelper . |
Modifier and Type | Method and Description |
---|---|
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.
|
public LayoutPropertiesHelper(ILayoutPropertiesAccessor layoutPropertiesAccessor)
LayoutPropertiesHelper
.layoutPropertiesAccessor
- the object used to access the layout properties.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)
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.