Module org.autogui
Package org.autogui.swing.table
Class GuiSwingTableModelCollection.PreferencesForTableColumnWidth
java.lang.Object
org.autogui.swing.table.GuiSwingTableModelCollection.PreferencesForTableColumnWidth
- All Implemented Interfaces:
GuiSwingPrefsSupports.Preferences
,GuiSwingPrefsSupports.PreferencesByJsonEntry
- Enclosing class:
GuiSwingTableModelCollection
public static class GuiSwingTableModelCollection.PreferencesForTableColumnWidth
extends Object
implements GuiSwingPrefsSupports.PreferencesByJsonEntry
a width info. of a column
"$columnWidth": {"width":w}
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
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
-
width
protected int width
-
-
Constructor Details
-
PreferencesForTableColumnWidth
public PreferencesForTableColumnWidth() -
PreferencesForTableColumnWidth
public PreferencesForTableColumnWidth(int width)
-
-
Method Details
-
applyTo
-
getWidth
public int getWidth()- Returns:
- the property value
- Since:
- 1.7
-
setWidth
public void setWidth(int width) - Parameters:
width
- update the property value- Since:
- 1.7
-
getKey
- Specified by:
getKey
in interfaceGuiSwingPrefsSupports.PreferencesByJsonEntry
-
toJson
- Specified by:
toJson
in interfaceGuiSwingPrefsSupports.PreferencesByJsonEntry
-
setJson
- Specified by:
setJson
in interfaceGuiSwingPrefsSupports.PreferencesByJsonEntry
-