fldEventType.addSelectionChangedListener(new SelectionChangedListener() {
@Override
public void selectionChanged(SelectionChangedEvent se) {
ModelData modelData = se.getSelectedItem();
UpdateFldEvent(modelData, null);
}
});
verticalPanel.add(getFieldHorizontalLine(fldAction, "Accion", FIELD_WIDTH, LABEL_WIDTH));
fldAction.setAllowBlank(Boolean.FALSE);
registerField(fldAction);
ListStore listStore = new ListStore();
listStore.add(getModelData(RelationWindowOption.CREATE_TASK, "Crear Tarea"));
listStore.add(getModelData(RelationWindowOption.MODIFY_STATE, "Modificar Estado"));
fldAction.setStore(listStore);
fldAction.setEditable(Boolean.FALSE);
fldAction.setTypeAhead(true);
fldAction.setTriggerAction(TriggerAction.ALL);
fldAction.addSelectionChangedListener(new SelectionChangedListener() {
@Override
public void selectionChanged(SelectionChangedEvent se) {
ModelData modelData = se.getSelectedItem();
if (modelData!=null){
String key = modelData.get("key");
setVisiblePanel(key);
}
}
});