|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.dataset.DataSelector
public class DataSelector
Field Summary | |
---|---|
protected static java.lang.String |
DEFAULT_NAME_PREFIX
Used as a prefix for auto-generated DataColumn names. |
Constructor Summary | |
---|---|
DataSelector(DataTable table)
Creates a new instance of DataSelector |
Method Summary | |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener to this class for any changes to bean properties. |
void |
addPropertyChangeListener(java.lang.String property,
java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener to this class for specific property changes. |
DataTable |
getDataTable()
Deprecated. Use getTable() instead |
int |
getFirstRowIndex()
|
java.lang.String |
getName()
|
java.util.List<java.lang.Integer> |
getRowIndices()
|
DataTable |
getTable()
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Stops notifying a specific listener of any changes to bean properties. |
void |
removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
Stops notifying a specific listener of changes to a specific property. |
void |
setName(java.lang.String name)
|
void |
setRowIndex(DataRow row)
|
void |
setRowIndex(int index)
Convenience method for setting a single row as the selected row. |
void |
setRowIndices(int[] rowIndices)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String DEFAULT_NAME_PREFIX
Constructor Detail |
---|
public DataSelector(DataTable table)
Method Detail |
---|
public DataTable getDataTable()
public DataTable getTable()
public void setName(java.lang.String name)
name
- public java.lang.String getName()
public java.util.List<java.lang.Integer> getRowIndices()
public int getFirstRowIndex()
public void setRowIndices(int[] rowIndices)
public void setRowIndex(int index)
index
- must be less than the row count of the DataTable. Also,
if it is greater than 0, then the row index will be set, however if
it is less than zero, then the selection will be cleared.public void setRowIndex(DataRow row)
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The PropertyChangeListener to notify of changes to this
instance.public void addPropertyChangeListener(java.lang.String property, java.beans.PropertyChangeListener listener)
property
- The name of the property to listen to changes for.listener
- The PropertyChangeListener to notify of changes to this
instance.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The listener to stop receiving notifications.public void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
propertyName
- The name of the property to ignore from now on.listener
- The listener to stop receiving notifications.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |