use of com.evolveum.midpoint.gui.api.component.DisplayNamePanel in project midpoint by Evolveum.
the class CustomTransportDetailsPanel method createDisplayNamePanel.
@Override
protected DisplayNamePanel<CustomTransportConfigurationType> createDisplayNamePanel(String displayNamePanelId) {
// so far no display name panel needed
DisplayNamePanel d = new DisplayNamePanel<>(displayNamePanelId, Model.of(getModelObject().getRealValue())) {
@Override
protected IModel<String> createHeaderModel() {
return createStringResource("CustomTransportConfigurationType.label");
}
@Override
protected IModel<String> getDescriptionLabelModel() {
return () -> getModelObject().getName();
}
@Override
protected WebMarkupContainer createTypeImagePanel(String idTypeImage) {
WebMarkupContainer c = new WebMarkupContainer(idTypeImage);
c.setVisible(false);
return c;
}
};
return d;
}
use of com.evolveum.midpoint.gui.api.component.DisplayNamePanel in project midpoint by Evolveum.
the class ObjectPolicyDetailsPanel method createDisplayNamePanel.
@Override
protected DisplayNamePanel<ObjectPolicyConfigurationType> createDisplayNamePanel(String displayNamePanelId) {
// so far no display name panel needed
DisplayNamePanel d = new DisplayNamePanel<>(displayNamePanelId, Model.of(getModelObject().getRealValue())) {
@Override
protected IModel<String> createHeaderModel() {
return createStringResource("ObjectPolicyConfigurationType.label");
}
@Override
protected IModel<String> getDescriptionLabelModel() {
return () -> {
ObjectPolicyConfigurationType opc = getModelObject();
return StringUtils.joinWith("/", opc.getType(), opc.getSubtype());
};
}
@Override
protected WebMarkupContainer createTypeImagePanel(String idTypeImage) {
WebMarkupContainer c = new WebMarkupContainer(idTypeImage);
c.setVisible(false);
return c;
}
};
return d;
}
use of com.evolveum.midpoint.gui.api.component.DisplayNamePanel in project midpoint by Evolveum.
the class RichHyperlinkDetailsPanel method createDisplayNamePanel.
@Override
protected DisplayNamePanel<RichHyperlinkType> createDisplayNamePanel(String displayNamePanelId) {
// so far no display name panel needed
DisplayNamePanel d = new DisplayNamePanel<>(displayNamePanelId, Model.of(getModelObject().getRealValue())) {
@Override
protected IModel<String> createHeaderModel() {
return createStringResource("RichHyperlinkType.label");
}
@Override
protected IModel<String> getDescriptionLabelModel() {
return () -> getModelObject().getLabel();
}
@Override
protected WebMarkupContainer createTypeImagePanel(String idTypeImage) {
WebMarkupContainer c = new WebMarkupContainer(idTypeImage);
c.setVisible(false);
return c;
}
};
return d;
}
use of com.evolveum.midpoint.gui.api.component.DisplayNamePanel in project midpoint by Evolveum.
the class MailTransportDetailsPanel method createDisplayNamePanel.
@Override
protected DisplayNamePanel<MailTransportConfigurationType> createDisplayNamePanel(String displayNamePanelId) {
// so far no display name panel needed
DisplayNamePanel d = new DisplayNamePanel<>(displayNamePanelId, Model.of(getModelObject().getRealValue())) {
@Override
protected IModel<String> createHeaderModel() {
return createStringResource("MailTransportConfigurationType.label");
}
@Override
protected IModel<String> getDescriptionLabelModel() {
return () -> getModelObject().getName();
}
@Override
protected WebMarkupContainer createTypeImagePanel(String idTypeImage) {
WebMarkupContainer c = new WebMarkupContainer(idTypeImage);
c.setVisible(false);
return c;
}
};
return d;
}
use of com.evolveum.midpoint.gui.api.component.DisplayNamePanel in project midpoint by Evolveum.
the class FileTransportDetailsPanel method createDisplayNamePanel.
@Override
protected DisplayNamePanel<FileTransportConfigurationType> createDisplayNamePanel(String displayNamePanelId) {
// so far no display name panel needed
DisplayNamePanel d = new DisplayNamePanel<>(displayNamePanelId, Model.of(getModelObject().getRealValue())) {
@Override
protected IModel<String> createHeaderModel() {
return createStringResource("FileTransportConfigurationType.label");
}
@Override
protected IModel<String> getDescriptionLabelModel() {
return () -> getModelObject().getName();
}
@Override
protected WebMarkupContainer createTypeImagePanel(String idTypeImage) {
WebMarkupContainer c = new WebMarkupContainer(idTypeImage);
c.setVisible(false);
return c;
}
};
return d;
}
Aggregations