public class QueryController extends Object implements Serializable
| Constructor and Description |
|---|
QueryController() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(QueryControllerListener listener) |
QueryControllerQuery |
addQuery(String queryStr,
String queryId)
Creates a new query and adds it to the vector QueryControllerEntity.
|
QueryControllerQuery |
addQuery(String queryStr,
String queryId,
String groupId)
Creates a new query into a group and adds it to the vector
QueryControllerEntity
|
void |
createGroup(String groupId)
Creates a new group and adds it to the vector QueryControllerEntity
|
void |
fireElementAdded(QueryControllerEntity element) |
void |
fireElementAdded(QueryControllerQuery query,
QueryControllerGroup group) |
void |
fireElementChanged(QueryControllerQuery query) |
void |
fireElementChanged(QueryControllerQuery query,
QueryControllerGroup group) |
void |
fireElementRemoved(QueryControllerEntity element) |
void |
fireElementRemoved(QueryControllerQuery query,
QueryControllerGroup group) |
int |
getElementPosition(String element_id)
Returns the index of the element in the vector.
|
List<QueryControllerEntity> |
getElements() |
boolean |
getEventsDisabled() |
QueryControllerGroup |
getGroup(String groupId)
Searches a group and returns the object else returns null
|
List<QueryControllerGroup> |
getGroups()
Returns all the groups added
|
void |
removeAllListeners() |
void |
removeAllQueriesAndGroups()
Removes all the elements from the vector QueryControllerEntity
|
void |
removeGroup(String groupId)
Removes a group from the vector QueryControllerEntity
|
void |
removeListener(QueryControllerListener listener) |
void |
removeQuery(String id)
Removes a query from the vector QueryControllerEntity
|
void |
reset() |
void |
setEventsDisabled(boolean value) |
public void addListener(QueryControllerListener listener)
public void removeListener(QueryControllerListener listener)
public void removeAllListeners()
public void createGroup(String groupId) throws Exception
Exceptionpublic QueryControllerGroup getGroup(String groupId)
public List<QueryControllerGroup> getGroups()
public void removeGroup(String groupId)
public QueryControllerQuery addQuery(String queryStr, String queryId)
queryStr - The new query string, replacing any existing string.queryId - The query id associated to the string.public QueryControllerQuery addQuery(String queryStr, String queryId, String groupId)
public void removeAllQueriesAndGroups()
public void removeQuery(String id)
public int getElementPosition(String element_id)
public List<QueryControllerEntity> getElements()
public void fireElementAdded(QueryControllerEntity element)
public void fireElementAdded(QueryControllerQuery query, QueryControllerGroup group)
public void fireElementRemoved(QueryControllerEntity element)
public void fireElementRemoved(QueryControllerQuery query, QueryControllerGroup group)
public void fireElementChanged(QueryControllerQuery query)
public void fireElementChanged(QueryControllerQuery query, QueryControllerGroup group)
public void setEventsDisabled(boolean value)
public boolean getEventsDisabled()
public void reset()
Copyright © 2009–2020 Free University of Bozen-Bolzano. All rights reserved.