arlut.csd.ganymede.client
Class QueryRow

java.lang.Object
  |
  +--arlut.csd.ganymede.client.QueryRow
All Implemented Interfaces:
java.util.EventListener, java.awt.event.ItemListener

class QueryRow
extends java.lang.Object
implements java.awt.event.ItemListener


Field Summary
(package private)  javax.swing.JComboBox boolChoice
           
(package private)  javax.swing.JComboBox compareChoice
           
(package private) static boolean debug
           
(package private)  arlut.csd.ganymede.FieldTemplate field
           
(package private)  javax.swing.JComboBox fieldChoice
           
(package private)  java.lang.String fieldName
           
(package private)  java.util.Vector fields
           
(package private)  javax.swing.JComponent operand
           
(package private)  javax.swing.JPanel operandContainer
           
(package private)  javax.swing.JPanel panel
           
(package private)  arlut.csd.ganymede.client.querybox parent
           
(package private)  boolean showDoes
           
 
Constructor Summary
(package private) QueryRow(javax.swing.JPanel panel, arlut.csd.ganymede.client.querybox parent)
           
 
Method Summary
 arlut.csd.ganymede.Base getBase()
          This method returns a reference to the Base that this QueryRow is set to search on.
 arlut.csd.ganymede.QueryNode getQueryNode()
          This method returns a QueryNode corresponding to the current configuration of this QueryRow.
private  boolean isNot()
           
 void itemStateChanged(java.awt.event.ItemEvent e)
          This is the standard ItemListener callback method.
private  void removeOperand()
          Private helper method to remove the operand component and handle any unregistration required.
(package private)  void removeRow()
          This method is called when the querybox wants to remove this row.
(package private)  void resetBoolean(arlut.csd.ganymede.FieldTemplate field, java.lang.String opName)
          This method sets up the boolean choice combobox.
(package private)  void resetCompare(arlut.csd.ganymede.FieldTemplate field)
          This method sets up the comparison operator combobox.
private  void resetFieldChoices()
          Internal method to return a choice menu containing the fields for a particular base
(package private)  void resetOperand(arlut.csd.ganymede.FieldTemplate field, java.lang.String opName)
          This method sets up the operand GUI component.
(package private)  void setField(arlut.csd.ganymede.FieldTemplate field, java.lang.String fieldName)
          This method takes care of matters when we change or set our field combo box.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

static final boolean debug
See Also:
Constant Field Values

parent

arlut.csd.ganymede.client.querybox parent

panel

javax.swing.JPanel panel

field

arlut.csd.ganymede.FieldTemplate field

fields

java.util.Vector fields

fieldChoice

javax.swing.JComboBox fieldChoice

boolChoice

javax.swing.JComboBox boolChoice

compareChoice

javax.swing.JComboBox compareChoice

operandContainer

javax.swing.JPanel operandContainer

operand

javax.swing.JComponent operand

fieldName

java.lang.String fieldName

showDoes

boolean showDoes
Constructor Detail

QueryRow

QueryRow(javax.swing.JPanel panel,
         arlut.csd.ganymede.client.querybox parent)
Method Detail

resetFieldChoices

private void resetFieldChoices()
                        throws java.rmi.RemoteException
Internal method to return a choice menu containing the fields for a particular base

java.rmi.RemoteException

setField

void setField(arlut.csd.ganymede.FieldTemplate field,
              java.lang.String fieldName)
This method takes care of matters when we change or set our field combo box. Note that we don't set the fieldChoice contents here, as we assume it will be done by the user or by resetFieldChoices().


resetBoolean

void resetBoolean(arlut.csd.ganymede.FieldTemplate field,
                  java.lang.String opName)
This method sets up the boolean choice combobox.


resetCompare

void resetCompare(arlut.csd.ganymede.FieldTemplate field)
This method sets up the comparison operator combobox.


resetOperand

void resetOperand(arlut.csd.ganymede.FieldTemplate field,
                  java.lang.String opName)
This method sets up the operand GUI component.


removeOperand

private void removeOperand()

Private helper method to remove the operand component and handle any unregistration required.


removeRow

void removeRow()
This method is called when the querybox wants to remove this row. This method takes care of removing all components from panel, but does not take care of removing itself from the querybox Rows Vector.


getBase

public arlut.csd.ganymede.Base getBase()
This method returns a reference to the Base that this QueryRow is set to search on. The Base that an individual QueryRow is set to search on may differ from the selectedBase in parent because we allow searches on fields contained in embedded objects.


getQueryNode

public arlut.csd.ganymede.QueryNode getQueryNode()
This method returns a QueryNode corresponding to the current configuration of this QueryRow.


isNot

private boolean isNot()
Returns:
true if this QueryRow negates the basic comparison

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent e)
This is the standard ItemListener callback method. This method catches events from Checkboxes and various choice components.

Specified by:
itemStateChanged in interface java.awt.event.ItemListener
See Also:
ItemListener