RADi Runtime Library v1.2.1

de.muntjak.radiloader
Class RadiLoader

java.lang.Object
  extended by de.muntjak.radiloader.RadiLoader

public class RadiLoader
extends Object

RadiLoader is the central RADi runtime class. One of the static loadObjects methods must be called from client code to load and instantiate the GUI.


Constructor Summary
RadiLoader()
           
 
Method Summary
static Object getBorderFromString(String jis)
          This method is public only so it can be called from R-Bean instances.
static Icon getIconFromString(String s)
          This method is public only so it can be called from R-Bean instances.
static Object getURLFromString(String jis)
          This method is public only so it can be called from R-Bean instances.
static void loadObjects(Object target, String fn)
          This variant of loadObjects() is called by default from RADi-generated code.
static void loadObjects(Object target, String fn, boolean silent)
          This method should be called from the constructor of the target class respective from an applet's init method.
static void loadObjects(Object target, String fn, Locale locale)
          Call this method only for testing internationalization ResourceBundles but not for a public release.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RadiLoader

public RadiLoader()
Method Detail

loadObjects

public static void loadObjects(Object target,
                               String fn)
This variant of loadObjects() is called by default from RADi-generated code. It is equal to calling loadObjects(Object, String, boolean) with a third argument of false.

Parameters:
target - the calling class
fn - name of the layout definition file to process
See Also:
loadObjects(Object, String, boolean)

loadObjects

public static void loadObjects(Object target,
                               String fn,
                               boolean silent)
This method should be called from the constructor of the target class respective from an applet's init method.

Parameters:
target - the calling class
fn - name of the layout definition file to process
silent - suppress warnings on System.err about missing member declarations, missing resources, missing event targets or property targets

loadObjects

public static void loadObjects(Object target,
                               String fn,
                               Locale locale)
Call this method only for testing internationalization ResourceBundles but not for a public release.

WARNING: Calling this method from an unsigned applet will cause an AccessControlException because unsigned applets are not allowed to change the user's locale.

Parameters:
target - the calling class
fn - name of the layout definition file to process
locale - a locale which will be set as the default locale. Specifying null will cause a NullPointerException to be thrown
Throws:
NullPointerException - if locale is null

getBorderFromString

public static Object getBorderFromString(String jis)
This method is public only so it can be called from R-Bean instances. Do not call it.

Parameters:
jis - a string describing the border to create
Returns:
a Border object which might be null
Since:
1.2

getIconFromString

public static Icon getIconFromString(String s)
This method is public only so it can be called from R-Bean instances. Do not call it.

Parameters:
s - a string describing the icon to create
Returns:
an icon which might be null
Since:
1.2

getURLFromString

public static Object getURLFromString(String jis)
This method is public only so it can be called from R-Bean instances. Do not call it.

Parameters:
jis - a string describing the URL to create
Returns:
an URL object which might be null
Since:
1.2

RADi Runtime Library v1.2.1