Package cbsw
Class RegisterIoTable
- java.lang.Object
- 
- cbsw.RegisterIoTable
 
- 
 public class RegisterIoTable extends java.lang.ObjectA GUI display that tabulates data read through a RegisterIo interface 
- 
- 
Field SummaryFields Modifier and Type Field Description (package private) intbaseAddress(package private) intcsrAddress(package private) byte[]csrCache(package private) intcsrSize(package private) javax.swing.JButtondecodeButton(package private) RegisterIoio(package private) javax.swing.JTabletable(package private) java.lang.String[]tableColumnNames(package private) java.lang.Object[][]tableData(package private) inttableDataDisplayWidth(package private) javax.swing.JScrollPanetableSP(package private) java.lang.Stringtitle
 - 
Constructor SummaryConstructors Constructor Description RegisterIoTable()No-argument constructor used by unmarshaller
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddDecodeAction(java.awt.event.ActionListener al)Add a decode ActionListenervoidcache()Reads the register array from hardware into local cache.byte[]getCache()Returns the cache.javax.swing.JTablegetStatusTable()Deprecated.javax.swing.JTablegetTable()Returns the tablejava.lang.StringgetTitle()Returns the table titlevoidinit(RegisterIo io)Called after unmarshalling to complete initialisationjavax.swing.JPanelmakePanel()Creates a panel containing the tablestatic javax.swing.JPanelmakePanel(java.util.ArrayList<RegisterIoTable> tableList)Creates a panel containing all the unmarshalled tablesvoidupdateStatusTable()Deprecated.voidupdateTable()Update table from previously cached datavoidwriteArray(byte[] regs)Writes cached values to hardware
 
- 
- 
- 
Field Detail- 
ioRegisterIo io 
 - 
titlejava.lang.String title 
 - 
baseAddressint baseAddress 
 - 
csrAddressint csrAddress 
 - 
csrSizeint csrSize 
 - 
tableDataDisplayWidthint tableDataDisplayWidth 
 - 
tableColumnNamesjava.lang.String[] tableColumnNames 
 - 
tableDatajava.lang.Object[][] tableData 
 - 
tableSPjavax.swing.JScrollPane tableSP 
 - 
tablejavax.swing.JTable table 
 - 
csrCachebyte[] csrCache 
 - 
decodeButtonjavax.swing.JButton decodeButton 
 
- 
 - 
Method Detail- 
getTitlepublic java.lang.String getTitle() Returns the table title - Returns:
- The title
 
 - 
initpublic void init(RegisterIo io) Called after unmarshalling to complete initialisation - Parameters:
- io- The hardware I/O interface
 
 - 
getStatusTable@Deprecated public javax.swing.JTable getStatusTable() Deprecated.Replaced by getTable()- Returns:
- The table
 
 - 
getTablepublic javax.swing.JTable getTable() Returns the table - Returns:
- The table
 
 - 
makePanelpublic javax.swing.JPanel makePanel() Creates a panel containing the table - Returns:
- The panel
 
 - 
addDecodeActionpublic void addDecodeAction(java.awt.event.ActionListener al) Add a decode ActionListener The ActionListener is called when the decode button is pressed. - Parameters:
- al- The ActionListener
 
 - 
writeArraypublic void writeArray(byte[] regs) Writes cached values to hardware - Parameters:
- regs- Data to write
 
 - 
cachepublic void cache() Reads the register array from hardware into local cache. 
 - 
getCachepublic byte[] getCache() Returns the cache. - Returns:
- The data cache
 
 - 
updateStatusTable@Deprecated public void updateStatusTable() Deprecated.Replaced by updateTable()
 - 
updateTablepublic void updateTable() Update table from previously cached data 
 - 
makePanelpublic static javax.swing.JPanel makePanel(java.util.ArrayList<RegisterIoTable> tableList) Creates a panel containing all the unmarshalled tables - Parameters:
- tableList- The list of tables
- Returns:
- The panel
 
 
- 
 
-