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, 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
-
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:
getKeyin interfaceGuiSwingPrefsSupports.PreferencesByJsonEntry
-
toJson
- Specified by:
toJsonin interfaceGuiSwingPrefsSupports.PreferencesByJsonEntry
-
setJson
- Specified by:
setJsonin interfaceGuiSwingPrefsSupports.PreferencesByJsonEntry
-