DefaultListModel

Methods
10
Fields
None

Getting one

DefaultListModel.new()

Methods

MethodReturnsDescription
add(index: number, o: any)()Inserts o at index.
addElement(any)()Appends o.
clear()()Removes every element.
elements()anyAn enumeration over a copy (hasMoreElements, nextElement).
getSize()numberHow many elements.
size()numberHow many elements.
isEmpty()booleanWhether it has no element.
remove(index: number)anyRemoves and returns the element at index.
set(index: number, o: any)anyReplaces the element at index; returns the old one.
new()DefaultListModelDefaultListModel.new().

Returned by

MethodReturnsDescription
DefaultListModelClass.newDefaultListModelDefaultListModel.new().

Method details

set

set: (DefaultListModel, index: number, o: any) -> any

Replaces the element at index; returns the old one.