com.ontimize.gui
Class BasicInteractionManager.QueryListener
java.lang.Object
com.ontimize.gui.BasicInteractionManager.QueryListener
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.util.EventListener
- Direct Known Subclasses:
- BasicInteractionManager.AvancedQueryListener
- Enclosing class:
- BasicInteractionManager
- public class BasicInteractionManager.QueryListener
- extends java.lang.Object
- implements java.awt.event.ActionListener
Query button default listener. If the event occurs when the form is in the
query mode, checkQuery is called. If this method returns true, this
implies than the query can go on, and a thread is launched to perform this
operation. This thread can be canceled if the operation takes too long.
The filter of the query are the values of the non empty fields in the
form. This values are established in checkQuery, both the values of the
filter(WHERE) and the database fields to query. With the result of this
query the form fields are filled in.
|
Method Summary |
protected void |
action(java.awt.event.ActionEvent event,
boolean advancedQuery)
The method that performs the query. |
void |
actionPerformed(java.awt.event.ActionEvent event)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicInteractionManager.QueryListener
public BasicInteractionManager.QueryListener()
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent event)
- Specified by:
actionPerformed in interface java.awt.event.ActionListener
action
protected void action(java.awt.event.ActionEvent event,
boolean advancedQuery)
- The method that performs the query. It receives an event, coming from
the query button, and the mode in which the query is being performed.
- Parameters:
event - advancedQuery - if true, the advanced query mode will be enabled, allowing to
pass complex expressions to the server to perform the
operation