public interface BaseFragmentElement extends BaseElement
A BaseFragmentElement
is the basic element handled by the
aggregation engine to compose the final portal page. It represents a reserved
screen area whose layout is managed by a specified component. The fragment
also holds layout and rendering properties/preferences.
Modifier and Type | Field and Description |
---|---|
static String |
COLUMN_PROPERTY_NAME
column standard layout property name
|
static String |
DECORATOR_PROPERTY_NAME
decorator standard layout property name
|
static String |
GLOBAL_PROPERTY_SCOPE
global standard property scope
|
static boolean |
GROUP_AND_ROLE_PROPERTY_SCOPES_ENABLED
group and role standard property scopes enabled flag
|
static String |
GROUP_PROPERTY_SCOPE
group standard property scope
|
static String |
HEIGHT_PROPERTY_NAME
height standard layout property name
|
static String |
MODE_PROPERTY_NAME
mode standard layout property name
|
static String |
ROLE_PROPERTY_SCOPE
role standard property scope
|
static String |
ROW_PROPERTY_NAME
row standard layout property name
|
static String |
SIZES_PROPERTY_NAME
sizes standard layout property name
|
static String |
SKIN_PROPERTY_NAME
skin standard layout property name
|
static String |
STATE_PROPERTY_NAME
state standard layout property name
|
static String |
USER_PROPERTY_SCOPE
user standard property scope
|
static String |
WIDTH_PROPERTY_NAME
width standard layout property name
|
static String |
X_PROPERTY_NAME
x coordinate standard layout property name
|
static String |
XPOS_PROPERTY_NAME |
static String |
Y_PROPERTY_NAME
y coordinate standard layout property name
|
static String |
YPOS_PROPERTY_NAME |
static String |
Z_PROPERTY_NAME
z coordinate standard layout property name
|
Modifier and Type | Method and Description |
---|---|
String |
getDecorator()
Returns the name of the decorator bound to this fragment
Property value is returned for the most specific scope
found, (i.e.
|
float |
getFloatProperty(String propName)
Get named property value as float.
|
float |
getFloatProperty(String propName,
String propScope,
String propScopeValue)
Get named property value as float.
|
int |
getIntProperty(String propName)
Get named property value as integer.
|
int |
getIntProperty(String propName,
String propScope,
String propScopeValue)
Get named property value as integer.
|
int |
getLayoutColumn()
Get layout column property.
|
float |
getLayoutHeight()
Get layout height property.
|
int |
getLayoutRow()
Get layout row property.
|
String |
getLayoutSizes()
Get layout sizes property, (i.e.
|
float |
getLayoutWidth()
Get layout width property.
|
float |
getLayoutX()
Get layout x coordinate property.
|
float |
getLayoutY()
Get layout y coordinate property.
|
float |
getLayoutZ()
Get layout z coordinate property.
|
String |
getMode()
Returns the display mode of this fragment.
|
List<FragmentPreference> |
getPreferences()
Get collection of fragment preference objects used
to initialize user preferences
|
List<FragmentProperty> |
getProperties()
Get writable list of fragment property objects that
initially returns the set of properties for all scopes
found for the current user.
|
String |
getProperty(String propName)
Get named property value.
|
String |
getProperty(String propName,
String propScope,
String propScopeValue)
Get named property value.
|
String |
getSkin()
Returns the name of the skin associated to this fragment
Property value is returned for the most specific scope
found, (i.e.
|
String |
getState()
Returns the display state of this fragment.
|
void |
setDecorator(String decoratorName)
Defines the decorator for this fragment.
|
void |
setDecorator(String scope,
String scopeValue,
String decoratorName)
Defines the decorator for this fragment.
|
void |
setId(String fragmentId)
Sets the unique Id of this fragment.
|
void |
setLayoutColumn(int column)
Set the layout column property.
|
void |
setLayoutColumn(String scope,
String scopeValue,
int column)
Set the layout column property.
|
void |
setLayoutHeight(float height)
Set the layout height property.
|
void |
setLayoutHeight(String scope,
String scopeValue,
float height)
Set the layout height property.
|
void |
setLayoutRow(int row)
Set the layout row property.
|
void |
setLayoutRow(String scope,
String scopeValue,
int row)
Set the layout row property.
|
void |
setLayoutSizes(String sizes)
Set the layout sizes.
|
void |
setLayoutSizes(String scope,
String scopeValue,
String sizes)
Set the layout sizes.
|
void |
setLayoutWidth(float width)
Set the layout width property.
|
void |
setLayoutWidth(String scope,
String scopeValue,
float width)
Set the layout width property.
|
void |
setLayoutX(float x)
Set the layout x coordinate property.
|
void |
setLayoutX(String scope,
String scopeValue,
float x)
Set the layout x coordinate property.
|
void |
setLayoutY(float y)
Set the layout y coordinate property.
|
void |
setLayoutY(String scope,
String scopeValue,
float y)
Set the layout y coordinate property.
|
void |
setLayoutZ(float z)
Set the layout z coordinate property.
|
void |
setLayoutZ(String scope,
String scopeValue,
float z)
Set the layout z coordinate property.
|
void |
setMode(String mode)
Sets the display mode of this fragment.
|
void |
setMode(String scope,
String scopeValue,
String mode)
Sets the display mode of this fragment.
|
void |
setPreferences(List<FragmentPreference> preferences)
Set collection of fragment preference objects
|
void |
setProperties(List<FragmentProperty> properties)
Set collection of fragment property objects
|
void |
setProperty(String propName,
String propScope,
String propScopeValue,
float propValue)
Set named float property value.
|
void |
setProperty(String propName,
String propScope,
String propScopeValue,
int propValue)
Set named int property value.
|
void |
setProperty(String propName,
String propScope,
String propScopeValue,
String propValue)
Set named property value.
|
void |
setSkin(String skinName)
Defines the skin for this fragment.
|
void |
setSkin(String scope,
String scopeValue,
String skinName)
Defines the skin for this fragment.
|
void |
setState(String state)
Sets the display state of this fragment.
|
void |
setState(String scope,
String scopeValue,
String state)
Sets the display state of this fragment.
|
getId, getShortTitle, getTitle, isStale, setShortTitle, setTitle
checkAccess, checkConstraints, checkPermissions, getConstraintsEnabled, getPermissionsEnabled, getSecurityConstraints, newSecurityConstraint, newSecurityConstraints, setSecurityConstraints
static final String SKIN_PROPERTY_NAME
static final String DECORATOR_PROPERTY_NAME
static final String STATE_PROPERTY_NAME
static final String MODE_PROPERTY_NAME
static final String ROW_PROPERTY_NAME
static final String COLUMN_PROPERTY_NAME
static final String SIZES_PROPERTY_NAME
static final String X_PROPERTY_NAME
static final String XPOS_PROPERTY_NAME
static final String Y_PROPERTY_NAME
static final String YPOS_PROPERTY_NAME
static final String Z_PROPERTY_NAME
static final String WIDTH_PROPERTY_NAME
static final String HEIGHT_PROPERTY_NAME
static final String USER_PROPERTY_SCOPE
static final String GROUP_PROPERTY_SCOPE
static final String ROLE_PROPERTY_SCOPE
static final String GLOBAL_PROPERTY_SCOPE
static final boolean GROUP_AND_ROLE_PROPERTY_SCOPES_ENABLED
void setId(String fragmentId)
fragmentId
- the unique id of this fragment.String getSkin()
void setSkin(String skinName)
skinName
- the name of the new skin applied to this fragmentvoid setSkin(String scope, String scopeValue, String skinName)
scope
- the name of the property scope for settingscopeValue
- the scope discriminator value, (unless scope is GLOBAL
or USER where the default user name is used if null)skinName
- the name of the new skin applied to this fragmentString getDecorator()
void setDecorator(String decoratorName)
decoratorName
- the name of the decorator applied to this fragmentvoid setDecorator(String scope, String scopeValue, String decoratorName)
scope
- the name of the property scope for settingscopeValue
- the scope discriminator value, (unless scope is GLOBAL
or USER where the default user name is used if null)decoratorName
- the name of the decorator applied to this fragmentString getState()
void setState(String state)
state
- the new fragment statevoid setState(String scope, String scopeValue, String state)
scope
- the name of the property scope for settingscopeValue
- the scope discriminator value, (unless scope is GLOBAL
or USER where the default user name is used if null)state
- the new fragment stateString getMode()
void setMode(String mode)
mode
- the new fragment modevoid setMode(String scope, String scopeValue, String mode)
scope
- the name of the property scope for settingscopeValue
- the scope discriminator value, (unless scope is GLOBAL
or USER where the default user name is used if null)mode
- the new fragment modeString getProperty(String propName)
propName
- property nameString getProperty(String propName, String propScope, String propScopeValue)
propName
- property namepropScope
- the name of the property scope to retrievepropScopeValue
- the scope discriminator value, (unless scope is GLOBAL
or USER where the default user name is used if null)int getIntProperty(String propName)
propName
- property nameint getIntProperty(String propName, String propScope, String propScopeValue)
propName
- property namepropScope
- the name of the property scope to retrievepropScopeValue
- the scope discriminator value, (unless scope is GLOBAL
or USER where the default user name is used if null)float getFloatProperty(String propName)
propName
- property namefloat getFloatProperty(String propName, String propScope, String propScopeValue)
propName
- property namepropScope
- the name of the property scope to retrievepropScopeValue
- the scope discriminator value, (unless scope is GLOBAL
or USER where the default user name is used if null)void setProperty(String propName, String propScope, String propScopeValue, String propValue)
propName
- property namepropScope
- the name of the property scope to retrievepropScopeValue
- the scope discriminator value, (unless scope is GLOBAL
or USER where the default user name is used if null)propValue
- property valuevoid setProperty(String propName, String propScope, String propScopeValue, int propValue)
propName
- property namepropScope
- the name of the property scope to retrievepropScopeValue
- the scope discriminator value, (unless scope is GLOBAL
or USER where the default user name is used if null)propValue
- property valuevoid setProperty(String propName, String propScope, String propScopeValue, float propValue)
propName
- property namepropScope
- the name of the property scope to retrievepropScopeValue
- the scope discriminator value, (unless scope is GLOBAL
or USER where the default user name is used if null)propValue
- property valueList<FragmentProperty> getProperties()
void setProperties(List<FragmentProperty> properties)
properties
- list of FragmentPreference objectsint getLayoutRow()
void setLayoutRow(int row)
row
- void setLayoutRow(String scope, String scopeValue, int row)
scope
- the name of the property scope for settingscopeValue
- the scope discriminator value, (unless scope is GLOBAL
or USER where the default user name is used if null)row
- int getLayoutColumn()
void setLayoutColumn(int column)
column
- void setLayoutColumn(String scope, String scopeValue, int column)
scope
- the name of the property scope for settingscopeValue
- the scope discriminator value, (unless scope is GLOBAL
or USER where the default user name is used if null)column
- String getLayoutSizes()
void setLayoutSizes(String sizes)
sizes
- void setLayoutSizes(String scope, String scopeValue, String sizes)
scope
- the name of the property scope for settingscopeValue
- the scope discriminator value, (unless scope is GLOBAL
or USER where the default user name is used if null)sizes
- float getLayoutX()
void setLayoutX(float x)
x
- the coordinate valuevoid setLayoutX(String scope, String scopeValue, float x)
scope
- the name of the property scope for settingscopeValue
- the scope discriminator value, (unless scope is GLOBAL
or USER where the default user name is used if null)x
- the coordinate valuefloat getLayoutY()
void setLayoutY(float y)
y
- the coordinate valuevoid setLayoutY(String scope, String scopeValue, float y)
scope
- the name of the property scope for settingscopeValue
- the scope discriminator value, (unless scope is GLOBAL
or USER where the default user name is used if null)y
- the coordinate valuefloat getLayoutZ()
void setLayoutZ(float z)
z
- the coordinate valuevoid setLayoutZ(String scope, String scopeValue, float z)
scope
- the name of the property scope for settingscopeValue
- the scope discriminator value, (unless scope is GLOBAL
or USER where the default user name is used if null)z
- the coordinate valuefloat getLayoutWidth()
void setLayoutWidth(float width)
width
- the valuevoid setLayoutWidth(String scope, String scopeValue, float width)
scope
- the name of the property scope for settingscopeValue
- the scope discriminator value, (unless scope is GLOBAL
or USER where the default user name is used if null)width
- the valuefloat getLayoutHeight()
void setLayoutHeight(float height)
height
- the valuevoid setLayoutHeight(String scope, String scopeValue, float height)
scope
- the name of the property scope for settingscopeValue
- the scope discriminator value, (unless scope is GLOBAL
or USER where the default user name is used if null)height
- the valueList<FragmentPreference> getPreferences()
void setPreferences(List<FragmentPreference> preferences)
preferences
- list of FragmentPreference objectsCopyright © 1999–2016 The Apache Software Foundation. All rights reserved.