Module org.autogui
Package org.autogui.swing.table
Class GuiSwingTableModelCollection.PreferencesForTableColumnOrder
java.lang.Object
org.autogui.swing.table.GuiSwingTableModelCollection.PreferencesForTableColumnOrder
- All Implemented Interfaces:
GuiSwingPrefsSupports.Preferences,GuiSwingPrefsSupports.PreferencesByJsonEntry
- Enclosing class:
GuiSwingTableModelCollection
public static class GuiSwingTableModelCollection.PreferencesForTableColumnOrder
extends Object
implements GuiSwingPrefsSupports.PreferencesByJsonEntry
an ordering index of a column
"$columnOrder": { "modelIndex":m, "viewIndex":v}
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanapplyTo(ObjectTableModelColumns columns) getKey()intintvoidvoidsetModelIndex(int modelIndex) voidsetViewIndex(int viewIndex) toJson()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.autogui.swing.prefs.GuiSwingPrefsSupports.Preferences
loadFromMethods inherited from interface org.autogui.swing.prefs.GuiSwingPrefsSupports.PreferencesByJsonEntry
compareChanged, loadFromAndChanged, loadFromAndToJson, saveTo, setJsonAndSaveTo
-
Field Details
-
modelIndex
protected int modelIndex -
viewIndex
protected int viewIndex
-
-
Constructor Details
-
PreferencesForTableColumnOrder
public PreferencesForTableColumnOrder() -
PreferencesForTableColumnOrder
public PreferencesForTableColumnOrder(int modelIndex, int viewIndex)
-
-
Method Details
-
getModelIndex
public int getModelIndex()- Returns:
- the property value
- Since:
- 1.7
-
setModelIndex
public void setModelIndex(int modelIndex) - Parameters:
modelIndex- the new property value- Since:
- 1.7
-
getViewIndex
public int getViewIndex()- Returns:
- the property value
- Since:
- 1.7
-
setViewIndex
public void setViewIndex(int viewIndex) - Parameters:
viewIndex- the new property value- Since:
- 1.7
-
applyTo
- Parameters:
columns- the columns containing the target- Returns:
- true if successfully moved. while adding columns, the target index might beyond bounds.
-
getKey
- Specified by:
getKeyin interfaceGuiSwingPrefsSupports.PreferencesByJsonEntry
-
toJson
- Specified by:
toJsonin interfaceGuiSwingPrefsSupports.PreferencesByJsonEntry
-
setJson
- Specified by:
setJsonin interfaceGuiSwingPrefsSupports.PreferencesByJsonEntry
-