Examples of BOFile


Examples of com.zycus.dotproject.bo.BOFile

      } else if (column == 1) {
        return files.get(row).getRealFilename();
      } else if (column == 2) {
        return files.get(row).getFileDescription();
      } else if (column == 3) {
        BOFile file = files.get(row);
        if (file.getVersionCount() > 1) {
          return files.get(row).getFileVersion() + " ( " + file.getVersionCount() + " )";
        } else {
          return files.get(row).getFileVersion();
        }
      } else if (column == 4) {
        return files.get(row).getFileCategory();
View Full Code Here

Examples of com.zycus.dotproject.bo.BOFile

      } else if (column == 1) {
        return files.get(row).getRealFilename();
      } else if (column == 2) {
        return files.get(row).getFileDescription();
      } else if (column == 3) {
        BOFile file = files.get(row);
        if (file.getVersionCount() > 1) {
          return files.get(row).getFileVersion() + " ( " + file.getVersionCount() + " )";
        } else {
          return files.get(row).getFileVersion();
        }
      } else if (column == 4) {
        return files.get(row).getFileCategory();
View Full Code Here

Examples of com.zycus.dotproject.bo.BOFile

      DialogUtility.closeParent(this);
    } else if (actionType == ActionType.Save) {
      if (validateEntry() == false) {
        return;
      }
      file = new BOFile();
      file.setFileDescription(txtFileDescription.getText());
      file.setFileCategory((FileCategory) cmbFileCategory.getSelectedItem());
      file.setRealFilename(realFile.getName());
      file.setFileMimeType(FileSystemView.getFileSystemView().getSystemTypeDescription(realFile));
      file.setFileVersion(1.0f);
View Full Code Here

Examples of com.zycus.dotproject.bo.BOFile

  private void onViewFile() {
    int selectedIndex = taskFiles.getSelectedRow();
    if (selectedIndex < 0) {
      return;
    }
    BOFile taskFile = (BOFile) taskFiles.getValueAt(selectedIndex, -1);
    JFileChooser fileChooser = new JFileChooser() {
      @Override
      public void cancelSelection() {
        Map<Thread, StackTraceElement[]> stackTrace = Thread.getAllStackTraces();
        if (stackTrace.get(Thread.currentThread())[4].getFileName().contains("AbstractButton")) {
          super.cancelSelection();
        }
      }
    };
    File f = null;
    if (ApplicationContext.getUserPreferences().getUserSelectedDir() != null) {
      f = new File(ApplicationContext.getUserPreferences().getUserSelectedDir() + File.separator + taskFile.getRealFilename());
    } else {
      f = new File(System.getProperty("java.io.tmpdir") + taskFile.getRealFilename());

    }
    fileChooser.setSelectedFile(f);
    fileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
    fileChooser.setMultiSelectionEnabled(false);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.