class JEditableList<T> : JTable
A JList in which each entry has a JCheckBox in front of it.
name
- the name of this component
Parameters
JEditableList(name: String? = null)
|
val activeEntries: List<T>
Returns all entries of which the checkbox is checked. |
|
val entries: List<T>
Returns a list of all entries. |
|
val entryCount: Int
Returns the number of entries in the list. |
|
val highlightedEntry: T?
Returns the entry that is currently selected by the user, if there is one. |
fun addEntry(entry: T): Unit
Adds an entry to the list. |
|
fun addEntryActivityChangeListener(listener: EntryActivityChangeListener): Unit
Adds a listener that is called when a row's activity is changed by the user. |
|
fun clear(): Unit
Removes all entries. |
|
fun getColumnClass(column: Int): Class<out Any>
Returns the class of the data in the column with index |
|
fun getEntry(row: Int): T
Returns the entry in the given row. |
|
fun isActive(entry: T): Boolean
Returns |
|
fun isCellEditable(row: Int, column: Int): Boolean
Returns |
|
fun removeEntry(entry: T): Unit
Removes the given entry and its checkbox. |
|
fun removeEntryActivityChangeListener(listener: EntryActivityChangeListener): Unit
Removes a listener that was called when a row's activity was changed by the user. |
|
fun setActiveEntries(entries: Collection<T>): Unit
Checks the checkboxes of all given entries, and unchecks all other checkboxes. |
|
fun setEntries(entries: Collection<T>): Unit
Removes all current entries, and adds the given entries. |
|
fun setEntryActivity(entry: T, activity: Boolean): Unit
Sets the activity of the given entry. |