Oracle Fusion Middleware
Java API Reference for Oracle PDK Java
11g Release 1 (11.1.1)
E10691-01

oracle.portal.provider.v2
Class DefaultParameterDefinition

java.lang.Object
  extended by oracle.portal.provider.v2.ParameterDefinition
      extended by oracle.portal.provider.v2.DefaultParameterDefinition
All Implemented Interfaces:
Validateable, InitializableXMLObject

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.


Constructor Summary
DefaultParameterDefinition()
           
 
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
 

Constructor Detail

DefaultParameterDefinition

public DefaultParameterDefinition()
Method Detail

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.

Oracle Fusion Middleware
Java API Reference for Oracle PDK Java
11g Release 1 (11.1.1)
E10691-01

Copyright (c) 1999, 2009, Oracle and/or its affiliates. All rights reserved.