1) package mypackage;
public MyUtilityClass
{
public static int computeLoanInterest(int amt, float interestRate,
int term) { ... }
public static native void defineBridgeMethod() /*-{
$wnd.computeLoanInterest = function(amt, intRate, term) {
return @mypackage.MyUtilityClass::computeLoanInterest(IFI)
(amt, intRate, term);
}
}-*/;
}
2)package mypackage;
public MyUtilityClass
{
public static int computeLoanInterest(int amt, float interestRate,
int term) { ... }
public static native void defineBridgeMethod() /*-{
$wnd.computeLoanInterest =
@mypackage.MyUtilityClass::computeLoanInterest(IFI)(amt, intRate,
term);
}
}-*/;
}
3)package mypackage;
public MyUtilityClass
{
public static int computeLoanInterest(int amt, float interestRate,
int term) { ... }
public static native void defineBridgeMethod() /*-{
@mypackage.MyUtilityClass::computeLoanInterest(IFI)(amt,
intRate, term);
}
}-*/;
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---