Codota Logo
SInstance.init
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: org.opensingular/form-core

private E addInternal(E instance, boolean atEnd, int index) {
  if (values == null) {
    values = new ArrayList<>();
  }
  if (atEnd) {
    values.add(instance);
  } else {
    values.add(index, instance);
  }
  instance.setParent(this);
  instance.init();
  return instance;
}
origin: org.opensingular/singular-form-core

/**
 * Criar uma nova instância do tipo atual. Esse método deve se evitado o uso e preferencialmente usar
 * {@link #newInstance()} sem parâmetros.
 *
 * @param executeInstanceInitListeners Indica se deve executar executa os códigos de inicialização dos tipos se
 *                                     existirem (ver {@link #withInitListener(IConsumer)}}).
 */
final I newInstance(boolean executeInstanceInitListeners, @Nonnull SDocument owner) {
  I instance = newInstance(this, owner);
  owner.setRoot(instance);
  if (executeInstanceInitListeners) {
    instance.init();
  }
  return instance;
}
origin: org.opensingular/singular-form-core

@Nonnull
private E addNewInternal(boolean atEnd, int index) {
  E instance = getElementsType().newInstance(getDocument());
  addInternal(instance, atEnd, index);
  instance.init();
  return instance;
}
origin: org.opensingular/form-core

/**
 * Criar uma nova instância do tipo atual. Esse método deve se evitado o uso e preferencialmente usar
 * {@link #newInstance()} sem parâmetros.
 *
 * @param executeInstanceInitListeners Indica se deve executar executa os códigos de inicialização dos tipos se
 *                                     existirem (ver {@link #withInitListener(IConsumer)}}).
 */
public final I newInstance(boolean executeInstanceInitListeners) {
  SDocument owner = new SDocument();
  I instance = newInstance(this, owner);
  owner.setRoot(instance);
  if (executeInstanceInitListeners) {
    instance.init();
  }
  return instance;
}
origin: org.opensingular/singular-form-core

/**
 * USO INTERNO: cria uma instancia usando a factory atual
 * @param executeInitTypeSetup Se true, dispara as inicializações automáticas implementadas em
 * {@link SInstance#init()}. Usar como false quando a instância está sendo recuperada da persistência.
 */
@Nonnull
public final SInstance createInstance(@Nonnull RefType rootType, boolean executeInitTypeSetup) {
  SType type = Objects.requireNonNull(rootType).get();
  SDocument owner = new SDocument();
  owner.setRootRefType(rootType);
  owner.setDocumentFactory(this);
  SInstance instance = InternalAccess.INTERNAL.newInstance(type, false, owner);
  setupDocument(instance.getDocument());
  if (executeInitTypeSetup) {
    instance.init();
  }
  return instance;
}
origin: org.opensingular/form-core

/**
 * USO INTERNO: cria uma instancia usando a factory atual
 * @param executeInitTypeSetup Se true, dispara as inicializações automáticas implementadas em
 * {@link SInstance#init()}. Usar como false quando a instância está sendo recuperada da persistência.
 */
public final SInstance createInstance(@Nonnull RefType rootType, boolean executeInitTypeSetup) {
  SType type = Objects.requireNonNull(rootType).get();
  SInstance instance = type.newInstance(false);
  instance.getDocument().setRootRefType(rootType);
  instance.getDocument().setDocumentFactory(this);
  setupDocument(instance.getDocument());
  if (executeInitTypeSetup) {
    instance.init();
  }
  return instance;
}
org.opensingular.formSInstanceinit

Javadoc

Executa as inicilização de atribuição de valor da instância (ver SType#withInitListener(IConsumer)). Pode sobrepor valores preexistentes.

Popular methods of SInstance

  • getDocument
    Retorna o documento ao qual pertence a instância atual.
  • getType
  • toStringDisplay
  • getId
    Retorna um ID único dentre as instâncias do mesmo documento. Um ID nunca é reutilizado, mesmo se a i
  • getAttributeValue
  • findNearest
    Returns the nearest SInstance for the given type in the form SInstance tree. The search is performed
  • setId
    Apenas para uso nas soluções de persistencia. Não deve ser usado fora dessa situação.
  • clearInstance
    Apaga os valores associados a instância. Se for uma lista ou composto, apaga os valores em profundid
  • getName
  • getParent
  • getValue
  • isEmptyOfData
    Retorna true se a instancia não conter nenhuma informação diferente de null. A pesquisa é feita em
  • getValue,
  • isEmptyOfData,
  • asAtr,
  • asAtrAnnotation,
  • asAtrProvider,
  • attachEventCollector,
  • detachEventCollector,
  • getDictionary,
  • getField,
  • getPathFromRoot

Popular in Java

  • Making http post requests using okhttp
  • getExternalFilesDir (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • addToBackStack (FragmentTransaction)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Color (java.awt)
    The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Path (java.nio.file)
  • JLabel (javax.swing)
  • Runner (org.openjdk.jmh.runner)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now