DataType - public class BrowsableData<DataType extends AbstractHibernateObject> extends Object implements ListModel
| Modifier and Type | Field and Description |
|---|---|
protected EventListenerList |
listeners |
| Constructor and Description |
|---|
BrowsableData(ListProvider<DataType> dataprov) |
BrowsableData(ListProvider<DataType> dataprov,
Comparator<DataType> c) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListDataListener(ListDataListener l) |
boolean |
canDeleteData() |
boolean |
canInsertData() |
boolean |
canLoadData() |
boolean |
canUpdateData() |
int |
findNext(int index,
Finder f) |
protected void |
fireDataContentsChanged(int index0,
int index1) |
protected void |
fireDataIntervalAdded(int index0,
int index1) |
protected void |
fireDataIntervalRemoved(int index0,
int index1) |
DataType |
getElementAt(int index) |
int |
getSize() |
int |
insertRecord(DataType value) |
boolean |
isAdjusting() |
void |
loadData() |
void |
loadList(List<DataType> l) |
void |
refreshData() |
void |
removeListDataListener(ListDataListener l) |
int |
removeRecord(int index) |
void |
setCanDelete(boolean canDelete) |
void |
setCanInsert(boolean canInsert) |
void |
setCanUpdate(boolean canUpdate) |
void |
sort(Comparator<DataType> c) |
void |
unloadData() |
int |
updateRecord(int index,
DataType value) |
protected EventListenerList listeners
public BrowsableData(ListProvider<DataType> dataprov, Comparator<DataType> c)
public BrowsableData(ListProvider<DataType> dataprov)
public final void addListDataListener(ListDataListener l)
addListDataListener in interface ListModelpublic final void removeListDataListener(ListDataListener l)
removeListDataListener in interface ListModelpublic final DataType getElementAt(int index)
getElementAt in interface ListModelpublic final boolean isAdjusting()
protected void fireDataIntervalAdded(int index0,
int index1)
protected void fireDataContentsChanged(int index0,
int index1)
protected void fireDataIntervalRemoved(int index0,
int index1)
public void refreshData()
throws BasicException
BasicExceptionpublic void loadData()
throws BasicException
BasicExceptionpublic void unloadData()
throws BasicException
BasicExceptionpublic void sort(Comparator<DataType> c) throws BasicException
BasicExceptionpublic final boolean canLoadData()
public boolean canInsertData()
public boolean canDeleteData()
public boolean canUpdateData()
public final int findNext(int index,
Finder f)
throws BasicException
BasicExceptionpublic final int removeRecord(int index)
throws BasicException
BasicExceptionpublic final int updateRecord(int index,
DataType value)
throws BasicException
BasicExceptionpublic final int insertRecord(DataType value) throws BasicException
BasicExceptionpublic void setCanDelete(boolean canDelete)
public void setCanInsert(boolean canInsert)
public void setCanUpdate(boolean canUpdate)
Copyright © 2021. All rights reserved.