Java Reference
In-Depth Information
{
Set rvalue = null;
MLetNotification notif = null;
Object[] obj = { url };
String[] sig = { "java.lang.String" };
try
{
mbs.invoke( mletName, "addURL", obj, sig );
notif = new MLetNotification( MLetNotification.URL_TYPE,
this, -1 );
notif.setURL( url );
sendNotification( notif );
}
catch( Exception e )
{
notif = new MLetNotification( MLetNotification.ERROR_TYPE,
this, -1 );
notif.setURL( url );
sendNotification( notif );
}
}
public void addURL( URL url )
{
Set rvalue = null;
MLetNotification notif = null;
Object[] obj = { url };
String[] sig = { "java.net.URL" };
try
{
mbs.invoke( mletName, "addURL", obj, sig );
notif = new MLetNotification( MLetNotification.URL_TYPE,
this, -1 );
notif.setURL( url.toString() );
sendNotification( notif );
}
catch( Exception e )
{
notif = new MLetNotification( MLetNotification.ERROR_TYPE,
this, -1 );
notif.setURL( url.toString() );
sendNotification( notif );
}
}
E
public URL[] getURLs()
{
try
Search WWH ::




Custom Search