java.lang.Object
org.autogui.swing.GuiSwingViewCollectionTable.PreferencesForTable
- All Implemented Interfaces:
GuiSwingPrefsSupports.Preferences
,GuiSwingPrefsSupports.PreferencesByJsonEntry
- Enclosing class:
GuiSwingViewCollectionTable
public static class GuiSwingViewCollectionTable.PreferencesForTable
extends Object
implements GuiSwingPrefsSupports.PreferencesByJsonEntry
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected boolean
protected int
protected int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyColumnOrderTo
(JTable table, TableColumnModel columnModel) void
applyColumnWidthTo
(JTable table, TableColumnModel columnModel) void
applyRowHeightTo
(JTable table) void
applyRowSortTo
(JTable table) void
getKey()
int
boolean
boolean
void
setColumnOrderFrom
(JTable table) void
setColumnWidthFrom
(JTable table) void
void
setRowCustom
(boolean rowCustom) void
setRowFitToContent
(boolean rowFitToContent) void
setRowHeight
(int rowHeight) void
setRowHeightFrom
(JTable table) void
setRowSortFrom
(JTable table) 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
-
columnOrder
-
columnWidth
-
rowSort
-
sizeLimit
protected int sizeLimit -
rowHeight
protected int rowHeight- Since:
- 1.3
-
rowCustom
protected boolean rowCustom- Since:
- 1.6
-
rowFitToContent
protected boolean rowFitToContent- Since:
- 1.6
-
-
Constructor Details
-
PreferencesForTable
public PreferencesForTable()
-
-
Method Details
-
getColumnOrder
- Returns:
- the direct reference to the columnOrder list
- Since:
- 1.7
-
getColumnWidth
- Returns:
- the direct reference to the columnWidth list
- Since:
- 1.7
-
getRowSort
- Returns:
- the direct reference to the rowSort list
- Since:
- 1.7
-
getRowHeight
public int getRowHeight()- Returns:
- rowHeight
- Since:
- 1.7
-
setRowHeight
public void setRowHeight(int rowHeight) - Parameters:
rowHeight
- a new rowHeight value- Since:
- 1.7
-
isRowCustom
public boolean isRowCustom()- Returns:
- the property value
- Since:
- 1.7
-
setRowCustom
public void setRowCustom(boolean rowCustom) - Parameters:
rowCustom
- a new value- Since:
- 1.7
-
isRowFitToContent
public boolean isRowFitToContent()- Returns:
- the property value
- Since:
- 1.7
-
setRowFitToContent
public void setRowFitToContent(boolean rowFitToContent) - Parameters:
rowFitToContent
- a new value- Since:
- 1.7
-
applyTo
-
applyColumnWidthTo
-
applyColumnOrderTo
-
applyRowSortTo
-
applyRowHeightTo
- Parameters:
table
- the target table- Since:
- 1.3
-
setColumnOrderFrom
-
setColumnWidthFrom
-
setRowSortFrom
-
setRowHeightFrom
- Parameters:
table
- the source table- Since:
- 1.3
-
getKey
- Specified by:
getKey
in interfaceGuiSwingPrefsSupports.PreferencesByJsonEntry
-
toJson
- Specified by:
toJson
in interfaceGuiSwingPrefsSupports.PreferencesByJsonEntry
-
setJson
- Specified by:
setJson
in interfaceGuiSwingPrefsSupports.PreferencesByJsonEntry
-