java.lang.Object
javax.swing.table.AbstractTableModel
org.autogui.swing.GuiSwingPreferences.PreferencesListModel
- All Implemented Interfaces:
Serializable,TableModel
- Enclosing class:
GuiSwingPreferences
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intstatic intstatic intprotected GuiPreferencesprotected GuiPreferencesprotected List<GuiPreferences> protected Supplier<GuiMappingContext> protected List<GuiPreferences> protected GuiPreferencesFields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetList()getName(GuiPreferences prefs) intgetUUID(GuiPreferences prefs) getValueAt(int rowIndex, int columnIndex) protected voidinitEmptyPrefs(GuiMappingContext context) protected voidprotected voidinitList(boolean loadSavedList) booleanisCellEditable(int rowIndex, int columnIndex) booleanisDefault(GuiPreferences prefs) booleanisEmpty(GuiPreferences prefs) booleanisLaunchPrefs(GuiPreferences prefs) booleanisNameEditable(GuiPreferences prefs) voidreload()protected voidvoidsetLaunchPrefs(GuiPreferences launchPrefs) voidsetName(GuiPreferences prefs, String name) voidsetValueAt(Object aValue, int rowIndex, int columnIndex) voidupdate(boolean loadSavedList) Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, removeTableModelListener
-
Field Details
-
rootContext
-
list
-
savedPrefsList
-
launchPrefs
-
lastDefault
-
targetDefault
-
COLUMN_SIZE
public static int COLUMN_SIZE -
COLUMN_NAME
public static int COLUMN_NAME -
COLUMN_LAUNCH
public static int COLUMN_LAUNCH
-
-
Constructor Details
-
PreferencesListModel
-
-
Method Details
-
getRowCount
public int getRowCount() -
getColumnCount
public int getColumnCount() -
getValueAt
-
setValueAt
- Specified by:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classAbstractTableModel
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex) - Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel
-
getLaunchPrefs
-
isLaunchPrefs
-
reload
public void reload() -
getList
-
getSavedPrefsList
-
isNameEditable
-
getName
-
isDefault
-
isEmpty
-
getUUID
-
setLaunchPrefs
-
saveLaunchPrefsUUID
protected void saveLaunchPrefsUUID() -
setName
-
update
public void update(boolean loadSavedList) -
initEmptyPrefs
-
initList
protected void initList(boolean loadSavedList) -
initLaunchPrefs
protected void initLaunchPrefs()
-