Class DefaultInternalNamedTable
- java.lang.Object
-
- jmri.implementation.AbstractNamedBean
-
- jmri.jmrit.logixng.implementation.AbstractNamedTable
-
- jmri.jmrit.logixng.implementation.DefaultInternalNamedTable
-
- All Implemented Interfaces:
java.lang.Comparable<NamedBean>
,PropertyChangeProvider
,NamedTable
,Table
,NamedBean
public class DefaultInternalNamedTable extends AbstractNamedTable
The default implementation of a NamedTable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jmri.NamedBean
NamedBean.BadNameException, NamedBean.BadSystemNameException, NamedBean.BadUserNameException, NamedBean.DisplayOptions, NamedBean.DuplicateSystemNameException
-
Nested classes/interfaces inherited from interface jmri.jmrit.logixng.Table
Table.ColumnNotFoundException, Table.CsvType, Table.RowNotFoundException
-
-
Field Summary
-
Fields inherited from class jmri.jmrit.logixng.implementation.AbstractNamedTable
_internalTable
-
Fields inherited from class jmri.implementation.AbstractNamedBean
listenerRefs, mSystemName, register
-
Fields inherited from interface jmri.NamedBean
DISPLAY_NAME_FORMAT, INCONSISTENT, PROPERTY_STATE, QUOTED_NAME_FORMAT, UNKNOWN
-
-
Constructor Summary
Constructors Constructor Description DefaultInternalNamedTable(java.lang.String sys, java.lang.String user, int numRows, int numColumns)
Create a new named table.DefaultInternalNamedTable(java.lang.String systemName, java.lang.String userName, java.lang.Object[][] data)
Create a new named table with an existing array of cells.
-
Method Summary
-
Methods inherited from class jmri.jmrit.logixng.implementation.AbstractNamedTable
getBeanType, getCell, getColumnNumber, getRowNumber, getState, loadTableFromCSV_File, loadTableFromCSV_File, loadTableFromCSV_Text, numColumns, numRows, setCell, setState, storeTableAsCSV, storeTableAsCSV
-
Methods inherited from class jmri.implementation.AbstractNamedBean
addPropertyChangeListener, addPropertyChangeListener, addPropertyChangeListener, addPropertyChangeListener, compareSystemNameSuffix, describeState, dispose, equals, firePropertyChange, getComment, getDisplayName, getDisplayName, getListenerRef, getListenerRefs, getNumPropertyChangeListeners, getProperty, getPropertyChangeListeners, getPropertyChangeListeners, getPropertyChangeListenersByReference, getPropertyKeys, getSystemName, getUserName, hashCode, removeProperty, removePropertyChangeListener, removePropertyChangeListener, setComment, setProperty, setUserName, toString, toStringSuffix, updateListenerRef, vetoableChange
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jmri.NamedBean
addPropertyChangeListener, addPropertyChangeListener, compareSystemNameSuffix, compareTo, describeState, dispose, getComment, getDisplayName, getDisplayName, getListenerRef, getListenerRefs, getNumPropertyChangeListeners, getProperty, getPropertyChangeListenersByReference, getPropertyKeys, getRecommendedToolTip, getSystemName, getUsageReport, getUserName, removeProperty, setComment, setProperty, setUserName, toString, updateListenerRef, vetoableChange
-
Methods inherited from interface jmri.beans.PropertyChangeProvider
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
-
Methods inherited from interface jmri.jmrit.logixng.Table
getCell, getCell, getCell, getCsvType, isCsvTypeSupported, setCell, setCell, setCsvType
-
-
-
-
Constructor Detail
-
DefaultInternalNamedTable
public DefaultInternalNamedTable(@Nonnull java.lang.String sys, @CheckForNull java.lang.String user, int numRows, int numColumns) throws NamedBean.BadUserNameException, NamedBean.BadSystemNameException
Create a new named table.- Parameters:
sys
- the system nameuser
- the user name or null if no user namenumRows
- the number or rows in the tablenumColumns
- the number of columns in the table- Throws:
NamedBean.BadUserNameException
NamedBean.BadSystemNameException
-
DefaultInternalNamedTable
public DefaultInternalNamedTable(@Nonnull java.lang.String systemName, @CheckForNull java.lang.String userName, @Nonnull java.lang.Object[][] data) throws NamedBean.BadUserNameException, NamedBean.BadSystemNameException
Create a new named table with an existing array of cells. Row 0 has the column names and column 0 has the row names.- Parameters:
systemName
- the system nameuserName
- the user namedata
- the data in the table. Note that this data is not copied to an new array but used by the table as is.- Throws:
NamedBean.BadUserNameException
NamedBean.BadSystemNameException
-
-