com.infoengine.webject.dsp
Class DisplayWebject

java.lang.Object
  extended bycom.infoengine.webject.Webject
      extended bycom.infoengine.webject.dsp.DisplayWebject
Direct Known Subclasses:
ApplyXsl, DisplayObject, DisplayResource, DisplaySelection, DisplayTable, DisplayValue, DisplayXml, EchoRequest, ObjectButton, ObjectDisplay, ObjectSelect, ObjectWindow

public abstract class DisplayWebject
extends Webject


Field Summary
private static Hashtable bundleCache
           
(package private) static String ID
           
protected static String RESOURCE
           
static String rsMAX
           
static String rsNEXT_START
           
static String rsPREVIOUS_START
           
static String rsSTART
           
static String USER_AGENT_HTML
           
 
Constructor Summary
DisplayWebject()
           
 
Method Summary
protected static Group defaultGroup(Task task, Rendering rendering)
           
protected static Table defaultTable(Webject webject, Rendering rendering)
           
protected static Table defaultTextTable(Webject webject, Rendering rendering)
           
static String getMessageTemplate(Group group, String key)
          Returns a localized message template from a Group serving as a resource bundle.
static Hashtable getPropertyResources(String resource)
          Returns a Hashtable providing locale-specific message resources.
static Hashtable getResources(Group group)
          Returns a Hashtable providing locale-specific message resources.
static Hashtable getResources(String bundleName)
          Returns a Hashtable providing locale-specific message resources.
protected static int getResultSetEnd(Group inGroup)
           
protected static int getResultSetStart(Group inGroup)
           
private static String getUserAgent(Task task)
           
protected static StringBuffer renderError(String msg, Rendering rendering)
           
protected static Rendering setRenderingAgent(Task task)
           
protected static void setResultSet(Group inGroup, Object startParam, Object maxParam)
           
 
Methods inherited from class com.infoengine.webject.Webject
booleanParam, invoke
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

static final String ID
See Also:
Constant Field Values

RESOURCE

protected static final String RESOURCE
See Also:
Constant Field Values

rsPREVIOUS_START

public static final String rsPREVIOUS_START
See Also:
Constant Field Values

rsNEXT_START

public static final String rsNEXT_START
See Also:
Constant Field Values

rsSTART

public static final String rsSTART
See Also:
Constant Field Values

rsMAX

public static final String rsMAX
See Also:
Constant Field Values

USER_AGENT_HTML

public static final String USER_AGENT_HTML
See Also:
Constant Field Values

bundleCache

private static Hashtable bundleCache
Constructor Detail

DisplayWebject

public DisplayWebject()
Method Detail

getPropertyResources

public static Hashtable getPropertyResources(String resource)
                                      throws IEException
Returns a Hashtable providing locale-specific message resources. The resources are obtained from a .rbInfo property definitions that may be stored as files (on a local file sysem or retrieved via a url) or in ldap.

Parameters:
resource - The URI used to retrieve the properties
Returns:
The message resource Hashtable.
Throws:
IEException - if the specified bundle is not found or can not be loaded successfully.

getResources

public static Hashtable getResources(String bundleName)
                              throws IEException
Returns a Hashtable providing locale-specific message resources. The resources are obtained from a Java resource bundle.

Parameters:
bundleName - The class name of the Java resource bundle.
Returns:
The message resource Hashtable.
Throws:
IEException - if the specified bundle is not found or can not be loaded successfully.

getResources

public static Hashtable getResources(Group group)
                              throws IEException
Returns a Hashtable providing locale-specific message resources. The resources are obtained from an Info*Engine Group representing a resource bundle. Normally, the Group is obtained by executing the Get-Resource webject.

Parameters:
group - The Group object containing the resources.
Returns:
The message resource Hashtable.
Throws:
IEException - if the specified bundle is not found or can not be loaded successfully.

getMessageTemplate

public static String getMessageTemplate(Group group,
                                        String key)
                                 throws IEException
Returns a localized message template from a Group serving as a resource bundle.

Parameters:
group - The Group containing the localized message templates
key - The message key.
Returns:
The message template.
Throws:
IEException - if the specified bundle is not found or can not be loaded successfully.

defaultGroup

protected static Group defaultGroup(Task task,
                                    Rendering rendering)
                             throws DisplayWebjectException
Throws:
DisplayWebjectException

defaultTable

protected static Table defaultTable(Webject webject,
                                    Rendering rendering)

defaultTextTable

protected static Table defaultTextTable(Webject webject,
                                        Rendering rendering)

getResultSetEnd

protected static int getResultSetEnd(Group inGroup)

getResultSetStart

protected static int getResultSetStart(Group inGroup)

renderError

protected static StringBuffer renderError(String msg,
                                          Rendering rendering)

setResultSet

protected static void setResultSet(Group inGroup,
                                   Object startParam,
                                   Object maxParam)

getUserAgent

private static String getUserAgent(Task task)

setRenderingAgent

protected static Rendering setRenderingAgent(Task task)