| Modifier | Constructor and Description |
|---|---|
protected |
AbstractRowModel()
Cria o modelo.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRowModelListener(RowModelListener<R> listener)
Adiciona um observador ao modelo.
|
void |
fireRowWasAdded(R newRowValue,
int newRowIndex)
Dispara o evento
RowModelListener.rowWasAdded(Object, int). |
void |
fireRowWasRemoved(R oldRowValue,
int oldRowIndex)
Dispara o evento
RowModelListener.rowWasRemoved(Object, int). |
boolean |
isEmpty()
Indice se a lista está vazia.
|
Iterator<R> |
iterator() |
boolean |
removeRowModelListener(RowModelListener<R> listener)
Remove um observador.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddRow, getRow, getRowCount, getRows, removeRowforEach, spliteratorpublic void addRowModelListener(RowModelListener<R> listener)
RowModeladdRowModelListener in interface RowModel<R>listener - O observador (Não aceita null).public final void fireRowWasAdded(R newRowValue, int newRowIndex)
RowModelListener.rowWasAdded(Object, int).newRowValue - O valor da linha.newRowIndex - O índice da linha.public final void fireRowWasRemoved(R oldRowValue, int oldRowIndex)
RowModelListener.rowWasRemoved(Object, int).oldRowValue - O valor da linha.oldRowIndex - O índice da linha.public boolean isEmpty()
RowModelpublic boolean removeRowModelListener(RowModelListener<R> listener)
RowModelremoveRowModelListener in interface RowModel<R>listener - O observador (Não aceita null).true sucesso ou false se o observador não existir.Copyright © 2020. All rights reserved.