class FileBrowser.MyComboBox.MyComboBoxModel extends javax.swing.DefaultComboBoxModel<FileBrowser.MyPath>
Modifier and Type | Field and Description |
---|---|
(package private) java.util.ArrayList<FileBrowser.MyPath> |
comboBoxArray |
(package private) static long |
serialVersionUID |
Constructor and Description |
---|
MyComboBoxModel(FileBrowser.MyPath path) |
Modifier and Type | Method and Description |
---|---|
void |
addElement(FileBrowser.MyPath element) |
FileBrowser.MyPath |
getElementAt(int index) |
int |
getIndexOf(java.lang.Object anObject) |
java.lang.Object |
getSelectedItem() |
int |
getSize() |
void |
insertElementAt(FileBrowser.MyPath element,
int index) |
void |
removeAllElements() |
void |
removeElement(java.lang.Object anObject) |
void |
removeElementAt(int index) |
void |
setSelectedItem(java.lang.Object anObject) |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
static final long serialVersionUID
java.util.ArrayList<FileBrowser.MyPath> comboBoxArray
MyComboBoxModel(FileBrowser.MyPath path)
public void addElement(FileBrowser.MyPath element)
addElement
in interface javax.swing.MutableComboBoxModel<FileBrowser.MyPath>
addElement
in class javax.swing.DefaultComboBoxModel<FileBrowser.MyPath>
public FileBrowser.MyPath getElementAt(int index)
getElementAt
in interface javax.swing.ListModel<FileBrowser.MyPath>
getElementAt
in class javax.swing.DefaultComboBoxModel<FileBrowser.MyPath>
public int getIndexOf(java.lang.Object anObject)
getIndexOf
in class javax.swing.DefaultComboBoxModel<FileBrowser.MyPath>
public java.lang.Object getSelectedItem()
getSelectedItem
in interface javax.swing.ComboBoxModel<FileBrowser.MyPath>
getSelectedItem
in class javax.swing.DefaultComboBoxModel<FileBrowser.MyPath>
public int getSize()
getSize
in interface javax.swing.ListModel<FileBrowser.MyPath>
getSize
in class javax.swing.DefaultComboBoxModel<FileBrowser.MyPath>
public void insertElementAt(FileBrowser.MyPath element, int index)
insertElementAt
in interface javax.swing.MutableComboBoxModel<FileBrowser.MyPath>
insertElementAt
in class javax.swing.DefaultComboBoxModel<FileBrowser.MyPath>
public void removeAllElements()
removeAllElements
in class javax.swing.DefaultComboBoxModel<FileBrowser.MyPath>
public void removeElement(java.lang.Object anObject)
removeElement
in interface javax.swing.MutableComboBoxModel<FileBrowser.MyPath>
removeElement
in class javax.swing.DefaultComboBoxModel<FileBrowser.MyPath>
public void removeElementAt(int index)
removeElementAt
in interface javax.swing.MutableComboBoxModel<FileBrowser.MyPath>
removeElementAt
in class javax.swing.DefaultComboBoxModel<FileBrowser.MyPath>
public void setSelectedItem(java.lang.Object anObject)
setSelectedItem
in interface javax.swing.ComboBoxModel<FileBrowser.MyPath>
setSelectedItem
in class javax.swing.DefaultComboBoxModel<FileBrowser.MyPath>