private void handleTableSelectionEvent(ListSelectionEvent e){
  int row=functionParameterTable.getSelectedRow();
  int column=functionParameterTable.getSelectedColumn();
  ProcessFunctionParameterValue value=functionParameterTableModel.getValue(row);
  if (value != null) {
    int count=functionParameterTableModel.getNoOfOccurences(value);
    btnAdd.setEnabled(count < value.maxOccurences);
    btnRemove.setEnabled((count > value.minOccurences) && (count > 1));
  }
 else {
    btnAdd.setEnabled(false);
    btnRemove.setEnabled(false);
  }
  if (column == 3) {
    String title=String.format("%s - %s : %s",value.name,Localisation.getString(RenderTransformationDialog.class,"RenderTransformationDialog.type"),value.dataType);
    expressionPanel.configure(title,value.type,false);
    expressionPanel.populate((Expression)value.value,value.enumValueList);
    if (expressionPanel.showDialog()) {
      Expression expression=expressionPanel.getExpression();
      functionParameterTableModel.setValueAt(expression,row,column);
    }
  }
}

private void handleTableSelectionEvent ( ListSelectionEvent e ) { int row = functionParameterTable . getSelectedRow ( ) ; int column = functionParameterTable . getSelectedColumn ( ) ; ProcessFunctionParameterValue value = functionParameterTableModel . getValue ( row ) ; if ( value != null ) { int count = functionParameterTableModel . getNoOfOccurences ( value ) ; btnAdd . setEnabled ( count < value . maxOccurences ) ; btnRemove . setEnabled ( ( count > value . minOccurences ) && ( count > 1 ) ) ; } else { btnAdd . setEnabled ( false ) ; btnRemove . setEnabled ( false ) ; } if ( column == 3 ) { String title = String . format ( "%s - %s : %s" , value . name , Localisation . getString ( RenderTransformationDialog . class , "RenderTransformationDialog.type" ) , value . dataType ) ; expressionPanel . configure ( title , value . type , false ) ; expressionPanel . populate ( ( Expression ) value . value , value . enumValueList ) ; if ( expressionPanel . showDialog ( ) ) { Expression expression = expressionPanel . getExpression ( ) ; functionParameterTableModel . setValueAt ( expression , row , column ) ; } } }
handle table selection event .
