issrg.utils.gui.ifcondition
Class ConditionsTable

java.lang.Object
  extended by 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
           
 
Constructor Summary
ConditionsTable(XMLEditor xmlED, javax.swing.JFrame owner, java.util.ResourceBundle rb, ConditionOnComboBoxFactory conditionOnCBFactory, int index)
          Creates a new instance of ConditionsTable
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void addRow(int rowLevel)
           
 void columnAdded(javax.swing.event.TableColumnModelEvent e)
           
 void columnMarginChanged(javax.swing.event.ChangeEvent e)
           
 void columnMoved(javax.swing.event.TableColumnModelEvent e)
           
 void columnRemoved(javax.swing.event.TableColumnModelEvent e)
           
 void columnSelectionChanged(javax.swing.event.ListSelectionEvent e)
           
 void deleteRow(int rowLevel)
           
 java.lang.String getColumn1()
           
 java.util.Vector getColumn1Store()
           
 java.lang.String getColumn2()
           
 java.util.Vector getColumn2Store()
           
 java.lang.String getColumn3()
           
 java.util.Vector getColumn3Store()
           
 java.lang.String getColumn4()
           
 java.util.Vector getColumn4Store()
           
 ConditionOnComboBoxFactory getConditionOnCBFactory()
           
 javax.swing.JPanel getContentPanel()
           
 java.util.Vector getOperatorTypes(java.lang.String type)
           
 void getRelations()
          This method defines which data is allowed to be inputted from the data selections in the drop down lists.
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 void setColumn1(java.lang.String column1)
           
 void setColumn1Store(java.util.Vector column1Store)
           
 void setColumn2(java.lang.String column2)
           
 void setColumn2Store(java.util.Vector column2Store)
           
 void setColumn3(java.lang.String column3)
           
 void setColumn3Store(java.util.Vector column3Store)
           
 void setColumn4(java.lang.String column4)
           
 void setColumn4Store(java.util.Vector column4Store)
           
 void setConditionOnCB(ConditionOnComboBoxFactory conditionOnCBFactory)
           
 void setRowHeight(int height)
           
 javax.swing.JTextField setUpColumnThree(javax.swing.JTextField tf, java.lang.String type)
           
 javax.swing.JComboBox setUpColumnTwo(java.lang.String conditionOn)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ConditionsTable

public ConditionsTable(XMLEditor xmlED,
                       javax.swing.JFrame owner,
                       java.util.ResourceBundle rb,
                       ConditionOnComboBoxFactory conditionOnCBFactory,
                       int index)
Creates a new instance of ConditionsTable

Method Detail

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()