ServerEnvTableModel.java :  » Net » Terracotta » com » tc » servers » Java Open Source

Java Open Source » Net » Terracotta 
Terracotta » com » tc » servers » ServerEnvTableModel.java
/*
 * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice.  All rights reserved.
 */
package com.tc.servers;

import com.tc.admin.common.XObjectTableModel;

public class ServerEnvTableModel extends XObjectTableModel {
  static String[] FIELDS = {"Name", "Value"};
  
  public ServerEnvTableModel() {
    super(ServerProperty.class, FIELDS, FIELDS);
  }
  
  public ServerProperty getServerPropertyAt(int row) {
    return (ServerProperty)getObjectAt(row);
  }
  
  public boolean isCellEditable(int rowIndex, int columnIndex) {
    return columnIndex == 1;
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.