Tabnine Logo
SInstance.isDescendantOf
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.opensingular/singular-form-core

public boolean isSameOrDescendantOf(SInstance candidate) {
  return (this == candidate) || isDescendantOf(candidate);
}
origin: org.opensingular/singular-form-wicket

private static int findPos(@Nonnull SIList<SInstance> instance, @Nonnull SInstance lastInstance) {
  int pos = 1;
  for (SInstance itemInstance : instance) {
    if (lastInstance == itemInstance || lastInstance.isDescendantOf(itemInstance)) {
      return pos;
    }
    pos++;
  }
  return -1;
}
origin: org.opensingular/form-wicket

private static int findPos(@Nonnull SIList<SInstance> instance, @Nonnull SInstance lastInstance) {
  int pos = 1;
  for(SInstance itemInstance : instance) {
    if (lastInstance == itemInstance || lastInstance.isDescendantOf(itemInstance)) {
      return pos;
    }
    pos++;
  }
  return -1;
}
origin: org.opensingular/singular-form-wicket

  @Override
  public void onEvent(Component component, IEvent<?> event) {
    super.onEvent(component, event);
    final AjaxRequestTarget target = RequestCycle.get().find(AjaxRequestTarget.class);
    Object payload = event.getPayload();
    if (payload instanceof SInstance) {
      final SInstance instance = (SInstance) payload;
      for (BSTab tab : panel.getTabs().values()) {
        if (instance.isDescendantOf(tab.getModelObject())) {
          panel.getTabItem(tab).ifPresent(target::add);
        }
      }
    } else if (payload instanceof SingularFormProcessingPayload) {
      SingularFormProcessingPayload singularPayload = (SingularFormProcessingPayload) payload;
      Set<String> typeNames = tabViewSupplier.get().getTabs().stream()
          .flatMap(it -> it.getTypesNames().stream())
          .collect(Collectors.toSet());
      if (singularPayload.hasUpdatedType(typeNames)) {
        target.add(panel);
      }
    }
  }
});
org.opensingular.formSInstanceisDescendantOf

Javadoc

Check if this types is child in any level of the candidate type class

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

  • Creating JSON documents from java classes using gson
  • addToBackStack (FragmentTransaction)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSharedPreferences (Context)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Reference (javax.naming)
  • Top plugins for WebStorm
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