@Override
 public void init() {
   try {
     Internal internal =
         BookUtil.get(mainFrame, BookKey.CHRONO_ZOOM, SbConstants.DEFAULT_CHRONO_ZOOM);
     setZoomedSize(internal.getIntegerValue());
   } catch (Exception e) {
     setZoomedSize(SbConstants.DEFAULT_CHRONO_ZOOM);
   }
 }
 @Override
 public void init() {
   try {
     Internal internal =
         BookUtil.get(mainFrame, BookKey.MANAGE_COLUMNS, SbConstants.DEFAULT_MANAGE_COLUMNS);
     cols = internal.getIntegerValue();
   } catch (Exception e) {
     e.printStackTrace();
     cols = SbConstants.DEFAULT_MANAGE_COLUMNS;
   }
 }
Beispiel #3
0
 @SuppressWarnings("unchecked")
 private void initUI() {
   paramExport = new ParamExport(mainFrame);
   paramExport.load();
   Internal internal =
       BookUtil.get(
           mainFrame,
           SbConstants.BookKey.EXPORT_DIRECTORY,
           EnvUtil.getDefaultExportDir(mainFrame));
   txFolder.setText(internal.getStringValue());
   if (txFolder.getText().isEmpty()) txFolder.setText(FileUtils.getUserDirectoryPath());
   cbReport.removeAllItems();
   for (ExportData export : exports) {
     cbReport.addItem(export);
   }
   cbReport.setSelectedIndex(0);
   cbFormat.removeAllItems();
   for (String zformat : formats) {
     cbFormat.addItem(zformat);
   }
   cbFormat.setSelectedItem("html");
 }
 protected int getZoomValue() {
   Internal internal =
       BookUtil.get(mainFrame, BookKey.MANAGE_ZOOM, SbConstants.DEFAULT_MANAGE_ZOOM);
   return internal.getIntegerValue();
 }