public interface Fragment extends BaseFragmentElement, Serializable
A Fragment
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 component that is responsible for the layout policy of the fragment is defined by two properties:
In addition to specifying the component responsible for the layout, the fragment also stores contextual information used for rendering:
Finally the fragment also holds layout and rendering properties that may be used by a parent fragment to layout all its inner fragments in an appropriate fashion.
Modifier and Type | Field and Description |
---|---|
static String |
LAYOUT
A fragment of type LAYOUT is a specific JSR 168 compliant portlet
that knows how to layout a Page and depends on the Jetspeed
layout service.
|
static String |
PORTLET
A fragment of type PORTLET is considered to be a compliant portlet
in the sense of the JSR 168.
|
COLUMN_PROPERTY_NAME, DECORATOR_PROPERTY_NAME, GLOBAL_PROPERTY_SCOPE, GROUP_AND_ROLE_PROPERTY_SCOPES_ENABLED, GROUP_PROPERTY_SCOPE, HEIGHT_PROPERTY_NAME, MODE_PROPERTY_NAME, ROLE_PROPERTY_SCOPE, ROW_PROPERTY_NAME, SIZES_PROPERTY_NAME, SKIN_PROPERTY_NAME, STATE_PROPERTY_NAME, USER_PROPERTY_SCOPE, WIDTH_PROPERTY_NAME, X_PROPERTY_NAME, XPOS_PROPERTY_NAME, Y_PROPERTY_NAME, YPOS_PROPERTY_NAME, Z_PROPERTY_NAME
Modifier and Type | Method and Description |
---|---|
BaseFragmentElement |
getFragmentById(String id)
Retrieves the fragment contained within this fragment, with the
specified Id.
|
List<BaseFragmentElement> |
getFragments()
Returns all fragments used in this node.
|
String |
getName()
Returns the administrative name of this fragment.
|
String |
getType()
Returns the type of the class bound to this fragment
|
BaseFragmentElement |
removeFragmentById(String id)
Removes the fragment contained within this fragment, with the
specified Id.
|
void |
setName(String name)
Binds an administrative name to this fragment
|
void |
setType(String type)
Binds a type to this fragment
|
getDecorator, getFloatProperty, getFloatProperty, getIntProperty, getIntProperty, getLayoutColumn, getLayoutHeight, getLayoutRow, getLayoutSizes, getLayoutWidth, getLayoutX, getLayoutY, getLayoutZ, getMode, getPreferences, getProperties, getProperty, getProperty, getSkin, getState, setDecorator, setDecorator, setId, setLayoutColumn, setLayoutColumn, setLayoutHeight, setLayoutHeight, setLayoutRow, setLayoutRow, setLayoutSizes, setLayoutSizes, setLayoutWidth, setLayoutWidth, setLayoutX, setLayoutX, setLayoutY, setLayoutY, setLayoutZ, setLayoutZ, setMode, setMode, setPreferences, setProperties, setProperty, setProperty, setProperty, setSkin, setSkin, setState, setState
getId, getShortTitle, getTitle, isStale, setShortTitle, setTitle
checkAccess, checkConstraints, checkPermissions, getConstraintsEnabled, getPermissionsEnabled, getSecurityConstraints, newSecurityConstraint, newSecurityConstraints, setSecurityConstraints
static final String PORTLET
static final String LAYOUT
String getName()
void setName(String name)
name
- the administrative nameString getType()
void setType(String type)
type
- the typeList<BaseFragmentElement> getFragments()
BaseFragmentElement getFragmentById(String id)
id
- the fragment id to look forBaseFragmentElement removeFragmentById(String id)
id
- the fragment id to removeCopyright © 1999–2016 The Apache Software Foundation. All rights reserved.