oracle.portal.provider.v2
Class DefaultParameterDefinition
java.lang.Object
|
+--oracle.portal.provider.v2.ParameterDefinition
|
+--oracle.portal.provider.v2.DefaultParameterDefinition
- All Implemented Interfaces:
- InitializableXMLObject, Validateable
- public class DefaultParameterDefinition
- extends ParameterDefinition
- implements InitializableXMLObject
DefaultParameterDefinition extends ParameterDefinition to handle
getting the the resource bundle for a parameter from it's parent portlet.
It is encouraged for all strings for a portlet to be specified in a single
resource bundle, rather than specifying a separate one for each parameter.
|
Method Summary |
java.util.ResourceBundle |
getResourceBundle(java.util.Locale l)
Gets the resource bundle for this parameter in the given Locale. |
void |
postInitialize()
Not used. |
void |
preInitialize(java.lang.Object parent)
Called during parsing of provider.xml when this object is created. |
| Methods inherited from class oracle.portal.provider.v2.ParameterDefinition |
getDescription, getDescriptionKey, getDisplayName, getDisplayNameKey, getName, setDescription, setDescriptionKey, setDisplayName, setDisplayNameKey, setName, setResource, validate |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultParameterDefinition
public DefaultParameterDefinition()
preInitialize
public void preInitialize(java.lang.Object parent)
throws NodeHandlerException
- Called during parsing of provider.xml when this object is created.
Used here to store the parent portlet. This could be a portlet or
an event. If it's an event, then get it's parent portlet.
- Specified by:
preInitialize in interface InitializableXMLObject
- Parameters:
parent - the application object that will become this object's parent
- Throws:
NodeHandlerException - if an error occurs while initializing
this application object
postInitialize
public void postInitialize()
throws NodeHandlerException
- Not used.
- Specified by:
postInitialize in interface InitializableXMLObject
- Throws:
NodeHandlerException - if an error occurs while initializing or
validating this application object
getResourceBundle
public java.util.ResourceBundle getResourceBundle(java.util.Locale l)
- Gets the resource bundle for this parameter in the given Locale.
- Overrides:
getResourceBundle in class ParameterDefinition
- Parameters:
l - the Locale of the resource bundle being requested.
- Returns:
- the resource bundle for this parameter. null if
there isn't one.
Copyright (c) 2002,2003 Oracle Corporation. All Rights Reserved.