예제 #1
0
    /**
     * Gets the bundle ID from a row in the table
     *
     * @param row the row from which to get the bundle ID
     * @return teh ID of the bundle at a specific row
     */
    public Long getBundleIdFromRow(int row) {
      if (row < 0 || row >= getRowCount()) {
        return null;
      }

      BundleData dataRow = localList.get(row);
      return dataRow.getId();
    }
예제 #2
0
    /** @see javax.swing.table.TableModel#getValueAt(int, int) */
    @Override
    public Object getValueAt(int row, int col) {
      if (row < 0 || row >= getRowCount()) {
        return "";
      }

      BundleData dataRow = localList.get(row);
      switch (col) {
        case 0:
          return dataRow.getId();
        case 1:
          return dataRow.getState();
        case 2:
          return dataRow.getLocation();
        case 3:
          return dataRow.getBundleName();
      }
      return "";
    }