|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.iver.cit.gvsig.fmap.layers.SelectableDataSource
DataSource seleccionable.
Constructor Summary | |
SelectableDataSource(DataSource ds)
Crea un nuevo SelectableDataSource. |
Method Summary | |
void |
addSelectionListener(SelectionListener listener)
Añade un nuevo Listener al SelectionSupport. |
void |
clearSelection()
Borra la selección. |
void |
fireSelectionEvents()
Cuando ocurre un evento de cambio en la selección, éste puede ser uno de una gran cantidad de eventos. |
java.lang.String |
getDBMS()
Devuelve el DBMS. |
ReadDriver |
getDriver()
Devuelve el driver de la capa. |
int |
getFieldCount()
Devuelve el número de campos. |
int |
getFieldIndexByName(java.lang.String arg0)
Devuelve el índice del campo a partir de su nombre. |
java.lang.String |
getFieldName(int arg0)
Devuelve el nombre del campo a partir del índice. |
Value |
getFieldValue(long arg0,
int arg1)
Devuelve el valor a partir del númro de fila y columna. |
java.lang.String |
getName()
Devuelve el nombre del DataSource. |
long |
getRowCount()
Devuelve el númro de filas en total. |
FBitSet |
getSelection()
Develve un FBitSet con los índices de los elementos seleccionados. |
SelectionSupport |
getSelectionSupport()
Devuelve el SelectionSupport. |
long[] |
getWhereFilter()
|
XMLEntity |
getXMLEntity()
Devuelve el XMLEntity con la información necesaria para reproducir el DataSource. |
boolean |
isSelected(int recordIndex)
Devuelve true si el elemento está seleccionado. |
void |
removeSelectionListener(SelectionListener listener)
Borra un Listener al SelectionSupport. |
void |
setName(java.lang.String name)
Inserta un nuevo nombre para el dataSource. |
void |
setSelection(FBitSet selection)
Inserta una nueva selección. |
void |
setSelectionSupport(SelectionSupport selectionSupport)
Añade el soporte para la selección. |
void |
setXMLEntity(XMLEntity child)
A partir del XMLEntity se rellenan los atributos del DataSource. |
void |
start()
Inicializa el dataSource. |
void |
stop()
Finaliza el DataSource. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SelectableDataSource(DataSource ds)
ds
- Method Detail |
public void setSelectionSupport(SelectionSupport selectionSupport)
selectionSupport
- public java.lang.String getDBMS()
public ReadDriver getDriver()
public int getFieldCount() throws DriverException
DriverException
public int getFieldIndexByName(java.lang.String arg0) throws DriverException, FieldNotFoundException
arg0
- nombre del campo.
DriverException
FieldNotFoundException
public java.lang.String getFieldName(int arg0) throws DriverException
arg0
- índice.
DriverException
public Value getFieldValue(long arg0, int arg1) throws DriverException
arg0
- número de registro.arg1
- número de campo.
DriverException
public java.lang.String getName()
public long getRowCount() throws DriverException
DriverException
public void start() throws DriverException
DriverException
public void stop() throws DriverException
DriverException
public void fireSelectionEvents()
public void addSelectionListener(SelectionListener listener)
listener
- SelectionListener.public void removeSelectionListener(SelectionListener listener)
listener
- Listener a borrar.public void clearSelection()
public FBitSet getSelection()
public SelectionSupport getSelectionSupport()
public boolean isSelected(int recordIndex)
recordIndex
- índice del registro.
public void setSelection(FBitSet selection)
selection
- FBitSet.public void setName(java.lang.String name)
name
- Nuevo nombre del DataSource.
java.lang.RuntimeException
public XMLEntity getXMLEntity()
public void setXMLEntity(XMLEntity child)
child
- public long[] getWhereFilter() throws java.io.IOException
java.io.IOException
com.hardcode.gdbms.engine.data.DataSource#getWhereFilter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |