public class DefaultListModelForJLabelAsCell extends DefaultListModel implements Serializable
listenerList
Constructor and Description |
---|
DefaultListModelForJLabelAsCell()
Default constructor without parameters
|
Modifier and Type | Method and Description |
---|---|
void |
changeElementThatHasTextToJLabelLoadedValue(String patternText)
Replaces first element which has the text 'patternText' to a JLabelValueLoaded new one element with the same text
|
void |
clear() |
boolean |
containsJLabelText(String patternText)
Method that returns true if there is a inner JLabel that has as inner text the same text as 'patternText'
|
int |
getIndexOfJLabelText(String patternText)
Returns the position of first JLabel that has as text the same text as 'patternText', or -1 if no JLabel has that text
|
void |
insertElementAt(Object obj,
int index) |
Object |
remove(int index) |
void |
removeAllElements() |
boolean |
removeElement(Object obj) |
void |
removeElementAt(int index) |
void |
removeRange(int fromIndex,
int toIndex) |
Object |
set(int index,
Object element) |
void |
setAllElementsToNotLoaded()
Sets all elements to 'JLabelValueNotLoaded'
|
void |
setElementAt(Object obj,
int index) |
add, addElement, capacity, contains, copyInto, elementAt, elements, ensureCapacity, firstElement, get, getElementAt, getSize, indexOf, indexOf, isEmpty, lastElement, lastIndexOf, lastIndexOf, setSize, size, toArray, toString, trimToSize
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
public DefaultListModelForJLabelAsCell()
public boolean containsJLabelText(String patternText)
patternText
- public int getIndexOfJLabelText(String patternText)
patternText
- An Stringpublic void changeElementThatHasTextToJLabelLoadedValue(String patternText)
patternText
- Text of the componentpublic void setAllElementsToNotLoaded()
public void clear()
clear
in class DefaultListModel
public void insertElementAt(Object obj, int index)
insertElementAt
in class DefaultListModel
public Object remove(int index)
remove
in class DefaultListModel
public void removeAllElements()
removeAllElements
in class DefaultListModel
public boolean removeElement(Object obj)
removeElement
in class DefaultListModel
public void removeElementAt(int index)
removeElementAt
in class DefaultListModel
public void removeRange(int fromIndex, int toIndex)
removeRange
in class DefaultListModel
public Object set(int index, Object element)
set
in class DefaultListModel
public void setElementAt(Object obj, int index)
setElementAt
in class DefaultListModel