Ejemplo n.º 1
0
  /** set the value for the specified cell */
  public void setValueAt(final Object value, final int row, final int column) {
    final List<ImageEntry> entries = _imageEntries;

    if (row >= entries.size()) return;

    final ImageEntry entry = entries.get(row);

    switch (column) {
      case TITLE_COLUMN:
        entry.setTitle(value.toString());
        break;
      default:
        break;
    }
  }
Ejemplo n.º 2
0
  /** get the value for the specified cell */
  public Object getValueAt(final int row, final int column) {
    final List<ImageEntry> entries = _imageEntries;

    if (row >= entries.size()) return null;

    final ImageEntry entry = entries.get(row);

    switch (column) {
      case FILE_NAME_COLUMN:
        return entry.getImageFile().getName();
      case TITLE_COLUMN:
        return entry.getTitle();
      default:
        return null;
    }
  }