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) |
|
00027 { 00028 this("blocks"); 00029 } |
|
00032 { 00033 this(session, "blocks"); 00034 } |
|
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 } |
|
00056 { 00057 this(shotSegmentation); 00058 setSession(session); 00059 } |
|
00062 { 00063 _singleSegmentation = single; 00064 } |
|
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 } |
|
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 } |
|
00087 { 00088 addField(title, new VideoField(data)); 00089 } |
|
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 } |
|
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 } |
|
00120 { 00121 _user = user; 00122 _butQuery.setEnabled((_session != null)&&(_user != null)); 00123 _butSQL.setEnabled(_user != null); 00124 } |
|
00127 { 00128 _session = session; 00129 _butQuery.setEnabled((_session != null)&&(_user != null)); 00130 } |