|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jaret.util.ui.timebars.model.AbstractTimeBarModel
de.jaret.util.ui.timebars.model.DefaultTimeBarModel
public class DefaultTimeBarModel
A default implementation of the TimeBarModel interface. Extends the AbstractTimeBarModel.
| Field Summary | |
|---|---|
protected java.util.List<TimeBarRow> |
_rows
list of the rows. |
| Fields inherited from class de.jaret.util.ui.timebars.model.AbstractTimeBarModel |
|---|
_listenerList, _maxDate, _minDate |
| Constructor Summary | |
|---|---|
DefaultTimeBarModel()
|
|
| Method Summary | |
|---|---|
void |
addRow(int index,
TimeBarRow row)
Add a row. |
void |
addRow(TimeBarRow row)
Add a row. |
int |
getIndexForRow(TimeBarRow row)
Retrieve the model index of a given row. |
TimeBarRow |
getRow(int row)
Return the row for the given index. |
int |
getRowCount()
Get the number of rows in the model. |
void |
remRow(TimeBarRow row)
Remove a row from the model. |
| Methods inherited from class de.jaret.util.ui.timebars.model.AbstractTimeBarModel |
|---|
addTimeBarModelListener, elementAdded, elementChanged, elementRemoved, fireElementAdded, fireElementChanged, fireElementRemoved, fireHeaderChanged, fireModelDataChanged, fireRowAdded, fireRowDataChanged, fireRowRemoved, getMaxDate, getMinDate, getRowForInterval, headerChanged, remTimeBarModelListener, rowDataChanged, updateMinMax |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.List<TimeBarRow> _rows
| Constructor Detail |
|---|
public DefaultTimeBarModel()
| Method Detail |
|---|
public TimeBarRow getRow(int row)
row - index of the row
public int getRowCount()
public void addRow(TimeBarRow row)
row - row to add.
public void addRow(int index,
TimeBarRow row)
index - index the row should be inserted. -1 marks append to the end.row - row to add.public void remRow(TimeBarRow row)
row - row to removepublic int getIndexForRow(TimeBarRow row)
row - row to check
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||