|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.AbstractListModel oracle.javatools.ui.table.BasicRowHeaderModel
public class BasicRowHeaderModel
A basic model for use with the RowHeader component. It adapts its selection from the table's selection model. By default row header items are empty. If clients want to use row numbers in the header, they can use the setShowRowNumber method. Clients can also pass a ListModel to this model to have any custom labels in rowHeader. But its their responsibility to make sure the table's row count matches the number of items in the listModel.
Field Summary |
---|
Fields inherited from class javax.swing.AbstractListModel |
---|
listenerList |
Constructor Summary | |
---|---|
BasicRowHeaderModel(javax.swing.table.TableModel tableModel)
Create a empty BasicRowHeaderModel for the underlying tableModel. |
|
BasicRowHeaderModel(javax.swing.table.TableModel tableModel,
boolean showNumber)
Create a BasicRowHeaderModel for the underlying tableModel which shows the row numbers in the row header. |
|
BasicRowHeaderModel(javax.swing.table.TableModel tableModel,
javax.swing.ListModel baseModel)
Create a BasicRowHeaderModel for the underlying tableModel which shows the the data from the base ListModel in the row header. |
Method Summary | |
---|---|
javax.swing.ListModel |
getBaseListMode()
Returns the base list model. |
java.lang.Object |
getElementAt(int index)
Returns the element at the index of the row header. |
int |
getSize()
Returns the table model's row count. |
javax.swing.table.TableModel |
getTableModel()
Returns the table model the rowHeader is representing. |
boolean |
isShowRowNumber()
Returns whether row header should show the row number in it. |
void |
setBaseListModel(javax.swing.ListModel baseModel)
Instead of showing empty items or row number depending on isShowRowNumber row header can show client specific data it base list model is specified. |
void |
setShowRowNumber(boolean show)
Sets whether row header should show the row number in it. |
void |
setTableModel(javax.swing.table.TableModel tableModel)
Set the tableModel this rowHeader is representing. |
Methods inherited from class javax.swing.AbstractListModel |
---|
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicRowHeaderModel(javax.swing.table.TableModel tableModel)
public BasicRowHeaderModel(javax.swing.table.TableModel tableModel, boolean showNumber)
public BasicRowHeaderModel(javax.swing.table.TableModel tableModel, javax.swing.ListModel baseModel)
Method Detail |
---|
public void setShowRowNumber(boolean show)
public boolean isShowRowNumber()
public void setTableModel(javax.swing.table.TableModel tableModel)
public javax.swing.table.TableModel getTableModel()
public void setBaseListModel(javax.swing.ListModel baseModel)
public javax.swing.ListModel getBaseListMode()
public int getSize()
public java.lang.Object getElementAt(int index)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |