@Override public IModel<ExecTO> model(final ExecTO object) { return new CompoundPropertyModel<>(object); } }
public NumericLiteralValuePresenter(String aId, IModel<KBStatement> aModel) { super(aId, CompoundPropertyModel.of(aModel)); add(new Label("value")); } }
private void actionAddValue(AjaxRequestTarget target) { addStatementProto(groupModel.getObject()); target.add(statementListWrapper); } }
public IRIValuePresenter(String id, IModel<KBStatement> aModel, IModel<KnowledgeBase> aKBModel) { super(id, aModel); kbModel = aKBModel; kbObject = CompoundPropertyModel.of(LoadableDetachableModel.of(this::getKBObject)); add(new IriInfoBadge("iriInfoBadge", LoadableDetachableModel .of(() -> ((IRI) getModelObject().getValue()).stringValue()))); LambdaAjaxLink link = new LambdaAjaxLink("link", t -> actionIRILinkClicked(t, kbObject.getObject())); link.add(new Label("label", LoadableDetachableModel.of(() -> getLabel(kbObject.getObject())))); add(link); }
private CheckBox createCheckbox(String aId, String aProperty) { return new CheckBox(aId, kbModel.bind(aProperty)); } }
public IRIValuePresenter(String id, IModel<KBStatement> aModel, IModel<KnowledgeBase> aKBModel) { super(id, aModel); kbModel = aKBModel; kbObject = CompoundPropertyModel.of(LoadableDetachableModel.of(this::getKBObject)); add(new IriInfoBadge("iriInfoBadge", LoadableDetachableModel .of(() -> ((IRI) getModelObject().getValue()).stringValue()))); LambdaAjaxLink link = new LambdaAjaxLink("link", t -> actionIRILinkClicked(t, kbObject.getObject())); link.add(new Label("label", LoadableDetachableModel.of(() -> getLabel(kbObject.getObject())))); add(link); }
private CheckBox createCheckbox(String aId, String aProperty) { return new CheckBox(aId, kbModel.bind(aProperty)); } }
@Override public IModel<T> model(final T object) { return new CompoundPropertyModel<>(object); } };
private void actionAddValue(AjaxRequestTarget target) { addStatementProto(groupModel.getObject()); target.add(statementListWrapper); } }
public NumericLiteralValuePresenter(String aId, IModel<KBStatement> aModel) { super(aId, CompoundPropertyModel.of(aModel)); add(new Label("value")); } }
public KBSettingsTitle(String id, CompoundPropertyModel<KnowledgeBaseWrapper> model) { super(id, "kbSettingsTitle", KnowledgeBaseDetailsPanel.this, model); add(new RequiredTextField<>("name", model.bind("kb.name"))); } }
@Override public IModel<ResourceHistoryConfTO> model(final ResourceHistoryConfTO object) { return new CompoundPropertyModel<>(object); } }
public NumericLiteralValueEditor(String aId, IModel<KBStatement> aModel) { super(aId, CompoundPropertyModel.of(aModel)); // Clear the value if it is not an instance of number if (! (aModel.getObject().getValue() instanceof Number)) { aModel.getObject().setValue(0); } value = new NumberTextField<>("value", Double.class); value.setOutputMarkupId(true); value.add(new LambdaAjaxFormComponentUpdatingBehavior("change", t -> t.add(getParent()))); add(value); }
public KBSettingsTitle(String id, CompoundPropertyModel<KnowledgeBaseWrapper> model) { super(id, "kbSettingsTitle", KnowledgeBaseDetailsPanel.this, model); add(new RequiredTextField<>("name", model.bind("kb.name"))); } }
@Override public IModel<ReportletWrapper> model(final ReportletWrapper object) { return new CompoundPropertyModel<>(object); } }
private Component initializeFeatureEditor() { editor = createFeatureEditor(alStateModel.getObject().getSuggestion().get()); return editor; }
public NumericLiteralValueEditor(String aId, IModel<KBStatement> aModel) { super(aId, CompoundPropertyModel.of(aModel)); // Clear the value if it is not an instance of number if (! (aModel.getObject().getValue() instanceof Number)) { aModel.getObject().setValue(0); } value = new NumberTextField<>("value", Double.class); value.setOutputMarkupId(true); value.add(new LambdaAjaxFormComponentUpdatingBehavior("change", t -> t.add(getParent()))); add(value); }
private DropDownChoice<Reification> selectReificationStrategy(String id, String property) { final List<Reification> reificationList = Arrays.asList(Reification.values()); DropDownChoice<Reification> reificationDropDownChoice = new BootstrapSelect<>(id, kbModel.bind(property), reificationList); reificationDropDownChoice.setRequired(true); return reificationDropDownChoice; } }
@Override public IModel<ConnInstanceHistoryConfTO> model(final ConnInstanceHistoryConfTO object) { return new CompoundPropertyModel<>(object); } }