|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Parameter
For use by portlets written to the IBM portlet API.
An action (encapsulated in the Action
interface)
is associated with several parameters
(encapsulated in the Parameter
interface), and each parameter is associated
with a property (encapsulated in the Property
interface).
This interface is used to provide additional information about how
a property is to be passed to/from the specific action it is associated with.
If actions are declared in a WSDL file, the runtime will construct and register the
Action
and associated Parameter
objects. If a WSDL file is not used, parameters
may be programmatically constructed using PropertyFactory
, followed by invoking the
setters.
PropertyFactory
,
Action
,
Property
Field Summary | |
---|---|
static java.lang.String |
BOUND_TO_ACTION
Deprecated. Specifies that the parameter value is bound as an action parameter when the action is invoked. |
static java.lang.String |
BOUND_TO_REQUEST_ATTRIBUTE
Deprecated. Specifies that the parameter value is bound as a request attribute when the action is invoked. |
static java.lang.String |
BOUND_TO_REQUEST_PARAMETER
Deprecated. Specifies that the parameter value is bound as a request parameter when the action is invoked. |
static java.lang.String |
BOUND_TO_SESSION
Deprecated. Specifies that the parameter value is bound as a session attribute when the action is invoked. |
Method Summary | |
---|---|
Action |
getAction()
Deprecated. Returns the parent Action object. |
java.lang.String |
getBoundTo()
Deprecated. Returns where the parameter is bound. |
java.lang.String |
getDescription()
Deprecated. |
java.lang.String |
getDescription(java.util.Locale locale)
Deprecated. Return a string containing a description of the parameter. |
Property |
getProperty()
Deprecated. Returns the associated Property object. |
java.lang.String |
getTitle()
Deprecated. |
java.lang.String |
getTitle(java.util.Locale locale)
Deprecated. Returns a string containing a short description of the parameter. |
boolean |
isPresentIfNullValue()
Deprecated. Returns a value that governs the wire-triggering behavior if a parameter is found, but its value is null. |
void |
setBoundTo(java.lang.String boundTo)
Deprecated. Set where the parameter is bound. |
void |
setDescription(java.lang.String descriptionKey)
Deprecated. |
void |
setDescriptionKey(java.lang.String descriptionKey)
Deprecated. Set the key for the description. |
void |
setPresentIfNullValue(boolean presentIfNullValue)
Deprecated. Setter for presentIfNullValue. |
void |
setTitle(java.lang.String titleKey)
Deprecated. |
void |
setTitleKey(java.lang.String titleKey)
Deprecated. Set the key for the title. |
Field Detail |
---|
static final java.lang.String BOUND_TO_REQUEST_ATTRIBUTE
static final java.lang.String BOUND_TO_REQUEST_PARAMETER
static final java.lang.String BOUND_TO_SESSION
static final java.lang.String BOUND_TO_ACTION
DEFAULT_PORTLET_ACTION
.
Action
,
Constant Field ValuesMethod Detail |
---|
Property getProperty()
Property
object.
Property
objectProperty
Action getAction()
Action
object.
Action
objectAction
java.lang.String getBoundTo()
String
that specifies where the parameter is bound.
The allowed values are specified by the constants in this interface.boolean isPresentIfNullValue()
java.lang.String getTitle()
String
containing a short description of the parameter.getTitle(Locale)
java.lang.String getTitle(java.util.Locale locale)
locale
- the current locale
String
containing a short description of the parameter.java.lang.String getDescription()
String
containing a description of the parameter.getDescription(Locale)
java.lang.String getDescription(java.util.Locale locale)
locale
- the current locale
String
containing a description of the parameter.void setBoundTo(java.lang.String boundTo) throws InvalidPropertyException
BOUND_TO_REQUEST_PARAMETER
.
boundTo
- specifies where the parameter is bound.
InvalidPropertyException
- if the value does not satisfy the required constraint.getBoundTo()
void setPresentIfNullValue(boolean presentIfNullValue) throws InvalidPropertyException
isPresentIfNullValue
for a description of
how the value is used.
presentIfNullValue
- this indicates if null values are significant for this parameter; ie if they will
cause wires to be triggered
InvalidPropertyException
- if this Parameter
or its associated Property
violates
any required constraintsisPresentIfNullValue()
void setTitle(java.lang.String titleKey)
setTitleKey
instead.
titleKey
- is used as a key to retrieve the locale-specific title.setTitleKey(String )
void setTitleKey(java.lang.String titleKey)
setLocalizationInfo
method of the associated Action
.
titleKey
- is used as a key to retrieve the locale-specific title.Action
,
getTitle(Locale)
void setDescription(java.lang.String descriptionKey)
setDescriptionKey
instead.
descriptionKey
- is used as a key to retrieve the locale-specific description.setDescriptionKey(String )
void setDescriptionKey(java.lang.String descriptionKey)
setLocalizationInfo
method of the associated Action
.
descriptionKey
- is used as a key to retrieve the locale-specific description.Action
,
getDescription(Locale)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |