138
Chapter 7: Using Flash Remoting for Java
The
calculate()
function returns the following LoanInfo bean:
package samples;
public class LoanInfo {
private double principal;
private int months;
private float rate;
private double monthlyPayment;
public LoanInfo() {
}
public LoanInfo(double principal, int months, float rate, double
monthlyPayment) {
this.principal=principal;
this.months=months;
this.rate=rate;
this.monthlyPayment=monthlyPayment;
}
public LoanInfo(double principal, int months, float rate, double
monthlyPayment, String message) {
this.principal=principal;
this.months=months;
this.rate=rate;
this.monthlyPayment=monthlyPayment;
this.message=message;
}
public void setPrincipal(double principal) {
this.principal=principal;
}
public double getPrincipal() {
return principal;
}
public void setMonths(int months) {
this.months=months;
}
public int getMonths() {
return months;
}
public void setRate(float rate) {
this.rate=rate;
}
public float getRate() {
return rate;
}
public void setMonthlyPayment(double monthlyPayment) {
this.monthlyPayment=monthlyPayment;
}
public double getMonthlyPayment() {
return monthlyPayment;
}
}
Содержание FLASH REMOTING MX-USING FLASH REMOTING FOR FLASH MX 2004 ACTIONSCRIPT...
Страница 1: ...Using Flash Remoting for Flash MX 2004 ActionScript 2 0...
Страница 8: ...8 Contents...
Страница 62: ...62 Chapter 3 Using the RemotingConnector component Flash Professional only...
Страница 142: ...142 Chapter 7 Using Flash Remoting for Java...