|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Fragment
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.
Field Summary | |
---|---|
static String |
COLUMN_PROPERTY_NAME
column standard layout property name |
static String |
HEIGHT_PROPERTY_NAME
height standard layout property name |
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. |
static String |
ROW_PROPERTY_NAME
row standard layout property name |
static String |
SIZES_PROPERTY_NAME
sizes standard layout property name |
static String |
WIDTH_PROPERTY_NAME
width standard layout property name |
static String |
X_PROPERTY_NAME
x coordinate standard layout property name |
static String |
Y_PROPERTY_NAME
y coordinate standard layout property name |
static String |
Z_PROPERTY_NAME
z coordinate standard layout property name |
Method Summary | |
---|---|
String |
getDecorator()
Returns the name of the decorator bound to this fragment |
float |
getFloatProperty(String propName)
getFloatProperty Get named property value as float. |
List |
getFragments()
Returns all fragments used in this node. |
int |
getIntProperty(String propName)
getIntProperty 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. |
String |
getName()
Returns the administrative name of this fragment. |
List |
getPreferences()
Get collection of fragment preference objects used to initialize user preferences |
Map |
getProperties()
getProperties Get writable Map of properties by name. |
String |
getProperty(String propName)
getProperty Get named property value. |
String |
getSkin()
Returns the name of the skin associated to this fragment |
String |
getState()
Returns the display state of this fragment. |
String |
getType()
Returns the type of the class bound to this fragment |
boolean |
isReference()
Test if this fragment is actually a reference to an external fragment. |
void |
setDecorator(String decoratorName)
Defines the decorator for this fragment. |
void |
setLayoutColumn(int column)
set the layout column property |
void |
setLayoutHeight(float height)
set the layout height property |
void |
setLayoutRow(int row)
set the layout row property |
void |
setLayoutSizes(String sizes)
set the layout sizes |
void |
setLayoutWidth(float width)
set the layout width property |
void |
setLayoutX(float x)
set the layout x coordinate property |
void |
setLayoutY(float y)
set the layout y coordinate property |
void |
setLayoutZ(float z)
set the layout z coordinate property |
void |
setMode(String mode)
Sets the display mode of this fragment. |
void |
setName(String name)
Binds an administrative name to this fragment |
void |
setPreferences(List preferences)
Set collection of fragment preference objects |
void |
setSkin(String skinName)
Defines the skin for this fragment. |
void |
setState(String state)
Sets the display state of this fragment. |
void |
setType(String type)
Binds a type to this fragment |
Methods inherited from interface org.apache.jetspeed.om.page.BaseElement |
---|
getId, getShortTitle, getTitle, setShortTitle, setTitle |
Methods inherited from interface org.apache.jetspeed.om.common.SecuredResource |
---|
checkAccess, checkConstraints, checkPermissions, getConstraintsEnabled, getPermissionsEnabled, getSecurityConstraints, newSecurityConstraint, newSecurityConstraints, setSecurityConstraints |
Field Detail |
---|
static final String PORTLET
static final String LAYOUT
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 Y_PROPERTY_NAME
static final String Z_PROPERTY_NAME
static final String WIDTH_PROPERTY_NAME
static final String HEIGHT_PROPERTY_NAME
Method Detail |
---|
String getName()
void setName(String name)
name
- the administrative nameString getType()
void setType(String type)
type
- the typeString getSkin()
void setSkin(String skinName)
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 fragmentString getState()
void setState(String state)
state
- the new fragment stateString getMode()
void setMode(String mode)
mode
- the new fragment modeList getFragments()
String getProperty(String propName)
propName
- property name
int getIntProperty(String propName)
propName
- property name
float getFloatProperty(String propName)
propName
- property name
Map getProperties()
int getLayoutRow()
void setLayoutRow(int row)
row
- int getLayoutColumn()
void setLayoutColumn(int column)
column
- String getLayoutSizes()
void setLayoutSizes(String sizes)
sizes
- float getLayoutX()
void setLayoutX(float x)
x
- the coordinate valuefloat getLayoutY()
void setLayoutY(float y)
y
- the coordinate valuefloat getLayoutZ()
void setLayoutZ(float z)
z
- the coordinate valuefloat getLayoutWidth()
void setLayoutWidth(float width)
width
- the valuefloat getLayoutHeight()
void setLayoutHeight(float height)
height
- the valueboolean isReference()
List getPreferences()
void setPreferences(List preferences)
preferences
- list of FragmentPreference objects
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |