ItEr13S14ArquitecturaClientesItEr11S12: Putting instance variables together.
This commit is contained in:
parent
f32b331695
commit
61d3940b4d
1 changed files with 20 additions and 21 deletions
|
|
@ -17,21 +17,36 @@ import org.zkoss.zul.Textbox;
|
|||
|
||||
public class TaskDetail extends HtmlMacroComponent implements AfterCompose {
|
||||
|
||||
|
||||
private static final Log LOG = LogFactory.getLog(TaskDetail.class);
|
||||
|
||||
private final TaskBean taskBean;
|
||||
|
||||
public TaskBean getTaskBean() {
|
||||
return taskBean;
|
||||
}
|
||||
|
||||
private Textbox nameBox;
|
||||
|
||||
private Textbox startDateTextBox;
|
||||
|
||||
private Textbox endDateTextBox;
|
||||
|
||||
private Datebox startDateBox;
|
||||
|
||||
private Datebox endDateBox;
|
||||
|
||||
private DateFormat dateFormat;
|
||||
|
||||
public static TaskDetail create(TaskBean bean) {
|
||||
return new TaskDetail(bean);
|
||||
}
|
||||
|
||||
private TaskDetail(TaskBean task) {
|
||||
this.taskBean = task;
|
||||
this.dateFormat = DateFormat.getDateInstance(DateFormat.SHORT, Locales
|
||||
.getCurrent());
|
||||
}
|
||||
|
||||
public TaskBean getTaskBean() {
|
||||
return taskBean;
|
||||
}
|
||||
|
||||
public Textbox getNameBox() {
|
||||
return nameBox;
|
||||
}
|
||||
|
|
@ -59,22 +74,6 @@ public class TaskDetail extends HtmlMacroComponent implements AfterCompose {
|
|||
this.endDateBox.setFormat("dd/MM/yyyy");
|
||||
}
|
||||
|
||||
private Datebox startDateBox;
|
||||
|
||||
private Datebox endDateBox;
|
||||
|
||||
public static TaskDetail create(TaskBean bean) {
|
||||
return new TaskDetail(bean);
|
||||
}
|
||||
|
||||
private DateFormat dateFormat;
|
||||
|
||||
private TaskDetail(TaskBean task) {
|
||||
this.taskBean = task;
|
||||
this.dateFormat = DateFormat.getDateInstance(DateFormat.SHORT, Locales
|
||||
.getCurrent());
|
||||
}
|
||||
|
||||
public TaskBean getData() {
|
||||
return taskBean;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue