\r
public void buttonClick(ClickEvent event) {\r
Button b = event.getButton();\r
- System.out.println(event.getButton().getCaption()\r
- + " click: " + (new Date()).toGMTString());\r
- System.out.println(event.getButton().getApplication());\r
+ System.out.println(b.getCaption() + " click: "\r
+ + (new Date()).toGMTString());\r
+ System.out.println(b.getApplication());\r
\r
}\r
}));\r
calendar.add(Calendar.DAY_OF_YEAR, i);
// Create the table row.
- table.addItem(new Object[] { calendar.getTime(),
- new Boolean(false), "" }, new Integer(i)); // Item
- // identifier
+ table.addItem(
+ new Object[] { calendar.getTime(), Boolean.FALSE, "" },
+ new Integer(i)); // Item identifier
}
table.setPageLength(8);
}
});
- errorIndicators.setValue(new Boolean(false));
- readonly.setValue(new Boolean(false));
- enabled.setValue(new Boolean(true));
+ errorIndicators.setValue(Boolean.FALSE);
+ readonly.setValue(Boolean.FALSE);
+ enabled.setValue(Boolean.TRUE);
errorIndicators.setImmediate(true);
readonly.setImmediate(true);
}
});
- errorIndicators.setValue(new Boolean(false));
- readonly.setValue(new Boolean(false));
- enabled.setValue(new Boolean(true));
+ errorIndicators.setValue(Boolean.FALSE);
+ readonly.setValue(Boolean.FALSE);
+ enabled.setValue(Boolean.TRUE);
errorIndicators.setImmediate(true);
readonly.setImmediate(true);
}
});
- errorIndicators.setValue(new Boolean(false));
- readonly.setValue(new Boolean(false));
- enabled.setValue(new Boolean(true));
+ errorIndicators.setValue(Boolean.FALSE);
+ readonly.setValue(Boolean.FALSE);
+ enabled.setValue(Boolean.TRUE);
errorIndicators.setImmediate(true);
readonly.setImmediate(true);
}
});
- errorIndicators.setValue(new Boolean(false));
- readonly.setValue(new Boolean(false));
- enabled.setValue(new Boolean(true));
+ errorIndicators.setValue(Boolean.FALSE);
+ readonly.setValue(Boolean.FALSE);
+ enabled.setValue(Boolean.TRUE);
errorIndicators.setImmediate(true);
readonly.setImmediate(true);
}\r
});\r
\r
- errorIndicators.setValue(new Boolean(false));\r
- readonly.setValue(new Boolean(false));\r
- enabled.setValue(new Boolean(true));\r
+ errorIndicators.setValue(Boolean.FALSE);\r
+ readonly.setValue(Boolean.FALSE);\r
+ enabled.setValue(Boolean.TRUE);\r
\r
errorIndicators.setImmediate(true);\r
readonly.setImmediate(true);\r
}
});
- errorIndicators.setValue(new Boolean(false));
- required.setValue(new Boolean(false));
- readonly.setValue(new Boolean(false));
- enabled.setValue(new Boolean(true));
+ errorIndicators.setValue(Boolean.FALSE);
+ required.setValue(Boolean.FALSE);
+ readonly.setValue(Boolean.FALSE);
+ enabled.setValue(Boolean.TRUE);
errorIndicators.setImmediate(true);
required.setImmediate(true);
}
});
- errorIndicators.setValue(new Boolean(false));
- readonly.setValue(new Boolean(false));
- enabled.setValue(new Boolean(true));
- nullSelect.setValue(new Boolean(false));
+ errorIndicators.setValue(Boolean.FALSE);
+ readonly.setValue(Boolean.FALSE);
+ enabled.setValue(Boolean.TRUE);
+ nullSelect.setValue(Boolean.FALSE);
errorIndicators.setImmediate(true);
readonly.setImmediate(true);
}
});
- errorIndicators.setValue(new Boolean(false));
- required.setValue(new Boolean(false));
- readonly.setValue(new Boolean(false));
- enabled.setValue(new Boolean(true));
+ errorIndicators.setValue(Boolean.FALSE);
+ required.setValue(Boolean.FALSE);
+ readonly.setValue(Boolean.FALSE);
+ enabled.setValue(Boolean.TRUE);
errorIndicators.setImmediate(true);
required.setImmediate(true);
// Customization for Window component
if (objectToConfigure instanceof Window) {
- disableField(set.getField("enabled"), new Boolean(true));
- disableField(set.getField("visible"), new Boolean(true));
+ disableField(set.getField("enabled"), Boolean.TRUE);
+ disableField(set.getField("visible"), Boolean.TRUE);
disableField(set.getField("componentError"));
disableField(set.getField("icon"));
}