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

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

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

origin: org.opensingular/singular-form-core

/**
 * Retorna o campo da posição indicada. Se o campo ainda não existir, cria-o.
 */
public SInstance getField(int fieldIndex) {
  SInstance instance = (fields == null) ? null : fields.getByIndex(fieldIndex);
  return instance != null ? instance : createField(fieldIndex);
}
origin: org.opensingular/form-core

/**
 * Retorna o campo da posição indicada. Se o campo ainda não existir, cria-o.
 */
public SInstance getField(int fieldIndex) {
  SInstance instance = (fields == null) ? null : fields.getByIndex(fieldIndex);
  return instance != null ? instance : createField(fieldIndex);
}
origin: org.opensingular/form-core

@Override
void setValue(PathReader pathReader, Object value) {
  int fieldIndex = findFieldIndex(pathReader);
  SInstance instancia = (fields == null) ? null : fields.getByIndex(fieldIndex);
  if (instancia == null) {
    if (value == null) {
      return;
    }
    instancia = createField(fieldIndex);
  }
  if (pathReader.isLast()) {
    if (value == null) {
      SInstance child = fields.getByIndex(fieldIndex);
      if (child != null) {
        child.internalOnRemove();
        fields.remove(fieldIndex);
      }
    } else {
      instancia.setValue(value);
    }
  } else {
    instancia.setValue(pathReader.next(), value);
  }
}
origin: org.opensingular/singular-form-core

@Override
void setValue(PathReader pathReader, Object value) {
  int fieldIndex = findFieldIndex(pathReader);
  SInstance instance = (fields == null) ? null : fields.getByIndex(fieldIndex);
  if (instance == null) {
    if (value == null) {
      return;
    }
    instance = createField(fieldIndex);
  }
  if (pathReader.isLast()) {
    if (value == null) {
      SInstance child = fields.getByIndex(fieldIndex);
      if (child != null) {
        child.internalOnRemove();
        fields.remove(fieldIndex);
      }
    } else {
      instance.setValue(value);
    }
  } else {
    instance.setValue(pathReader.next(), value);
  }
}
org.opensingular.formSICompositecreateField

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,
  • findFieldIndex,
  • findFieldIndexOpt,
  • getAllChildren,
  • getAllFields,
  • getDictionary,
  • getFieldLocalWithoutCreating,
  • getFieldOpt

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSharedPreferences (Context)
  • getSupportFragmentManager (FragmentActivity)
  • onRequestPermissionsResult (Fragment)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Runner (org.openjdk.jmh.runner)
  • CodeWhisperer alternatives
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