/** * Configura o tipo para utilizar a view {@link SViewSelectionByRadio} */ @SuppressWarnings("unchecked") public STypeSimple<I, VALUE> withRadioView() { return (STypeSimple<I, VALUE>) super.withView(SViewSelectionByRadio::new); }
/** * Configura o tipo para utilizar a view {@link SViewSelectionBySelect} */ @SuppressWarnings("unchecked") public STypeSimple<I, VALUE> withSelectView() { return (STypeSimple<I, VALUE>) super.withView(SViewSelectionBySelect::new); }
/** * Configura o tipo para utilizar a view {@link SViewSelectionByRadio} */ @SuppressWarnings("unchecked") public STypeSimple<I, VALUE> withRadioView() { return (STypeSimple<I, VALUE>) super.withView(SViewSelectionByRadio::new); }
/** * Configura o tipo para utilizar a view {@link SViewSelectionBySelect} */ @SuppressWarnings("unchecked") public STypeSimple<I, VALUE> withSelectView() { return (STypeSimple<I, VALUE>) super.withView(SViewSelectionBySelect::new); }
public final <T extends SView> SType<I> withView(Supplier<T> factory) { withView(factory.get()); return this; }
public final <T extends SView> SType<I> withView(Supplier<T> factory) { withView(factory.get()); return this; }
@Override protected void onLoadType(@Nonnull TypeBuilder tb) { endpoint = this.addFieldString("endpoint"); htmlToExport = this.addField("htmlToExport", STypeHTML.class); endpoint.setInitialValue(RestfulHtmlToPdfConverter.getEndpointDefault()); endpoint.asAtr() .label("Endpoint:") .maxLength(155) .enabled(true); htmlToExport .withInitListener(s -> s.setValue(" teste ")) .withView(SViewByRichText::new) .asAtr() .label("HTML Exportação"); } }
@Override protected void onLoadType(@Nonnull TypeBuilder tb) { endpoint = this.addFieldString("endpoint"); htmlToExport = this.addField("htmlToExport", STypeHTML.class); endpoint.setInitialValue(RestfulHtmlToPdfConverter.getEndpointDefault()); endpoint.asAtr() .label("Endpoint:") .maxLength(155) .enabled(true); htmlToExport .withInitListener(s -> s.setValue(" teste ")) .withView(SViewByRichText::new) .asAtr() .label("HTML Exportação"); } }
.label("Justificativa").visible(i -> TipoReferencia.NAO_SE_APLICA.getId().equals(Value.of(i, idTipoReferencia))) .maxLength(600) .getTipo().withView(SViewTextArea::new);
.displayString("${razaoSocial} - ${endereco}") .getTipo().withView(SViewAutoComplete::new);