macaw.presentationLayer
Class VariableSearchPanel

java.lang.Object
  extended by macaw.presentationLayer.VariableSearchPanel
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, javax.swing.event.ListSelectionListener, javax.swing.event.TableModelListener

public class VariableSearchPanel
extends java.lang.Object
implements java.awt.event.ActionListener, javax.swing.event.ListSelectionListener, javax.swing.event.TableModelListener


Copyright 2010 Medical Research Council Unit for Lifelong Health and Ageing Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Version:
1.0
Author:
Kevin Garwood (kgarwood@users.sourceforge.net)

Constructor Summary
VariableSearchPanel(SessionProperties sessionProperties)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
           
 void applySearch()
           
 void deleteSelectedItems()
           
 javax.swing.JPanel getPanel()
           
 Variable getSelectedVariable()
           
 java.util.ArrayList<Variable> getSelectedVariables()
           
 boolean hasSearchResults()
           
 void refreshList()
           
 void reset()
           
 void selectVariable(Variable variable)
           
 void setChangeListener(javax.swing.event.ChangeListener changeListener)
           
 void setSelectionMode(int selectionMode)
           
 boolean showDerivedVariables()
           
 boolean showRawVariables()
           
 void tableChanged(javax.swing.event.TableModelEvent event)
           
 void valueChanged(javax.swing.event.ListSelectionEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariableSearchPanel

public VariableSearchPanel(SessionProperties sessionProperties)
Method Detail

deleteSelectedItems

public void deleteSelectedItems()
                         throws MacawException
Throws:
MacawException

getPanel

public javax.swing.JPanel getPanel()

getSelectedVariables

public java.util.ArrayList<Variable> getSelectedVariables()
                                                   throws MacawException
Throws:
MacawException

getSelectedVariable

public Variable getSelectedVariable()
                             throws MacawException
Throws:
MacawException

applySearch

public void applySearch()

refreshList

public void refreshList()

reset

public void reset()

setChangeListener

public void setChangeListener(javax.swing.event.ChangeListener changeListener)

setSelectionMode

public void setSelectionMode(int selectionMode)

showRawVariables

public boolean showRawVariables()

showDerivedVariables

public boolean showDerivedVariables()

selectVariable

public void selectVariable(Variable variable)

hasSearchResults

public boolean hasSearchResults()

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

valueChanged

public void valueChanged(javax.swing.event.ListSelectionEvent event)
Specified by:
valueChanged in interface javax.swing.event.ListSelectionListener

tableChanged

public void tableChanged(javax.swing.event.TableModelEvent event)
Specified by:
tableChanged in interface javax.swing.event.TableModelListener