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 booleanprotected booleanprotected intprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyColumnOrderTo(JTable table, TableColumnModel columnModel) voidapplyColumnWidthTo(JTable table, TableColumnModel columnModel) voidapplyRowHeightTo(JTable table) voidapplyRowSortTo(JTable table) voidcreateRowHeightFromInits(GuiInits inits) getKey()intbooleanbooleanvoidsetColumnOrderFrom(JTable table) voidsetColumnWidthFrom(JTable table) voidvoidsetRowCustom(boolean rowCustom) voidsetRowFitToContent(boolean rowFitToContent) voidsetRowHeight(int rowHeight) voidsetRowHeightFrom(JTable table) voidsetRowSortFrom(JTable table) 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
-
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
-
createRowHeightFromInits
public static GuiSwingViewCollectionTable.PreferencesForTable createRowHeightFromInits(GuiInits inits) - Parameters:
inits- the source inits- Returns:
- creates and sets settings related to the row-height; can be set by
applyRowHeightTo(JTable) - Since:
- 1.8
-
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:
getKeyin interfaceGuiSwingPrefsSupports.PreferencesByJsonEntry
-
toJson
- Specified by:
toJsonin interfaceGuiSwingPrefsSupports.PreferencesByJsonEntry
-
setJson
- Specified by:
setJsonin interfaceGuiSwingPrefsSupports.PreferencesByJsonEntry
-