com.infoengine.webject.dsp
Class DisplayWebject
java.lang.Object
com.infoengine.webject.Webject
com.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
DisplayWebject
public DisplayWebject()
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 templateskey
- 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)