Tabnine Logo
SIComposite.getAllFields
Code IndexAdd Tabnine to your IDE (free)

How to use
getAllFields
method
in
org.opensingular.form.SIComposite

Best Java code snippets using org.opensingular.form.SIComposite.getAllFields (Showing top 4 results out of 315)

origin: org.opensingular/singular-form-core

@Override
public List<SInstance> getAllChildren() {
  return getAllFields();
}
origin: org.opensingular/form-core

@Override
public List<SInstance> getAllChildren() {
  return getAllFields();
}
origin: org.opensingular/singular-form-core

private void writeChild(boolean renderCompositeFieldsAsColumns, TableBodyCanvas tableBody, SInstance child) {
  TableRowDocumentCanvasAdapter row = new TableRowDocumentCanvasAdapter(tableBody.addRow());
  if (renderCompositeFieldsAsColumns) {
    for (SInstance compositeField : ((SIComposite) child).getAllFields()) {
      callListItemDoWrite(row, compositeField);
    }
  } else {
    callListItemDoWrite(row, child);
  }
}
origin: org.opensingular/singular-form-core

@Override
protected void doWriteOnCanvas(DocumentCanvas canvas, FlatViewContext context) {
  SIComposite instance = context.getInstanceAs(SIComposite.class);
  DocumentCanvas subcanvas;
  if (isFlatView(context, instance)) {
    subcanvas = canvas;
  } else {
    canvas.addSubtitle(context.getLabel());
    if (instance.getParent() == null) {
      subcanvas = canvas;
    } else {
      subcanvas = canvas.addChild();
    }
  }
  List<SInstance> fields = instance.getAllFields()
      .stream()
      .sorted(Comparator.comparing(this::isChildWithSessionBreaker)).collect(Collectors.toList());
  int rowCount = 0;
  for (SInstance child : fields) {
    rowCount += child.asAtrBootstrap().getColPreference();
    if (rowCount > 12 || isChildWithSessionBreaker(child)) {
      rowCount = 0;
      subcanvas.addLineBreak();
    }
    Optional<FlatViewGenerator> aspect = child.getAspect(ASPECT_FLAT_VIEW_GENERATOR);
    aspect.ifPresent(flatViewGenerator -> flatViewGenerator.writeOnCanvas(subcanvas, new FlatViewContext(child)));
  }
}
org.opensingular.formSICompositegetAllFields

Javadoc

Retorna todos os campos do tipo, instanciando os que ainda não foram.

Popular methods of SIComposite

  • getField
  • getFields
    List only those fields already instantiated. OBS: field instantiation occurs automatically when its
  • getType
  • findNearest
  • getDocument
  • setValue
  • asAtr
  • findDescendant
  • getFieldList
  • asAtrAnnotation
  • asAtrBootstrap
  • clearInstance
  • asAtrBootstrap,
  • clearInstance,
  • createField,
  • findFieldIndex,
  • findFieldIndexOpt,
  • getAllChildren,
  • getDictionary,
  • getFieldLocalWithoutCreating,
  • getFieldOpt

Popular in Java

  • Updating database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • startActivity (Activity)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now