Package be.gaudry.swing.component.jlist
Interface IModel
- All Known Implementing Classes:
DefaultListModel,SortedListModel
public interface IModel
Allows to define same behaviors for
SortedListModel and DefaultListModel
Provided by the broldev.core2.crud project.- Since:
- 1.0 (Dec 6, 2010), broldev.core.swing 0.0.1-SNAPSHOT dependency
- Version:
- 1.0 (Dec 6, 2010)
- Author:
- Steph GAUDRY
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddElement(Object element)Adds the specified element to the listvoidclear()Removes all of the elements from this list The list will be empty after this call returns.booleanremoveElement(Object element)Removes the first occurrence of the specified element from this list, if it is present.
-
Method Details
-
clear
void clear()Removes all of the elements from this list The list will be empty after this call returns. -
addElement
Adds the specified element to the list- Parameters:
element- element to be appended to this list
-
removeElement
Removes the first occurrence of the specified element from this list, if it is present. If this list does not contain the element, it is unchanged. Returns true if this list contained the specified element (or equivalently, if this list changed as a result of the call).- Parameters:
element- element to be removed from this list, if present- Returns:
- true if this list contained the specified element
-