Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Modifiers | Name | Description |
---|---|---|
protected static class |
DefaultTableModel.MyTableColumnModel |
Constructor and description |
---|
DefaultTableModel
(ValueModel rowsModel) |
DefaultTableModel
(ValueModel rowsModel, ValueModel rowModel) |
Type | Name and description |
---|---|
DefaultTableColumn |
addClosureColumn(Object headerValue, Closure readClosure, Closure writeClosure, Class type) Adds a closure based column to the table |
DefaultTableColumn |
addColumn(Object headerValue, ValueModel columnValueModel) |
DefaultTableColumn |
addColumn(Object headerValue, Object identifier, ValueModel columnValueModel) |
void |
addColumn(DefaultTableColumn column) Adds a new column definition to the table |
DefaultTableColumn |
addPropertyColumn(Object headerValue, String property, Class type) Adds a property model column to the table |
DefaultTableColumn |
addPropertyColumn(Object headerValue, String property, Class type, boolean editable) Adds a property model column to the table |
Class |
getColumnClass(int columnIndex) |
int |
getColumnCount() |
List |
getColumnList() @return the column definitions. |
TableColumnModel |
getColumnModel() |
protected ValueModel |
getColumnModel(int columnIndex) |
String |
getColumnName(int columnIndex) |
int |
getRowCount() |
ValueModel |
getRowModel() |
protected List |
getRows() |
ValueModel |
getRowsModel() |
Object |
getValueAt(int rowIndex, int columnIndex) |
boolean |
isCellEditable(int rowIndex, int columnIndex) |
void |
removeColumn(DefaultTableColumn column) Removes a column definition from the table |
void |
setValueAt(Object value, int rowIndex, int columnIndex) |
Methods inherited from class | Name |
---|---|
class AbstractTableModel |
fireTableCellUpdated, fireTableChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, isCellEditable, setValueAt, addTableModelListener, fireTableDataChanged, getColumnClass, getTableModelListeners, removeTableModelListener, getListeners, findColumn, getColumnName, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll, getColumnCount, getRowCount, getValueAt |
class Object |
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Adds a closure based column to the table
Adds a new column definition to the table
Adds a property model column to the table
Adds a property model column to the table
Removes a column definition from the table
Copyright © 2003-2015 The Apache Software Foundation. All rights reserved.