|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
org.jomc.sequences.util.SequencesTableModel
@Generated(value="org.jomc.tools.SourceFileProcessor 1.0", comments="See http://jomc.sourceforge.net/jomc/1.0/jomc-tools") public class SequencesTableModel extends AbstractTableModel implements Serializable
Swing TableModel Java Bean for displaying and editing a system's SequenceDirectory.
Specifications
'javax.swing.table.TableModel'
(javax.swing.table.TableModel)
Multiton
Properties
incrementColumnEditableByDefault
"
Property of typejava.lang.Boolean
.Flag indicating that the "increment" column is editable by default.
maximumColumnEditableByDefault
"
Property of typejava.lang.Boolean
.Flag indicating that the "maximum" column is editable by default.
minimumColumnEditableByDefault
"
Property of typejava.lang.Boolean
.Flag indicating that the "minimum" column is editable by default.
nameColumnEditableByDefault
"
Property of typejava.lang.Boolean
.Flag indicating that the "name" column is editable by default.
valueColumnEditableByDefault
"
Property of typejava.lang.Boolean
.Flag indicating that the "value" column is editable by default.
Dependencies
ExceptionListener
"Dependency on'java.beans.ExceptionListener'
(java.beans.ExceptionListener)
at specification level 1.4 bound to an instance.
Locale
"Dependency on'java.util.Locale'
(java.util.Locale)
at specification level 1.1 bound to an instance.
Logger
"Dependency on'org.jomc.logging.Logger'
(org.jomc.logging.Logger)
at specification level 1.0 bound to an instance.
SequenceDirectory
"Dependency on'org.jomc.sequences.SequenceDirectory'
(org.jomc.sequences.SequenceDirectory)
at specification level 1.0 bound to an instance.
Messages
illegalColumnIndexMessage
"English: | Illegal column index {0}. {1} |
Deutsch: | Ungültiger Spalten-Index {0}. {1} |
incrementColumnTitle
"English: | Increment |
Deutsch: | Inkrement |
maximumColumnTitle
"English: | Maximum |
Deutsch: | Maximum |
minimumColumnTitle
"English: | Minimum |
Deutsch: | Minimum |
nameColumnTitle
"English: | Name |
Deutsch: | Name |
valueColumnTitle
"English: | Value |
Deutsch: | Wert |
Modifier and Type | Field and Description |
---|---|
static int |
COLUMN_COUNT
Number of table columns. |
static String |
INCREMENT_COLUMN_EDITABLE
Name of property incrementColumnEditable . |
static int |
INCREMENT_COLUMN_INDEX
Index of the column displaying a sequence's increment value. |
static String |
MAXIMUM_COLUMN_EDITABLE
Name of property maximumColumnEditable . |
static int |
MAXIMUM_COLUMN_INDEX
Index of the column displaying a sequence's maximum value. |
static String |
MINIMUM_COLUMN_EDITABLE
Name of property minimumColumnEditable . |
static int |
MINIMUM_COLUMN_INDEX
Index of the column displaying a sequence's minimum value. |
static String |
NAME_COLUMN_EDITABLE
Name of property nameColumnEditable . |
static int |
NAME_COLUMN_INDEX
Index of the column displaying a sequence's name. |
static String |
SEQUENCE_FILTER
Name of property sequenceFilter . |
static String |
VALUE_COLUMN_EDITABLE
Name of property valueColumnEditable . |
static int |
VALUE_COLUMN_INDEX
Index of the column displaying a sequence's value. |
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor and Description |
---|
SequencesTableModel()
Creates a new SequencesTableModel instance. |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list. |
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Add a PropertyChangeListener for a specific property. |
protected void |
fireExceptionThrown(Exception e)
Notifies any available ExceptionListener whenever a recoverable exception has been caught. |
Class<?> |
getColumnClass(int columnIndex)
|
int |
getColumnCount()
|
String |
getColumnName(int columnIndex)
|
Boolean |
getIncrementColumnEditable()
Gets the flag indicating that the increment column is editable. |
Boolean |
getMaximumColumnEditable()
Gets the flag indicating that the maximum column is editable. |
Boolean |
getMinimumColumnEditable()
Gets the flag indicating that the minimum column is editable. |
Boolean |
getNameColumnEditable()
Gets the flag indicating that the name column is editable. |
PropertyChangeListener[] |
getPropertyChangeListeners()
Gets an array of all the listeners that were added to the instance. |
PropertyChangeListener[] |
getPropertyChangeListeners(String propertyName)
Gets an array of all the listeners which have been associated with the named property. |
int |
getRowCount()
|
org.jomc.sequences.Sequence |
getSequenceFilter()
Gets the entity used for filtering sequences. |
List<org.jomc.sequences.Sequence> |
getSequences()
Gets the entities of the model. |
Object |
getValueAt(int rowIndex,
int columnIndex)
|
Boolean |
getValueColumnEditable()
Gets the flag indicating that the value column is editable. |
boolean |
isCellEditable(int rowIndex,
int columnIndex)
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a PropertyChangeListener from the listener list. |
void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Removes a PropertyChangeListener for a specific property. |
void |
setIncrementColumnEditable(Boolean value)
Sets the flag indicating that the increment column is editable. |
void |
setMaximumColumnEditable(Boolean value)
Sets the flag indicating that the maximum column is editable. |
void |
setMinimumColumnEditable(Boolean value)
Set the flag indicating that the minimum column is editable. |
void |
setNameColumnEditable(Boolean value)
Sets the flag indicating that the name column is editable. |
void |
setSequenceFilter(org.jomc.sequences.Sequence value)
Sets the entity used for filtering sequences. |
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex)
|
void |
setValueColumnEditable(Boolean value)
Sets the flag indicating that the value column is editable. |
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int COLUMN_COUNT
public static final int NAME_COLUMN_INDEX
public static final int MINIMUM_COLUMN_INDEX
public static final int MAXIMUM_COLUMN_INDEX
public static final int INCREMENT_COLUMN_INDEX
public static final int VALUE_COLUMN_INDEX
public static final String NAME_COLUMN_EDITABLE
nameColumnEditable
.
public static final String MINIMUM_COLUMN_EDITABLE
minimumColumnEditable
.
public static final String MAXIMUM_COLUMN_EDITABLE
maximumColumnEditable
.
public static final String INCREMENT_COLUMN_EDITABLE
incrementColumnEditable
.
public static final String VALUE_COLUMN_EDITABLE
valueColumnEditable
.
public static final String SEQUENCE_FILTER
sequenceFilter
.
Constructor Detail |
---|
@Generated(value="org.jomc.tools.SourceFileProcessor 1.0", comments="See http://jomc.sourceforge.net/jomc/1.0/jomc-tools") public SequencesTableModel()
SequencesTableModel
instance.
Method Detail |
---|
public int getRowCount()
getRowCount
in interface TableModel
public int getColumnCount()
getColumnCount
in interface TableModel
public String getColumnName(int columnIndex)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
public Class<?> getColumnClass(int columnIndex)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
public Object getValueAt(int rowIndex, int columnIndex)
getValueAt
in interface TableModel
public void setValueAt(Object aValue, int rowIndex, int columnIndex)
setValueAt
in interface TableModel
setValueAt
in class AbstractTableModel
public Boolean getNameColumnEditable()
name
column is editable.
true
if the name
column is editable; false
if not.public void setNameColumnEditable(Boolean value)
name
column is editable.
value
- true
if the name
column should be editable; false
if not.public Boolean getMinimumColumnEditable()
minimum
column is editable.
true
if the minimum
column is editable;false
if not.public void setMinimumColumnEditable(Boolean value)
minimum
column is editable.
value
- true
if the minimum
column should be editable; false
if not.public Boolean getMaximumColumnEditable()
maximum
column is editable.
true
if the maximum
column is editable; false
if not.public void setMaximumColumnEditable(Boolean value)
maximum
column is editable.
value
- true
if the maximum
column should be editable; false
if not.public Boolean getIncrementColumnEditable()
increment
column is editable.
true
if the increment
column is editable; false
if not.public void setIncrementColumnEditable(Boolean value)
increment
column is editable.
value
- true
if the increment
column should be editable; false
if not.public Boolean getValueColumnEditable()
value
column is editable.
true
if the value
column is editable; false
if not.public void setValueColumnEditable(Boolean value)
value
column is editable.
value
- true
if the value
column should be editable; false
if not.public org.jomc.sequences.Sequence getSequenceFilter()
null
.public void setSequenceFilter(org.jomc.sequences.Sequence value)
value
- Entity to use for filtering sequences or null
.public void addPropertyChangeListener(PropertyChangeListener listener)
PropertyChangeListener
to the listener list.
The listener is registered for all properties. The same listener object may be added more than once, and will
be called as many times as it is added. If listener
is null
, no exception is thrown and no action
is taken.
listener
- The listener to be added.public void removePropertyChangeListener(PropertyChangeListener listener)
PropertyChangeListener
from the listener list.
This removes a PropertyChangeListener
that was registered for all properties. If listener
was
added more than once, it will be notified one less time after being removed. If listener
is null
,
or was never added, no exception is thrown and no action is taken.
listener
- The listener to be removed.public PropertyChangeListener[] getPropertyChangeListeners()
If some listeners have been added with a named property, then the returned array will be a mixture of
PropertyChangeListeners
and PropertyChangeListenerProxy
s. If the calling method is interested in
distinguishing the listeners then it must test each element to see if it's a PropertyChangeListenerProxy
,
perform the cast, and examine the parameter.
PropertyChangeListeners
added or an empty array if no listeners have been added.PropertyChangeSupport.getPropertyChangeListeners()
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
PropertyChangeListener
for a specific property.
The listener will be invoked only when an event for that specific property occurs. The same listener object
may be added more than once. For each property, the listener will be invoked the number of times it was added for
that property. If propertyName
or listener
is null
, no exception is thrown and no action
is taken.
propertyName
- The name of the property to listen on.listener
- The listener to be added.public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
PropertyChangeListener
for a specific property.
If listener
was added more than once to the instance for the specified property, it will be notified
one less time after being removed. If propertyName
is null
, no exception is thrown and no action
is taken. If listener
is null
, or was never added for the specified property, no exception is
thrown and no action is taken.
propertyName
- The name of the property that was listened on.listener
- The listener to be removed.public PropertyChangeListener[] getPropertyChangeListeners(String propertyName)
propertyName
- The name of the property being listened to.PropertyChangeListeners
associated with the named property. If no such listeners have
been added, or if propertyName
is null
, an empty array is returned.public List<org.jomc.sequences.Sequence> getSequences()
org.jomc.sequences.SequencesSystemException
- if searching entities fails.protected void fireExceptionThrown(Exception e)
ExceptionListener
whenever a recoverable exception has been caught.
e
- The exception that was caught.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |