Horus Doc || Java GUI Reference || Doxygen's quick Index  

QueryFormPanel Class Reference

List of all members.

Public Methods

 QueryFormPanel ()
 QueryFormPanel (HxCorba.DatabaseSession session)
 QueryFormPanel (String shotSegmentation)
 QueryFormPanel (HxCorba.DatabaseSession session, String shotSegmentation)
void useSingleSegmentation (boolean single)
void addFeatureField (String title, String segmentation, String feature, boolean loadData)
 Adds a field to the form where user can type the value of a feature. More...

void addVideoField (String title, boolean loadData)
 Adds a field to the form where user can type the name of a video. More...

void addVideoField (String title, String[] data)
void addMultiFeatureField (String title, String[] segmentations, String features[])
 Adds a field to the form where user can type the value of a feature. More...

void addSegmentationField (String title, String[] segmentations)
 Adds a field to the form where user can select one of the given segmentations. More...

void setUser (QueryUser user)
void setSession (HxCorba.DatabaseSession session)

Constructor & Destructor Documentation

QueryFormPanel::QueryFormPanel   [inline]
 

00027 {
00028     this("blocks");
00029 }

QueryFormPanel::QueryFormPanel HxCorba.DatabaseSession    session [inline]
 

00032 {
00033     this(session, "blocks");
00034 }

QueryFormPanel::QueryFormPanel String    shotSegmentation [inline]
 

00037 {
00038     _session = null;
00039     _user = null;
00040 
00041     _mainSegmentation = shotSegmentation;
00042 
00043     _fields = new Vector();
00044     _fields.add(new MainSegmentationField());
00045 
00046     createContents(this);
00047 
00048     _actions.addButton(_butQuery, "query");
00049     _actions.addButton(_butSQL, "showSQL");
00050 
00051     _butQuery.setEnabled(false);
00052     _butSQL.setEnabled(false);
00053 }

QueryFormPanel::QueryFormPanel HxCorba.DatabaseSession    session,
String    shotSegmentation
[inline]
 

00056 {
00057     this(shotSegmentation);
00058     setSession(session);
00059 }


Member Function Documentation

void QueryFormPanel::useSingleSegmentation boolean    single [inline]
 

00062 {
00063     _singleSegmentation = single;
00064 }

void QueryFormPanel::addFeatureField String    title,
String    segmentation,
String    feature,
boolean    loadData
[inline]
 

Adds a field to the form where user can type the value of a feature.

The query will search for that value in the segmentation/feature given. If loadData is true, the panel will query all possible values and will show them in a ComboBox. Otherwise, a TextField is used.

00073 {
00074     addField(title, new FeatureField(segmentation, feature, loadData));
00075 }

void QueryFormPanel::addVideoField String    title,
boolean    loadData
[inline]
 

Adds a field to the form where user can type the name of a video.

If loadData is true, the panel will query all possible values and will show them in a ComboBox. Otherwise, a TextField is used.

00082 {
00083     addField(title, new VideoField(loadData));
00084 }

void QueryFormPanel::addVideoField String    title,
String    data[]
[inline]
 

00087 {
00088     addField(title, new VideoField(data));
00089 }

void QueryFormPanel::addMultiFeatureField String    title,
String    segmentations[],
String    features[]
[inline]
 

Adds a field to the form where user can type the value of a feature.

The query will search for that value in all the segmentations/features given.

00096 {
00097     addField(title, new MultiFeatureField(segmentations, features));
00098 }

void QueryFormPanel::addSegmentationField String    title,
String    segmentations[]
[inline]
 

Adds a field to the form where user can select one of the given segmentations.

The query will return only shots that intersect with a segment of the selected segmentation.

00105 {
00106     addField(title, new SegmentationField(segmentations));
00107 }

void QueryFormPanel::setUser QueryUser    user [inline]
 

00120 {
00121     _user = user;
00122     _butQuery.setEnabled((_session != null)&&(_user != null));
00123     _butSQL.setEnabled(_user != null);
00124 }

void QueryFormPanel::setSession HxCorba.DatabaseSession    session [inline]
 

00127 {
00128     _session = session;
00129     _butQuery.setEnabled((_session != null)&&(_user != null));
00130 }


The documentation for this class was generated from the following file:
Generated on Mon Jan 27 15:11:25 2003 for JavaReference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001