use of com.evolveum.midpoint.web.page.admin.workflow.dto.EvaluatedTriggerDto in project midpoint by Evolveum.
the class EvaluatedTriggerPanel method initLayout.
protected void initLayout() {
EvaluatedTriggerDto trigger = getModelObject();
WebMarkupContainer frame = new WebMarkupContainer(ID_FRAME);
if (trigger.isHighlighted()) {
// TODO skin
frame.add(new AttributeAppender("style", "background-color: #fcffd3"));
}
add(frame);
frame.add(new Label(ID_MESSAGE, new LocalizableMessageModel(Model.of(trigger.getMessage()), this)));
EvaluatedTriggerGroupDto children = trigger.getChildren();
EvaluatedTriggerGroupPanel childrenPanel = new EvaluatedTriggerGroupPanel(ID_CHILDREN, Model.of(children));
childrenPanel.setVisible(!children.getTriggers().isEmpty());
frame.add(childrenPanel);
}
use of com.evolveum.midpoint.web.page.admin.workflow.dto.EvaluatedTriggerDto in project midpoint by Evolveum.
the class EvaluatedTriggerGroupPanel method initLayout.
private void initLayout() {
ListView<EvaluatedTriggerDto> list = new ListView<EvaluatedTriggerDto>(ID_TRIGGERS, new PropertyModel<>(getModel(), EvaluatedTriggerGroupDto.F_TRIGGERS)) {
@Override
protected void populateItem(ListItem<EvaluatedTriggerDto> item) {
EvaluatedTriggerDto trigger = item.getModelObject();
item.add(new EvaluatedTriggerPanel(ID_TRIGGER, Model.of(trigger)));
}
};
add(list);
}
Aggregations