A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.oracle.com/javase/8/docs/api/javax/swing/DefaultListModel.html below:

DefaultListModel (Java Platform SE 8 )

Modifier and Type Method Description void add(int index, E element)

Inserts the specified element at the specified position in this list.

void addElement(E element)

Adds the specified component to the end of this list.

int capacity()

Returns the current capacity of this list.

void clear()

Removes all of the elements from this list.

boolean contains(Object elem)

Tests whether the specified object is a component in this list.

void copyInto(Object[] anArray)

Copies the components of this list into the specified array.

E elementAt(int index)

Returns the component at the specified index.

Enumeration<E> elements()

Returns an enumeration of the components of this list.

void ensureCapacity(int minCapacity)

Increases the capacity of this list, if necessary, to ensure that it can hold at least the number of components specified by the minimum capacity argument.

E firstElement()

Returns the first component of this list.

E get(int index)

Returns the element at the specified position in this list.

E getElementAt(int index)

Returns the component at the specified index.

int getSize()

Returns the number of components in this list.

int indexOf(Object elem)

Searches for the first occurrence of elem.

int indexOf(Object elem, int index)

Searches for the first occurrence of elem, beginning the search at index.

void insertElementAt(E element, int index)

Inserts the specified element as a component in this list at the specified index.

boolean isEmpty()

Tests whether this list has any components.

E lastElement()

Returns the last component of the list.

int lastIndexOf(Object elem)

Returns the index of the last occurrence of elem.

int lastIndexOf(Object elem, int index)

Searches backwards for elem, starting from the specified index, and returns an index to it.

E remove(int index)

Removes the element at the specified position in this list.

void removeAllElements()

Removes all components from this list and sets its size to zero.

boolean removeElement(Object obj)

Removes the first (lowest-indexed) occurrence of the argument from this list.

void removeElementAt(int index)

Deletes the component at the specified index.

void removeRange(int fromIndex, int toIndex)

Deletes the components at the specified range of indexes.

E set(int index, E element)

Replaces the element at the specified position in this list with the specified element.

void setElementAt(E element, int index)

Sets the component at the specified index of this list to be the specified element.

void setSize(int newSize)

Sets the size of this list.

int size()

Returns the number of components in this list.

Object[] toArray()

Returns an array containing all of the elements in this list in the correct order.

String toString()

Returns a string that displays and identifies this object's properties.

void trimToSize()

Trims the capacity of this list to be the list's current size.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4