KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > servers > ServerEnvTableModel


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.servers;
5
6 import com.tc.admin.common.XObjectTableModel;
7
8 public class ServerEnvTableModel extends XObjectTableModel {
9   static String JavaDoc[] 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 }
23
Popular Tags