예제 #1
0
 private void showInfoActionPerformed() {
   java.util.List itemList = grid.getCheckedRows();
   if (itemList.size() > 0) {
     ViewRecordScreen screen = new ViewRecordScreen(getSubsystemApp());
     List selectedRows = new ArrayList();
     for (int i = 0; i < itemList.size(); i++) {
       CopyRightReportRowData data = (CopyRightReportRowData) itemList.get(i);
       TempCopyrightRecord copyrightRecord = (TempCopyrightRecord) data.getEntity();
       selectedRows.add(copyrightRecord);
     }
     screen.setData(selectedRows);
     screen.showModal();
   } else {
     MessagePanes.showWarningDialog(
         this, props.getProperty(StandardActionNames.SELECT_ONE_ROW), local);
   }
 }
예제 #2
0
  private void setGridColumns() {
    CopyRightReportRowData rowData = new CopyRightReportRowData(local);
    GridColumnModel model = new GridColumnModel();
    GridColumn column = null;

    column =
        new GridColumn(
            CopyRightReportRowData.TITLE_COL,
            rowData.getDisplayName(CopyRightReportRowData.TITLE_COL),
            65);
    column.setAlignment(SwingConstants.RIGHT);
    model.addColumn(column);

    column =
        new GridColumn(
            CopyRightReportRowData.WRITER_COL,
            rowData.getDisplayName(CopyRightReportRowData.WRITER_COL),
            65);
    column.setAlignment(SwingConstants.RIGHT);
    model.addColumn(column);

    column =
        new GridColumn(
            CopyRightReportRowData.PUBLISHER_COL,
            rowData.getDisplayName(CopyRightReportRowData.PUBLISHER_COL),
            65);
    column.setAlignment(SwingConstants.RIGHT);
    model.addColumn(column);

    column =
        new GridColumn(
            CopyRightReportRowData.REQUEST_DATE_COL,
            rowData.getDisplayName(CopyRightReportRowData.REQUEST_DATE_COL),
            65);
    model.addColumn(column);

    column =
        new GridColumn(
            CopyRightReportRowData.ANSWER_DATE_COL,
            rowData.getDisplayName(CopyRightReportRowData.ANSWER_DATE_COL),
            65);
    model.addColumn(column);

    column =
        new GridColumn(
            CopyRightReportRowData.NUMBER_DATE_COL,
            rowData.getDisplayName(CopyRightReportRowData.NUMBER_DATE_COL),
            65);
    model.addColumn(column);

    column =
        new GridColumn(
            CopyRightReportRowData.NUMBER_COL,
            rowData.getDisplayName(CopyRightReportRowData.NUMBER_COL),
            65);
    model.addColumn(column);

    column =
        new GridColumn(
            CopyRightReportRowData.USER_COL,
            rowData.getDisplayName(CopyRightReportRowData.USER_COL),
            65);
    column.setAlignment(SwingConstants.RIGHT);
    model.addColumn(column);

    grid = new UltraGrid(screenTitle, model, dataFetcher, local);
  }