Class OneClickListComboBoxModel
java.lang.Object
com.illumon.iris.gui.util.oneclick.OneClickListComboBoxModel
- All Implemented Interfaces:
ComboBoxModel<OneClickListModel>
,ListModel<OneClickListModel>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addList
(OneClickListModel list) Add a new list to the model, ensuring that there are no duplicated names.void
void
void
getElementAt
(int index) getLists()
int
getSize()
void
removeList
(OneClickListModel list) void
removeList
(String listName) void
void
void
setSelectedItem
(Object anItem) void
updateList
(OneClickListModel existingList, OneClickListModel replacementList) Update the specified list, notifying all observers
-
Constructor Details
-
OneClickListComboBoxModel
public OneClickListComboBoxModel()
-
-
Method Details
-
setSelectedItem
- Specified by:
setSelectedItem
in interfaceComboBoxModel<OneClickListModel>
-
getSelectedItem
- Specified by:
getSelectedItem
in interfaceComboBoxModel<OneClickListModel>
-
updateList
public void updateList(@NotNull OneClickListModel existingList, @NotNull OneClickListModel replacementList) Update the specified list, notifying all observers- Parameters:
existingList
- The list being updatedreplacementList
- The list to replace with
-
getSize
public int getSize()- Specified by:
getSize
in interfaceListModel<OneClickListModel>
-
getElementAt
- Specified by:
getElementAt
in interfaceListModel<OneClickListModel>
-
addListDataListener
- Specified by:
addListDataListener
in interfaceListModel<OneClickListModel>
-
removeListDataListener
- Specified by:
removeListDataListener
in interfaceListModel<OneClickListModel>
-
resortPins
public void resortPins() -
addList
Add a new list to the model, ensuring that there are no duplicated names.- Parameters:
list
- The new list to be added to the model
-
removeList
-
removeList
-
clearLists
public void clearLists() -
getLists
-
getList
-
addSelectedItemChangedListener
public void addSelectedItemChangedListener(OneClickListComboBoxModel.SelectedItemChangedListener listener)
-