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 int
static int
static int
protected GuiPreferences
protected GuiPreferences
protected List
<GuiPreferences> protected Supplier
<GuiMappingContext> protected List
<GuiPreferences> protected GuiPreferences
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getList()
getName
(GuiPreferences prefs) int
getUUID
(GuiPreferences prefs) getValueAt
(int rowIndex, int columnIndex) protected void
initEmptyPrefs
(GuiMappingContext context) protected void
protected void
initList
(boolean loadSavedList) boolean
isCellEditable
(int rowIndex, int columnIndex) boolean
isDefault
(GuiPreferences prefs) boolean
isEmpty
(GuiPreferences prefs) boolean
isLaunchPrefs
(GuiPreferences prefs) boolean
isNameEditable
(GuiPreferences prefs) void
reload()
protected void
void
setLaunchPrefs
(GuiPreferences launchPrefs) void
setName
(GuiPreferences prefs, String name) void
setValueAt
(Object aValue, int rowIndex, int columnIndex) void
update
(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:
setValueAt
in interfaceTableModel
- Overrides:
setValueAt
in classAbstractTableModel
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex) - Specified by:
isCellEditable
in interfaceTableModel
- Overrides:
isCellEditable
in 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()
-