ItEr13S14ArquitecturaClientesItEr11S12: Putting instance variables together.

This commit is contained in:
Óscar González Fernández 2009-06-20 18:32:35 +02:00 committed by Javier Moran Rua
parent f32b331695
commit 61d3940b4d

View file

@ -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;
}