コメント |
[[User]]
@DIV
public class User extends BaseObservable {
private String firstName;
private String lastName;
@c:red(@Bindable
public String getFirstName)() {
return this.firstName;
}
@c:red(@Bindable
public String getLastName)() {
return this.lastName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
notifyPropertyChanged(sample.lightbox.myapplication.BR.firstName);
}
public void setLastName(String lastName) {
this.lastName = lastName;
notifyPropertyChanged(sample.lightbox.myapplication.BR.lastName);
}
}
@END
[[Item]] @C:red(バインドと Firebase で使用)
@DIV
public class Item extends BaseObservable {
private String title;
private String text;
private boolean flg = false;
public Item() {}
public Item(String text,String title) {
this.text = text;
this.title = title;
}
@c:red(@Bindable
public String getText)() {
return this.text;
}
@c:red(@Bindable
public String getTitle)() {
return this.title;
}
public void setText(String text) {
this.text = text;
notifyPropertyChanged(sample.lightbox.myapplication.BR.text);
}
public void seTitle(String title) {
this.title = title;
notifyPropertyChanged(sample.lightbox.myapplication.BR.title);
}
public String getCode() {
return title;
}
public String getName() {
return text;
}
public void setCode(String code) {
this.title = code;
}
public void setName(String name) {
this.text = name;
}
}
@END |