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 TypeMethodDescriptionboolean
applyTo
(ObjectTableModelColumns columns) getKey()
int
int
void
void
setModelIndex
(int modelIndex) void
setViewIndex
(int viewIndex) toJson()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.autogui.swing.prefs.GuiSwingPrefsSupports.PreferencesByJsonEntry
loadFrom, 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:
getKey
in interfaceGuiSwingPrefsSupports.PreferencesByJsonEntry
-
toJson
- Specified by:
toJson
in interfaceGuiSwingPrefsSupports.PreferencesByJsonEntry
-
setJson
- Specified by:
setJson
in interfaceGuiSwingPrefsSupports.PreferencesByJsonEntry
-