registerField(fldEventType);
verticalPanel.add(getFieldHorizontalLine(fldEvent, "Evento", FIELD_WIDTH, LABEL_WIDTH));
fldEvent.setAllowBlank(Boolean.FALSE);
registerField(fldEvent);
ListStore listStoreEventType = new ListStore();
//listStoreEventType.add(getModelData(ServiceNameConst.LIST_EVENT_LDAP, "LDAP"));
listStoreEventType.add(getModelData(ServiceNameConst.LIST_EVENT_LOGS, "Patron en logs"));
listStoreEventType.add(getModelData(ServiceNameConst.LIST_EVENT_FILES, "Archivos"));
listStoreEventType.add(getModelData(ServiceNameConst.LIST_EVENT_SERVICES, "Servicios"));
fldEventType.setStore(listStoreEventType);
fldEventType.setEditable(Boolean.FALSE);
fldEventType.setTypeAhead(true);
fldEventType.setTriggerAction(TriggerAction.ALL);
ListStore listStoreEvent = new ListStore();
fldEvent.setStore(listStoreEvent);
fldEvent.setEditable(Boolean.FALSE);
fldEvent.setTypeAhead(true);
fldEvent.setTriggerAction(TriggerAction.ALL);
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);