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
|
Constructor Summary |
(package private) |
QueryRow(javax.swing.JPanel panel,
querybox parent)
|
|
Method Summary |
Base |
getBase()
This method returns a reference to the Base that this QueryRow
is set to search on. |
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. |
(package private) void |
removeRow()
This method is called when the querybox wants to remove this row. |
(package private) void |
resetBoolean(FieldTemplate field,
java.lang.String opName)
This method sets up the boolean choice combobox. |
(package private) void |
resetCompare(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(FieldTemplate field,
java.lang.String opName)
This method sets up the operand GUI component. |
(package private) void |
setField(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, registerNatives, toString, wait, wait, wait |
debug
static final boolean debug
parent
querybox parent
panel
javax.swing.JPanel panel
field
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
QueryRow
QueryRow(javax.swing.JPanel panel,
querybox parent)
resetFieldChoices
private void resetFieldChoices()
throws java.rmi.RemoteException
- Internal method to return a choice menu containing the fields for
a particular base
setField
void setField(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(FieldTemplate field,
java.lang.String opName)
- This method sets up the boolean choice combobox.
resetCompare
void resetCompare(FieldTemplate field)
- This method sets up the comparison operator combobox.
resetOperand
void resetOperand(FieldTemplate field,
java.lang.String opName)
- This method sets up the operand GUI component.
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 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 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