void initModels(){
try {
reportListModel = new DelegateListModel<ReportLocal>(new ReportSearchLocal(getAuditManager()).getReports());
reportList.setModel(reportListModel);
container = new DelegateListener<ReportLocal>();
new ObjectComboBoxModel<ReportLocal>(mainFileCBox, container, new ReportFilesListModel(mainFileCBox, container, true)) {
private static final long serialVersionUID = 1L;
public void setSelectedItemImp(Object anItem) throws ClipsException {
if (anItem != null){
if (anItem instanceof FileLocal && ((FileLocal)anItem).getFileTypeID() == FileDetails.TYPE_JASPER_REPORT){
try {
getObject().setMainFile((FileLocal) anItem);
} catch (JRException ex) {
MessageBox.showExceptionOnly(ex);
}
}
}
}
public Object getSelectedItemImp() throws ClipsException {
return getObject().getMainFile();
}
};
new ReportFilesListModel(fileList, container, false);
nameModel = new DelegateTextModel<ReportLocal>(reportNameTextField, null) {
private static final long serialVersionUID = 1L;
@Override
public void setModelTextChecked(String text) throws ClipsException {