public class JFrameReportVariables extends Object implements ReportWithGUI, ReportVariables, TableModel, org.springframework.beans.factory.InitializingBean
Modifier and Type | Field and Description |
---|---|
protected LinkedList<TableModelListener> |
listeners |
protected ReportVariables |
reportVariables
This report collects the data that we will write.
|
protected JTable |
table |
Constructor and Description |
---|
JFrameReportVariables() |
Modifier and Type | Method and Description |
---|---|
void |
addTableModelListener(TableModelListener l) |
void |
afterPropertiesSet() |
void |
compute(SimEvent event)
Update variables.
|
void |
dispose(SimEvent event)
Clean up any side effects (eg close file).
|
void |
eventOccurred(SimEvent event) |
Class<?> |
getColumnClass(int columnIndex) |
int |
getColumnCount() |
String |
getColumnName(int columnIndex) |
JComponent |
getComponent() |
DecimalFormat |
getFormat() |
String |
getName() |
ReportVariables |
getReportVariables() |
int |
getRowCount() |
Object |
getValueAt(int rowIndex,
int columnIndex) |
Map<Object,Number> |
getVariableBindings()
Get the values calculated by this report.
|
void |
initialise(SimEvent event)
Initialise the variables in response to event.
|
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
void |
notifyTableChanged() |
void |
removeTableModelListener(TableModelListener l) |
void |
setFormat(DecimalFormat format) |
void |
setReportVariables(ReportVariables reportVariables) |
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex) |
protected LinkedList<TableModelListener> listeners
protected ReportVariables reportVariables
protected JTable table
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public void compute(SimEvent event)
ReportVariables
compute
in interface ReportVariables
public Map<Object,Number> getVariableBindings()
Report
getVariableBindings
in interface Report
Map
of user-readable variable names to their
associated values.public void eventOccurred(SimEvent event)
eventOccurred
in interface EventListener
public void dispose(SimEvent event)
ReportVariables
dispose
in interface ReportVariables
public void initialise(SimEvent event)
ReportVariables
initialise
in interface ReportVariables
public ReportVariables getReportVariables()
public void setReportVariables(ReportVariables reportVariables)
public DecimalFormat getFormat()
public void setFormat(DecimalFormat format)
public int getRowCount()
getRowCount
in interface TableModel
public int getColumnCount()
getColumnCount
in interface TableModel
public String getColumnName(int columnIndex)
getColumnName
in interface TableModel
public Class<?> getColumnClass(int columnIndex)
getColumnClass
in interface TableModel
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface TableModel
public Object getValueAt(int rowIndex, int columnIndex)
getValueAt
in interface TableModel
public void setValueAt(Object aValue, int rowIndex, int columnIndex)
setValueAt
in interface TableModel
public void addTableModelListener(TableModelListener l)
addTableModelListener
in interface TableModel
public void removeTableModelListener(TableModelListener l)
removeTableModelListener
in interface TableModel
public void notifyTableChanged()
public String getName()
getName
in interface Report
getName
in interface ReportVariables
public JComponent getComponent()
getComponent
in interface ReportWithGUI
Copyright © 2014. All rights reserved.