Class FileNameComboBoxModel

java.lang.Object
megamek.client.ui.models.FileNameComboBoxModel
All Implemented Interfaces:
ComboBoxModel<String>, ListModel<String>

public class FileNameComboBoxModel extends Object implements ComboBoxModel<String>
The FileNameComboBoxModel class is a ComboBoxModel that uses the file name as the value. It receives a list or array of files and instead of showing the string version of the file it shows only the value of File.getName() method. It has a helper function to get the selected file on its own if necessary.