congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
SType.init
Code IndexAdd Tabnine to your IDE (free)

How to use
init
method
in
org.opensingular.form.SType

Best Java code snippets using org.opensingular.form.SType.init (Showing top 6 results out of 315)

origin: org.opensingular/form-core

@Override
public void init(Supplier<INSTANCE_TYPE> instanceRef) {
  initFields(instanceRef);
  super.init(instanceRef);
}
origin: org.opensingular/singular-form-core

@Override
public void init(Supplier<INSTANCE_TYPE> instanceRef) {
  initFields(instanceRef);
  super.init(instanceRef);
}
origin: org.opensingular/singular-form-core

  private void initFields(Supplier<INSTANCE_TYPE> instanceRef) {
    Collection<SType> fields = (Collection) getFields();
    for (SType t : fields) {
      //Passa uma referência lazy demodo que não precisa fazer busca se o tipo não possui inicialização
      t.init(() -> instanceRef.get().getField(t.getNameSimple()));
    }
  }
}
origin: org.opensingular/form-core

  private void initFields(Supplier<INSTANCE_TYPE> instanceRef) {
    Collection<SType> fields = (Collection) getFields();
    for(SType t : fields) {
      //Passa uma referência lazy demodo que não precisa fazer busca se o tipo não possui inicialização
      t.init(() -> instanceRef.get().getField(t.getNameSimple()));
    }
  }
}
origin: org.opensingular/singular-form-core

/**
 * Executa as inicilização de atribuição de valor da instância (ver {@link SType#withInitListener(IConsumer)}). Pode
 * sobrepor valores preexistentes.
 */
@SuppressWarnings({ "unchecked", "rawtypes" })
public final void init() {
  //Não deve chamar o init se estiver no modo de leitura do XML
  if (!getDocument().isRestoreMode()) {
    ((SType) getType()).init(() -> this);
  }
}
origin: org.opensingular/form-core

/**
 * Executa as inicilização de atribuição de valor da instância (ver {@link SType#withInitListener(IConsumer)}). Pode
 * sobrepor valores preexistentes.
 */
public final void init() {
  //Não deve chamar o init se estiver no modo de leitura do XML
  if (getDocument().getLastId() != -1) {
    ((SType) getType()).init(() -> this);
  }
}
org.opensingular.formSTypeinit

Javadoc

Run initialization code for new created instance. Recebe uma referência que pode ser de inicialização lazy.

Popular methods of SType

  • asAtr
  • getNameSimple
  • getName
  • asAtrProvider
  • getAttributeValue
  • isList
    Verificar se o tipo é um tipo lista ( STypeList).
  • getValidators
  • withView
  • asAtrBootstrap
  • getInstanceClass
  • isComposite
    Verificar se o tipo é um tipo composto ( STypeComposite).
  • getDependentTypes
  • isComposite,
  • getDependentTypes,
  • getDictionary,
  • hasAttributeDefinedInHierarchy,
  • isDependentType,
  • isTypeOf,
  • newInstance,
  • addAttribute,
  • addDependentType,
  • addInstanceValidator

Popular in Java

  • Reactive rest calls using spring rest template
  • notifyDataSetChanged (ArrayAdapter)
  • getSystemService (Context)
  • putExtra (Intent)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Menu (java.awt)
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JFileChooser (javax.swing)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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