|
Applicet Framework for Applets and Applications v2.03 | ||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Panel
|
+--java.applet.Applet
|
+--be.arci.applet.Applicet
Extends Applet with full support for running as an application, with access to resource URLs and inputstreams, images, sound and all, and with carefully designed internationalization (I18N) conveniences that make internationalization of your applets and applications trivial.
Use Applicet instead of Applet as superclass of your applet, and immediately run as application with full functionality.
Note: For the AWT Applicet version, interface javax.accessibility.Accessible and inner classes java.applet.Applet.AccessibleApplet, java.awt.Panel.AccessibleAWTPanel, java.awt.Container.AccessibleAWTContainer and java.awt.Container.AccessibleAWTComponent are inherited from java.applet.Applet in Java 2 only, not in Java 1.x.
runAsApplication,
Applicet Framework overview, Serialized Form| Inner Class Summary | |
class |
Applicet.Context
The execution environment for Applicet applications (implementing the java.applet.AppletContext interface); also adds functionality, specific for Applicet applications, that need not be distributed with Applicet applets. |
| Inner classes inherited from class java.applet.Applet |
java.applet.Applet.AccessibleApplet |
| Inner classes inherited from class java.awt.Panel |
java.awt.Panel.AccessibleAWTPanel |
| Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
| Field Summary | |
static java.lang.String |
sCopy
Copyright notice; none of the Applicet Framework license types allows you to change this. |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
protected |
Applicet()
It makes no sense to use an Applicet without subclassing; therefor the constructor is protected (unlike Applet's constructor). |
| Method Summary | |
java.awt.Frame |
createFrame()
Creates a frame with the class name both as title and as base name for the icon filename: first ".gif" is appended to try and get an icon image, then ".jpg". |
java.lang.String |
formatI18NString(java.lang.String sPatternName,
java.lang.Object[] aoArgs)
Formats an array of Object arguments to a localized message according to the named pattern; the pattern name is used to look up both the localized pattern as well as localized argument Strings for those Object arguments that are null. |
java.lang.String |
formatI18NString(java.lang.String sPatternName,
java.lang.String sDefaultPattern,
java.lang.Object[] aoArgs)
Formats an array of Object arguments to a localized message according to the named pattern; the pattern name is used to look up both the localized pattern as well as localized argument Strings for those Object arguments that are null. |
java.lang.String |
getAppletInfo()
Returns information about this Applicet; the default implementation returns the Applicet copyright notice. |
java.applet.AudioClip |
getAudioClip(java.lang.String sName)
Utitlity method that does a best effort to get the named AudioClip resource, depending on this Applicet's resource context and execution environment. |
java.applet.AudioClip |
getAudioClip(java.lang.String sName,
int iResourceContext)
Gets the named AudioClip resource, either by reading it from the resource's URL or from an InputStream opened on the resource, depending on the iResourceContext parameter. |
java.awt.Frame |
getFrame()
Convenience method that returns and always reuses the same Frame, created by createFrame(). |
I18NDelegate |
getI18NDelegate()
Retrieves the I18NDelegate of this Applicet, giving more control over I18N aspects. |
java.lang.String[][] |
getI18NParameterInfo(java.lang.String[][] aasDefaultParameterInfo,
char cDelimiter)
Retrieves localized parameterinfo based on a default array of parameterinfo Strings. |
java.lang.String |
getI18NString(java.lang.String sName)
Searches for the localized String with the specified name in the default I18N set of .properties files for this Applicet. |
java.lang.String |
getI18NString(java.lang.String sName,
java.lang.String sDefault)
Searches for the localized String with the specified name in the default I18N set of .properties files for this Applicet. |
java.lang.String[] |
getI18NStringArray(java.lang.String sName,
char cDelimiter)
Searches for the localized String with the specified name in the default I18N set of .properties files for this Applicet, and splits it into an array of Strings using the delimiter character. |
java.lang.String[] |
getI18NStringArray(java.lang.String sName,
java.lang.String sDefault,
char cDelimiter)
Searches for the localized String with the specified name in the default I18N set of .properties files for this Applicet, and splits it into an array of Strings using the delimiter character. |
java.awt.Image |
getImage(java.lang.String sName)
Utitlity method that does a best effort to get the named Image resource, depending on this Applicet's resource context and execution environment. |
java.awt.Image |
getImage(java.lang.String sName,
int iResourceContext)
Gets the named Image resource, either by reading it from the resource's URL or from an InputStream opened on the resource, depending on the iResourceContext parameter. |
java.util.Locale |
getLocale()
Gets the Locale for the Applicet, if it has been set, or else the default Locale of the execution environment. |
java.lang.String |
getParameter(java.lang.String sName,
java.lang.String sDefaultValue)
Convenience method to retrieve a named parameter, with fallback to a default value. |
java.awt.Frame |
getParentFrame()
Returns the first parent of this Applicet that is a Frame (using Component.getParent() to get there). |
java.awt.Dimension |
getPreferredSize()
The return value of this method is used to set the size of an Applicet application. |
protected java.lang.String[][] |
getReservedParameterInfo()
Returns information about the reserved parameters that are understood by an Applicet application. |
java.net.URL |
getResource(java.lang.String sName)
Returns the URL for a resource with a given name, according to the resource context for this Applicet. |
java.net.URL |
getResource(java.lang.String sName,
int iResourceContext)
Returns the URL for a resource with a given name, according to the specified resource context. |
java.io.InputStream |
getResourceAsStream(java.lang.String sName)
Returns an InputStream on a resource with a given name, according to the resource context for this Applicet, or null if no such resource is found. |
java.io.InputStream |
getResourceAsStream(java.lang.String sName,
int iResourceContext)
Returns an InputStream on a resource with a given name, according to the specified resource context, or null if no such resource is found. |
int |
getResourceContext()
Returns the context for finding Resources. |
static java.lang.String[] |
getStringArray(java.lang.String sArray,
char cDelimiter)
Convenience method to split a String into an array of Strings using a delimiter character. |
protected java.lang.String |
getUsage()
Convenience method to return a 'typical use' message for display in the usage dialog of an Applicet application. |
boolean |
isApplication()
You might want to do something extra when running as application. |
static boolean |
isNetscapeVM()
Returns true if the Applicet runs under a Netscape VM. |
void |
play(java.lang.String sName)
Utitlity method that does a best effort to play the named AudioClip resource, depending on this Applicet's resource context and execution environment. |
void |
play(java.lang.String sName,
int iResourceContext)
Plays the named AudioClip resource, either by reading it from the resource's URL or from an InputStream opened on the resource, depending on the iResourceContext parameter. |
byte[] |
readResource(java.io.InputStream is)
Reads an InputStream (typically obtained as the return value of invoking getResourceAsStream) to end into a byte[]. |
Applicet |
runAsApplication(java.lang.String[] args)
Brings up a Frame containing the Applicet application, and the Applicet is initted and started. |
Applicet |
runAsApplication(java.lang.String[] args,
boolean swSetActive)
Creates a Frame containing the Applicet application. |
Applicet |
runAsApplication(java.lang.String[] args,
boolean swSetActive,
boolean swCreateFrame,
java.lang.String sName)
Creates an application AppletStub and AppletContext for the Applicet application. |
void |
setResourceContext(int iResourceContext)
Sets the context for finding Resources. |
| Methods inherited from class java.applet.Applet |
destroy, getAccessibleContext, getAppletContext, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getParameter, getParameterInfo, init, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop |
| Methods inherited from class java.awt.Panel |
addNotify |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFont, setLayout, update, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface be.arci.applet.Framework |
showStatus |
| Field Detail |
public static final java.lang.String sCopy
| Constructor Detail |
protected Applicet()
| Method Detail |
public static boolean isNetscapeVM()
Netscape 4.0x does not support the Class.getResource() and Class.getSystemResource() methods, (see http://developer.netscape.com/docs/technote/java/getresource/getresource.html) so depending on the result of isNetscapeVM() you might have to call Class.getResourceAsStream() and Class.getSystemResourceAsStream() instead.
NOTE:
For most cases, you can just rely on Applicet's plain handling-resources-by-name methods
without worrying about Netscape or anything else.
getResource,
getResourceAsStream,
getAudioClip,
play,
getImage
public static java.lang.String[] getStringArray(java.lang.String sArray,
char cDelimiter)
sArray - the String to be split at each cDelimiter charcDelimiter - character delimiting the String array
elements in sArraygetI18NStringArraypublic java.awt.Dimension getPreferredSize()
getPreferredSize in class java.awt.Containerpublic java.lang.String getAppletInfo()
getAppletInfo in class java.applet.Appletpublic java.util.Locale getLocale()
This method overrides Applet.getLocale() to continue gracefully in the case an Applicet application is not yet put in a parent Container than can supply the Locale. In that case Locale.getDefault() is returned.
getLocale in interface FrameworkgetLocale in class java.applet.Applet
public Applicet runAsApplication(java.lang.String[] args)
throws java.lang.IllegalStateException
Equivalent to runAsApplication(args, true).
args - see belowjava.lang.IllegalStateException - see belowrunAsApplication(String[] args, boolean swSetActive)
public Applicet runAsApplication(java.lang.String[] args,
boolean swSetActive)
throws java.lang.IllegalStateException
Equivalent to runAsApplication(args, swSetActive, true, null).
args - see belowswSetActive - see belowjava.lang.IllegalStateException - see belowrunAsApplication(String[] args, boolean swSetActive, boolean
swCreateFrame, String sName)
public Applicet runAsApplication(java.lang.String[] args,
boolean swSetActive,
boolean swCreateFrame,
java.lang.String sName)
throws java.lang.IllegalStateException
args - commandline parameters, each of the form "optionname",
"name=value" or "@propertyfile", with propertyfile
the qualified name of a properties file that contains a set of parameter
values. Multiple command line parameters of each kind are allowed, where
later (to the right) entries override earlier (to the left) entries. Parameter
names are case-insensitive; internally they are treated as lowercase.
Parameter names in name=value pairs and in optionname may be
unique abbreviatons of parameters named in the return value of
getParameterInfo(). Parameter names in .properties files
must have a "param." prefix (i.e. "param.name=value" or
"param.optionname").
swSetActive - if true, runAsApplication activates the Applicet
application; if false, you need to call
((Applicet.Context)getAppletContext()).setActive(true) yourself
at the appropriate time to init and start the Applicet.
swCreateFrame - If true, the Applicet is put into a Frame created by createFrame();
on disposal of this Frame the Applicet application is deactivated and it's stop()
and destroy() methods are invoked, followed by System.exit(0).
If false, you have to host the Applicet application panel in your own Container
and take care of calling ((Applicet.Context)getAppletContext()).setActive(false)
yourself to stop() and destroy the Applicet application when needed, and
call System.exit(int) at the appropriate time when eventual other Applicets or
application modules have finished their job (you will have to do this even if you add the
Applicet application to the return value of a call to createFrame()).
sName - name to use for this Applicet instance in calls to
getAppletContext().getApplet(String sName); can be null. Serves intra-Applicet
communication in the case your Application hosts multiple Applicets.java.lang.IllegalStateException - if the Applicet is already in an AppletContext, either
as an applet or as an applicationContext.setActive
,
runAsApplication(String[] args, boolean swSetActive)
,
runAsApplication(String[] args)
,
createFrame,
getI18NParameterInfo,
Applicet.Context#getApplet,
Parameters in .properties files,
Running an Applicet application,
Code examplespublic boolean isApplication()
NOTE: This method returns false until runAsApplication() is called!
runAsApplicationpublic java.awt.Frame createFrame()
Applicet applets can use this frame to display content that is unhooked from the Web browser's window, or to parent user information dialogs. This method should not be called before runAsApplication has been called for an Applicet application.
Note: Not all JVM's turn the transparent area of GIF89 images into a transparent icon area; some just make it a black area.
getFrame,
runAsApplicationpublic java.awt.Frame getFrame()
This method should not be called before runAsApplication has been called for an Applicet application.
getFrame in interface FrameworkgetParentFrame,
createFrame,
runAsApplicationpublic java.awt.Frame getParentFrame()
Use this method preferably to get a good parent for Dialog and Window instances.
getFrame
public java.lang.String getParameter(java.lang.String sName,
java.lang.String sDefaultValue)
getParameter in interface FrameworksName - the parameter namesDefaultValue - a default value for the parameter.runAsApplication,
ParameterParserprotected java.lang.String[][] getReservedParameterInfo()
The Applicet class itself calls this method only for applications, not for applets; subclasses should not need to call it at all: this method is not private just to enable overriding.
You might want to override this method to hide some or all of the reserved parameter names from your users. The return value should be structured like that of getParameterInfo(), i.e. each array element should itself be an array of 3 Strings, in order the parameter name, it's type, and a description. The parameter names can be abbreviated in commandline arguments. The return String array can also be modified by changing it's String array definition in Applicet_locale.properties.
runAsApplication,
getI18NStringArray,
"java.applet.Applet.getParameterInfo()"protected java.lang.String getUsage()
The Applicet class itself calls this method only for applications, not for applets; subclasses should not need to call it at all: this method is not private just to enable overriding.
Applicet.Context.showUsage,
formatI18NString,
getI18NParameterInfopublic int getResourceContext()
setResourceContext,
HFile
public void setResourceContext(int iResourceContext)
throws java.lang.IllegalArgumentException
iResourceContext - context for constructing the resource url; must
be one of the predefind HFile.CONTEXT_xxx constants.java.lang.IllegalArgumentException - if iResourceContext is not one of the predefined HFile.CONTEXT_xxx constantsgetResourceContext,
getResource,
getResourceAsStream,
getImage,
getAudioClip,
play,
HFilepublic java.net.URL getResource(java.lang.String sName)
Note: Netscape currently (v.4.5) can open an InputStreams on a resource in a .jar file, but it does not handle these resources as URL's. For this reason in a Netscape you cannot get the URL (with getResource()) of such a resource; other Applicet resource handling methods work fine even in Netscape and for jarred resources.
sName - the (qualified) name of the desired resourcegetResource(String sName, int iResourceContext),
getResourceContext,
setResourceContext
public java.net.URL getResource(java.lang.String sName,
int iResourceContext)
throws java.lang.IllegalArgumentException
In most cases the plain getResource(String) signature will do the job.
sName - the (qualified) name of the desired resourceiResourceContext - context for constructing the resource url; must
be one of the predefined HFile.CONTEXT_xxx constants;
HFile.CONTEXT_CLASS and HFile.CONTEXT_CLASSSTREAM
are treated as equivalent in invocations of this method, as are
HFile.CONTEXT_SYSTEM and HFile.CONTEXT_SYSTEMSTREAM,
because you cannot get at the URL an InputStream
originates from.java.lang.IllegalArgumentException - if iResourceContext is not one
of the predefined HFile.CONTEXT_xxx constantsgetResource(String sName),
HFilepublic java.io.InputStream getResourceAsStream(java.lang.String sName)
getResourceAsStream in interface FrameworksName - the (qualified) name of the desired resourcegetResourceAsStream(String sName, int iResourceContext),
getResourceContext,
setResourceContext
public java.io.InputStream getResourceAsStream(java.lang.String sName,
int iResourceContext)
throws java.lang.IllegalArgumentException
getResourceAsStream in interface FrameworksName - the (qualified) name of the desired resourceiResourceContext - context for constructing the resource url; must
be one of the predefined HFile.CONTEXT_xxx constants.java.lang.IllegalArgumentException - if iResourceContext is not one
of the predefined HFile.CONTEXT_xxx constantsgetResourceAsStream(String sName),
HFilepublic java.awt.Image getImage(java.lang.String sName)
sName - the (qualified) name of the Image resourcegetImage(String sName, int iResourceContext),
getResourceContext,
setResourceConte
public java.awt.Image getImage(java.lang.String sName,
int iResourceContext)
throws java.lang.IllegalArgumentException
sName - the (qualified) name of the Image resourceiResourceContext - context for opening an URL or InputStream on the resource; must
be one of the predefined HFile.CONTEXT_xxx constants.java.lang.IllegalArgumentException - if iResourceContext is not one
of the predefined HFile.CONTEXT_xxx constantsgetImage(String sName),
HFile
public byte[] readResource(java.io.InputStream is)
throws java.io.IOException
public java.applet.AudioClip getAudioClip(java.lang.String sName)
sName - the (qualified) name of the AudioClip resourcegetAudioClip(String sName, int iResourceContext),
getResourceContext,
setResourceContext
public java.applet.AudioClip getAudioClip(java.lang.String sName,
int iResourceContext)
throws java.lang.IllegalArgumentException
sImageName - the (qualified) name of the AudioClip resourceiResourceContext - context for opening an URL or InputStream on the resource; must
be one of the predefined HFile.CONTEXT_xxx constants.java.lang.IllegalArgumentException - if iResourceContext is not one
of the predefined HFile.CONTEXT_xxx constantsgetAudioClip(String sName),
HFilepublic void play(java.lang.String sName)
sName - the (qualified) name of the AudioClip resourceplay(String sName, int iResourceContext),
getResourceContext,
setResourceContext
public void play(java.lang.String sName,
int iResourceContext)
throws java.lang.IllegalArgumentException
sImageName - the (qualified) name of the AudioClip resourceiResourceContext - context for opening an URL or InputStream on the resource; must
be one of the predefined HFile.CONTEXT_xxx constants.java.lang.IllegalArgumentException - if iResourceContext is not one
of the predefined HFile.CONTEXT_xxx constantsplay(String sName),
HFilepublic java.lang.String getI18NString(java.lang.String sName)
This is a convenience method that delegates to the corresponding method in I18NDelegate. If the I18N set is not yet loaded, it is done now.
sName - the property name.getI18NString(String sName, String sDefault),
getI18NDelegate,
I18NDelegate,
"Internationalization support"
public java.lang.String getI18NString(java.lang.String sName,
java.lang.String sDefault)
This is a convenience method that delegates to the corresponding method in I18NDelegate. If the I18N set is not yet loaded, it is done now.
sName - the property name.sDefault - the default value for the localized String.getI18NString(String sName),
getI18NDelegate,
I18NDelegate,
"Internationalization support"
public java.lang.String[] getI18NStringArray(java.lang.String sName,
char cDelimiter)
This is a convenience method that delegates to the corresponding method in I18NDelegate. If the I18N set is not yet loaded, it is done now.
sName - the property name.cDelimiter - character delimiting the String array
elements in the localized String entry in the .properties files.getI18NStringArray(String sName, String sDefault, char cDelimiter),
getStringArray,
getI18NDelegate,
I18NDelegate,
"Internationalization support"
public java.lang.String[] getI18NStringArray(java.lang.String sName,
java.lang.String sDefault,
char cDelimiter)
This is a convenience method that delegates to the corresponding method in I18NDelegate. If the I18N set is not yet loaded, it is done now.
sName - the property name.sDefault - the default value for the localized String.cDelimiter - character delimiting the String array
elements in the localized String entry in the .properties files.getI18NStringArray(String sName, char cDelimiter),
getStringArray,
getI18NDelegate,
I18NDelegate,
"Internationalization support"
public java.lang.String formatI18NString(java.lang.String sPatternName,
java.lang.Object[] aoArgs)
This is a convenience method that delegates to the corresponding method in I18NDelegate. Localized Strings are retrieved from the default I18N set of .properties files. If the I18N set is not yet loaded, it is done now.
Formatting is done through java.text.MessageFormat, using the current locale of the Applicet (getLocale()). If an Object argument is not null, it is used as such (these Object arguments can be Strings too). If an Object argument is null, it is replaced with the localized String named "patternname.i", where i is the number (0-9) of the argument; if such localized String cannot be found, its name is used as default value.
If no formatting can be done (named pattern not found), a return value is composed of the pattern name and the String representation of the Object arguments that are not null.
sPatternName - the property name of the pattern.aoArgs - array of Objects to format into the localized pattern
String; a null Object aoArgs[i] is replaced by a localized String
from the I18N set that has the property name
(sPatternName + "." + i)formatI18NString(String sPatternName, String sDefaultPattern, Object[] aoArgs),
getI18NDelegate,
I18NDelegate,
"Internationalization support"
public java.lang.String formatI18NString(java.lang.String sPatternName,
java.lang.String sDefaultPattern,
java.lang.Object[] aoArgs)
This is a convenience method that delegates to the corresponding method in I18NDelegate. Localized Strings are retrieved from the default I18N set of .properties files. If the I18N set is not yet loaded, it is done now.
Formatting is done through java.text.MessageFormat, using the current locale of the Applicet (getLocale()). If an Object argument is not null, it is used as such (these Object arguments can be Strings too). If an Object argument is null, it is replaced with the localized String named "patternname.i", where i is the number (0-9) of the argument; if such localized String cannot be found, its name is used as default value.
If no formatting can be done (named pattern not found and no default pattern given), a return value is composed of the pattern name and the String representation of the Object arguments that are not null.
sPatternName - the property name of the pattern.sDefaultPattern - the default pattern to use if the named
pattern is not found.aoArgs - array of Objects to format into the localized pattern
String; a null Object aoArgs[i] is replaced by a localized String
from the I18N set that has the property name
(sPatternName + "." + i)formatI18NString(String sPatternName, Object[] aoArgs),
getI18NDelegate,
I18NDelegate,
"Internationalization support"
public java.lang.String[][] getI18NParameterInfo(java.lang.String[][] aasDefaultParameterInfo,
char cDelimiter)
This is a convenience method that delegates to the corresponding method in I18NDelegate. If the I18N set is not yet loaded, it is done now.
An example of an appropriate parameter info definition can be found in be/arci/applet/Applicet.properties.
aasParameterInfo - array of parameter info Strings that acts as default. Each
element of the array should be a String array with as first element the parameter
name. Subsequent elements can supply default Strings for the type and description
of the parameter. Default type and description String elements that are not
present in the array or are null, will be replaced by an empty String if no
localized String is found for them.
cDelimiter - separator between type and description Strings in the
.properties files; one separated the respective Strings are trimmed.getI18NDelegate,
I18NDelegate,
"Internationalization support"public I18NDelegate getI18NDelegate()
getI18NDelegate in interface FrameworkI18NDelegate,
"Internationalization support"
|
Applicet Framework for Applets and Applications v2.03 | ||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||