com.jstatcom.component
Class AppSettings
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- com.jstatcom.component.AppSettings
-
- All Implemented Interfaces:
- SettingsElement, java.io.Serializable, javax.swing.table.TableModel
public final class AppSettings extends javax.swing.table.AbstractTableModel implements SettingsElement
Holds user set properties. This can be used together with theAppSettingsdialog to edit user settings.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static XmlFormat<AppSettings>AppSettings_XMLXML format field for (de)serialization.
-
Constructor Summary
Constructors Constructor and Description AppSettings()Default constructor.AppSettings(AppSettings appSettings)Copy constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetColumnCount()java.lang.StringgetColumnName(int col)JSCIntgetExitDialog()GetsJSCIntindicating whether exit Dialog should be shown.JSCIntgetMaxArrayDisplaySize()GetsJSCIntindicating the maximum array size (number of elements) that should be displayed in the symbol control.intgetRowCount()JSCIntgetSaveLastState()GetsJSCIntindicating whether save last state is on.JSCIntgetSControlEdit()GetsJSCIntindicating whether the symbol table data table elements should be editable.JSCIntgetShowExplorer()GetsJSCIntindicating whether explorer panel should be shown.java.lang.ObjectgetValueAt(int row, int col)booleanisCellEditable(int row, int col)voidsetElement()Implementations of this method should use the information stored in thisSettingsElementto set the state of components at runtime.voidsetValueAt(java.lang.Object value, int row, int col)-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Field Detail
-
AppSettings_XML
public static final XmlFormat<AppSettings> AppSettings_XML
XML format field for (de)serialization.
-
-
Constructor Detail
-
AppSettings
public AppSettings()
Default constructor.
-
AppSettings
public AppSettings(AppSettings appSettings)
Copy constructor.- Parameters:
appSettings- the instance to create a copy of
-
-
Method Detail
-
setElement
public void setElement()
Description copied from interface:SettingsElementImplementations of this method should use the information stored in thisSettingsElementto set the state of components at runtime. For example, one implementation of this interface, theProjectTreeNode, adds itself to theProjectTreewhen this method is called. Before that, it has been restored from its serialization in an XML file.- Specified by:
setElementin interfaceSettingsElement
-
getSaveLastState
public JSCInt getSaveLastState()
GetsJSCIntindicating whether save last state is on.- Returns:
JSCInt
-
getSControlEdit
public JSCInt getSControlEdit()
GetsJSCIntindicating whether the symbol table data table elements should be editable.- Returns:
JSCInt
-
getExitDialog
public JSCInt getExitDialog()
GetsJSCIntindicating whether exit Dialog should be shown.- Returns:
JSCInt
-
getShowExplorer
public JSCInt getShowExplorer()
GetsJSCIntindicating whether explorer panel should be shown.- Returns:
JSCInt
-
getMaxArrayDisplaySize
public JSCInt getMaxArrayDisplaySize()
GetsJSCIntindicating the maximum array size (number of elements) that should be displayed in the symbol control.- Returns:
JSCInt
-
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCountin interfacejavax.swing.table.TableModel
-
getRowCount
public int getRowCount()
- Specified by:
getRowCountin interfacejavax.swing.table.TableModel
-
isCellEditable
public boolean isCellEditable(int row, int col)- Specified by:
isCellEditablein interfacejavax.swing.table.TableModel- Overrides:
isCellEditablein classjavax.swing.table.AbstractTableModel
-
getColumnName
public java.lang.String getColumnName(int col)
- Specified by:
getColumnNamein interfacejavax.swing.table.TableModel- Overrides:
getColumnNamein classjavax.swing.table.AbstractTableModel
-
getValueAt
public java.lang.Object getValueAt(int row, int col)- Specified by:
getValueAtin interfacejavax.swing.table.TableModel
-
setValueAt
public void setValueAt(java.lang.Object value, int row, int col)- Specified by:
setValueAtin interfacejavax.swing.table.TableModel- Overrides:
setValueAtin classjavax.swing.table.AbstractTableModel
-
-
DMelt 3.0 © DataMelt by jWork.ORG