issrg.utils.gui.ifcondition
Class ConditionsTable
java.lang.Object
issrg.utils.gui.ifcondition.ConditionsTable
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.awt.event.MouseListener, java.util.EventListener, javax.swing.event.TableColumnModelListener
- Direct Known Subclasses:
- AdvancedConditionsTable
public class ConditionsTable
- extends java.lang.Object
- implements javax.swing.event.TableColumnModelListener, java.awt.event.ActionListener, java.awt.event.MouseListener
ConditionsTable creates a table for creating IF conditions. It explicitly
initializes column sizes and it uses combo boxes as editors.
- Author:
- Christian Azzopardi
Field Summary |
javax.swing.table.TableColumnModel |
model
|
protected javax.swing.ListSelectionModel |
selectionModel
Model for keeping track of column selections |
javax.swing.JTable |
table
|
javax.swing.table.DefaultTableModel |
tableModel
|
javax.swing.JPanel |
tableView
|
java.util.Hashtable |
varTypeLinks
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
varTypeLinks
public java.util.Hashtable varTypeLinks
selectionModel
protected javax.swing.ListSelectionModel selectionModel
- Model for keeping track of column selections
tableModel
public javax.swing.table.DefaultTableModel tableModel
model
public javax.swing.table.TableColumnModel model
table
public javax.swing.JTable table
tableView
public javax.swing.JPanel tableView
ConditionsTable
public ConditionsTable(XMLEditor xmlED,
javax.swing.JFrame owner,
java.util.ResourceBundle rb,
ConditionOnComboBoxFactory conditionOnCBFactory,
int index)
- Creates a new instance of ConditionsTable
getContentPanel
public javax.swing.JPanel getContentPanel()
getRelations
public void getRelations()
- This method defines which data is allowed to be inputted from the data
selections in the drop down lists.
getOperatorTypes
public java.util.Vector getOperatorTypes(java.lang.String type)
addRow
public void addRow(int rowLevel)
deleteRow
public void deleteRow(int rowLevel)
setUpColumnThree
public javax.swing.JTextField setUpColumnThree(javax.swing.JTextField tf,
java.lang.String type)
setUpColumnTwo
public javax.swing.JComboBox setUpColumnTwo(java.lang.String conditionOn)
setRowHeight
public void setRowHeight(int height)
columnAdded
public void columnAdded(javax.swing.event.TableColumnModelEvent e)
- Specified by:
columnAdded
in interface javax.swing.event.TableColumnModelListener
columnMarginChanged
public void columnMarginChanged(javax.swing.event.ChangeEvent e)
- Specified by:
columnMarginChanged
in interface javax.swing.event.TableColumnModelListener
columnMoved
public void columnMoved(javax.swing.event.TableColumnModelEvent e)
- Specified by:
columnMoved
in interface javax.swing.event.TableColumnModelListener
columnRemoved
public void columnRemoved(javax.swing.event.TableColumnModelEvent e)
- Specified by:
columnRemoved
in interface javax.swing.event.TableColumnModelListener
columnSelectionChanged
public void columnSelectionChanged(javax.swing.event.ListSelectionEvent e)
- Specified by:
columnSelectionChanged
in interface javax.swing.event.TableColumnModelListener
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)
- Specified by:
mouseClicked
in interface java.awt.event.MouseListener
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent e)
- Specified by:
mouseEntered
in interface java.awt.event.MouseListener
mouseExited
public void mouseExited(java.awt.event.MouseEvent e)
- Specified by:
mouseExited
in interface java.awt.event.MouseListener
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
- Specified by:
mousePressed
in interface java.awt.event.MouseListener
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
- Specified by:
mouseReleased
in interface java.awt.event.MouseListener
setConditionOnCB
public void setConditionOnCB(ConditionOnComboBoxFactory conditionOnCBFactory)
getConditionOnCBFactory
public ConditionOnComboBoxFactory getConditionOnCBFactory()
setColumn1Store
public void setColumn1Store(java.util.Vector column1Store)
getColumn1Store
public java.util.Vector getColumn1Store()
setColumn1
public void setColumn1(java.lang.String column1)
getColumn1
public java.lang.String getColumn1()
setColumn2
public void setColumn2(java.lang.String column2)
getColumn2
public java.lang.String getColumn2()
setColumn3
public void setColumn3(java.lang.String column3)
getColumn3
public java.lang.String getColumn3()
setColumn4
public void setColumn4(java.lang.String column4)
getColumn4
public java.lang.String getColumn4()
setColumn2Store
public void setColumn2Store(java.util.Vector column2Store)
getColumn2Store
public java.util.Vector getColumn2Store()
setColumn3Store
public void setColumn3Store(java.util.Vector column3Store)
getColumn3Store
public java.util.Vector getColumn3Store()
setColumn4Store
public void setColumn4Store(java.util.Vector column4Store)
getColumn4Store
public java.util.Vector getColumn4Store()