01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.servers;
05:
06: import com.tc.admin.common.XObjectTableModel;
07:
08: public class ServerEnvTableModel extends XObjectTableModel {
09: static String[] FIELDS = { "Name", "Value" };
10:
11: public ServerEnvTableModel() {
12: super (ServerProperty.class, FIELDS, FIELDS);
13: }
14:
15: public ServerProperty getServerPropertyAt(int row) {
16: return (ServerProperty) getObjectAt(row);
17: }
18:
19: public boolean isCellEditable(int rowIndex, int columnIndex) {
20: return columnIndex == 1;
21: }
22: }
|