JIDE 3.5.15

com.jidesoft.grid
Class AbstractPropertyTableModel<T extends Property>

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by com.jidesoft.grid.TreeTableModel<T>
          extended by com.jidesoft.grid.PropertyTableModel<T>
              extended by com.jidesoft.grid.AbstractPropertyTableModel<T>
All Implemented Interfaces:
CategorizedTableModel, ContextSensitiveTableModel, EditorStyleTableModel, IndexChangeEventGenerator, ITreeTableModel<T>, MultiTableModel, SpanModel, PropertyChangeListener, Serializable, EventListener, TableModel

public abstract class AbstractPropertyTableModel<T extends Property>
extends PropertyTableModel<T>

The table model is used by PropertyTable. Different from PropertyTableModel, this class doesn't require a list of properties to pass into the constructor. Instead, subclass just need to implement two abstract methods.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.jidesoft.grid.PropertyTableModel
_indentNonCategoryRow, CATEGORIZED, SORTED, UNSORTED
 
Fields inherited from class com.jidesoft.grid.TreeTableModel
_filtersApplied
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Fields inherited from interface com.jidesoft.grid.EditorStyleTableModel
EDITOR_STYLE_EDITABLE, EDITOR_STYLE_NORMAL, EDITOR_STYLE_READ_ONLY, EDITOR_STYLE_SELECT_ONLY
 
Fields inherited from interface com.jidesoft.grid.MultiTableModel
FOOTER_COLUMN, HEADER_COLUMN, REGULAR_COLUMN
 
Constructor Summary
AbstractPropertyTableModel()
          Creates an empty AbstractPropertyTableModel.
 
Method Summary
protected  List<T> createPropertyList()
           
abstract  T getProperty(int index)
          Gets the property at the index.
abstract  int getPropertyCount()
          Gets the number of properties.
 
Methods inherited from class com.jidesoft.grid.PropertyTableModel
addPropertyChangeListener, addPropertyChangeListener, addRow, addRows, addRows, bind, buildProperties, compares, createCategory, filterProperty, findProperty, firePropertyChange, firePropertyChange, firePropertyChange, getCategories, getCategoryOrder, getCellClassAt, getCellSpanAt, getColumnCount, getColumnName, getComparator, getConverterContextAt, getEditorContextAt, getEditorStyleAt, getExpansionState, getMiscCategoryName, getOrder, getOriginalProperties, getOriginalProperties, getProperties, getProperties, getProperty, getPropertyAt, getPropertyChangeListeners, getPropertyChangeListeners, getPropertyIndex, getVisibleProperty, isCategoryRow, isCellEditable, isCellSpanOn, isIndentNonCategoryRow, isShowExpert, propertyChange, refresh, reloadProperties, removePropertyChangeListener, removePropertyChangeListener, removeRow, renameCategory, setCategories, setCategoryOrder, setComparator, setExpansionState, setIndentNonCategoryRow, setMiscCategoryName, setOrder, setOriginalProperties, setOriginalRows, setShowExpert, setValueAt, shouldBeFiltered, unbind
 
Methods inherited from class com.jidesoft.grid.TreeTableModel
addIndexChangeListener, addRow, addRow, addRow, addRow, addRows, addRows, addRows, buildRows, cacheAll, collapseAll, collapseFirstLevel, collapseLastLevel, collapseRows, createCompoundTableModelEvent, createRoot, createRows, expandAll, expandFirstLevel, expandNextLevel, expandRow, expandRows, expandTreePath, fireTableRowsUpdated, getChild, getChildCount, getColumnType, getIndexChangeListeners, getIndexOfChild, getOriginalRows, getRoot, getRowAt, getRowCount, getRowCount, getRowIndex, getRows, getRows, getTableIndex, getValueAt, invalidateCache, isAdjusting, isAutoExpand, isFilterParent, isFiltersApplied, isInitialized, isLeaf, moveDownRow, moveUpRow, removeIndexChangeListener, removeRow, setAdjusting, setAutoExpand, setChildren, setFilterParent, setFiltersApplied
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, removeTableModelListener
 

Constructor Detail

AbstractPropertyTableModel

public AbstractPropertyTableModel()
Creates an empty AbstractPropertyTableModel.

Method Detail

createPropertyList

protected List<T> createPropertyList()

getPropertyCount

public abstract int getPropertyCount()
Gets the number of properties.

Returns:
the number of properties

getProperty

public abstract T getProperty(int index)
Gets the property at the index.

Parameters:
index - the index
Returns:
the property at the index.

JIDE 3.5.15