Package cli_fmw.report.panels.model.report

Examples of cli_fmw.report.panels.model.report.ReportFilesListModel


  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 {
View Full Code Here

TOP

Related Classes of cli_fmw.report.panels.model.report.ReportFilesListModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.