Setterをメソッドチェーンに対応

This commit is contained in:
r-ca 2024-01-28 10:31:40 +09:00
parent c717f4c596
commit e5ba889780
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -31,20 +31,24 @@ public class LacertaFilePickerDialogBase extends DialogFragment {
protected String negativeButtonText;
// Setter
public void setTitle(String title) {
public LacertaFilePickerDialogBase setTitle(String title) {
this.title = title;
return this;
}
public void setMessage(String message) {
public LacertaFilePickerDialogBase setMessage(String message) {
this.message = message;
return this;
}
public void setPositiveButtonText(String positiveButtonText) {
public LacertaFilePickerDialogBase setPositiveButtonText(String positiveButtonText) {
this.positiveButtonText = positiveButtonText;
return this;
}
public void setNegativeButtonText(String negativeButtonText) {
public LacertaFilePickerDialogBase setNegativeButtonText(String negativeButtonText) {
this.negativeButtonText = negativeButtonText;
return this;
}
// Methods