public void setModelValue(Object model, Object value) throws Exception {
((WorkspaceHQLSource) model).setOpenInterfaceHost((String) value);
}
};
TextEditor editor = new TextEditor();
editor.setSize(70);
//and finally create the configurationObject
FieldInfo fieldInfo = new FieldInfo(
OPEN_INTERFACE_HOST_ATTR,
OPEN_INTERFACE_HOST_ATTR,
modifier,
editor);
//add the configuration to the context for usage in the http-requests.
addField(OPEN_INTERFACE_HOST_ATTR, fieldInfo);
}
{
ModelModifier modifier = new DefaultModelModifier() {
public Object getModelValue(Object model) throws Exception {
return ((WorkspaceHQLSource) model).getDatabase();
}
public void setModelValue(Object model, Object value) throws Exception {
((WorkspaceHQLSource) model).setDatabase((String) value);
}
};
TextEditor editor = new TextEditor();
editor.setSize(30);
//and finally create the configurationObject
FieldInfo fieldInfo = new FieldInfo(
DATABASE_ATTR,
DATABASE_ATTR,
modifier,
editor);
//add the configuration to the context for usage in the http-requests.
addField(DATABASE_ATTR, fieldInfo);
}
{
ModelModifier modifier = new DefaultModelModifier() {
public Object getModelValue(Object model) throws Exception {
return ((WorkspaceHQLSource) model).getUsername();
}
public void setModelValue(Object model, Object value) throws Exception {
((WorkspaceHQLSource) model).setUsername((String) value);
}
};
TextEditor editor = new TextEditor();
editor.setSize(30);
//and finally create the configurationObject
FieldInfo fieldInfo = new FieldInfo(
USERNAME_ATTR,
USERNAME_ATTR,
modifier,
editor);
//add the configuration to the context for usage in the http-requests.
addField(USERNAME_ATTR, fieldInfo);
}
{
ModelModifier modifier = new DefaultModelModifier() {
public Object getModelValue(Object model) throws Exception {
return ((WorkspaceHQLSource) model).getPassword();
}
public void setModelValue(Object model, Object value) throws Exception {
((WorkspaceHQLSource) model).setPassword((String) value);
}
};
PasswordEditor editor = new PasswordEditor();
editor.setSize(30);
//and finally create the configurationObject
FieldInfo fieldInfo = new FieldInfo(
PASSWORD_ATTR,
PASSWORD_ATTR,
modifier,
editor);
//add the configuration to the context for usage in the http-requests.
addField(PASSWORD_ATTR, fieldInfo);
}
{
ModelModifier modifier = new DefaultModelModifier() {
public Object getModelValue(Object model) throws Exception {
return ((WorkspaceHQLSource) model).getHQLQuery();
}
public void setModelValue(Object model, Object value) throws Exception {
((WorkspaceHQLSource) model).setHQLQuery((String) value);
}
};
TextEditor editor = new TextEditor();
editor.setSize(100);
//and finally create the configurationObject
FieldInfo fieldInfo = new FieldInfo(
HQL_SELECT_QUERY_ATTR,
HQL_SELECT_QUERY_ATTR,
modifier,
editor);
//add the configuration to the context for usage in the http-requests.
addField(HQL_SELECT_QUERY_ATTR, fieldInfo);
}
{
ModelModifier modifier = new DefaultModelModifier() {
public Object getModelValue(Object model) throws Exception {
return ((WorkspaceHQLSource) model).getSessionTimeout();
}
public void setModelValue(Object model, Object value) throws Exception {
((WorkspaceHQLSource) model).setSessionTimeout((String) value);
}
};
TextEditor editor = new TextEditor();
editor.setSize(30);
//and finally create the configurationObject
FieldInfo fieldInfo = new FieldInfo(
SESSION_TIMEOUT_ATTR,
SESSION_TIMEOUT_ATTR,
modifier,
editor);
//add the configuration to the context for usage in the http-requests.
//context.addFieldInfo(fieldInfo);
addField(SESSION_TIMEOUT_ATTR, fieldInfo);
}
{
ModelModifier modifier = new DefaultModelModifier() {
public Object getModelValue(Object model) throws Exception {
return ((WorkspaceHQLSource) model).getResultsPerIteration();
}
public void setModelValue(Object model, Object value) throws Exception {
((WorkspaceHQLSource) model).setResultsPerIteration((String) value);
}
};
TextEditor editor = new TextEditor();
editor.setSize(30);
//and finally create the configurationObject
FieldInfo fieldInfo = new FieldInfo(
RESULTS_PER_ITERATION_ATTR,
RESULTS_PER_ITERATION_ATTR,