congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
SIComposite.findDescendant
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.opensingular/singular-form-core

/**
 * Find a child by the name ({@link SType#getName()})
 * @param parent the parent instance
 * @param childName the complete name of the child {@link SType#getName()}
 * @return the chield
 */
public static Optional<? extends SInstance> findChildByName(@Nonnull SInstance parent, @Nonnull String childName) {
  if(parent instanceof SIComposite) {
    SType<?> sType = parent.getDictionary().getType(childName);
    return ((SIComposite)parent).findDescendant(sType);
  }
  return Optional.empty();
}
origin: org.opensingular/form-wicket

/**
 * property column isolado em outro método para isolar o escopo de
 * serialização do lambda do appendPropertyColumn
 */
private void propertyColumnAppender(BSDataTableBuilder<SInstance, ?, ?> builder,
                  IModel<String> labelModel, IModel<String> sTypeNameModel,
                  IFunction<SInstance, String> displayValueFunction) {
  builder.appendPropertyColumn(labelModel, o -> {
    SIComposite composto = (SIComposite) o;
    SType<?> mtipo = composto.getDictionary().getType(sTypeNameModel.getObject());
    SInstance instancia = composto.findDescendant(mtipo).get();
    return displayValueFunction.apply(instancia);
  });
}
origin: org.opensingular/singular-form-wicket

/**
 * property column isolado em outro método para isolar o escopo de
 * serialização do lambda do appendPropertyColumn
 */
private void propertyColumnAppender(BSDataTableBuilder<SInstance, ?, ?> builder,
  IModel<String> labelModel, IModel<String> sTypeNameModel,
  IFunction<SInstance, String> displayValueFunction) {
  builder.appendPropertyColumn(labelModel, o -> {
    SIComposite composite = (SIComposite) o;
    SType<?> type = composite.getDictionary().getType(sTypeNameModel.getObject());
    SInstance instance = composite.findDescendant(type).get();
    return displayValueFunction.apply(instance);
  });
}
origin: org.opensingular/singular-form-core

  return Optional.of((TI) rootInstance);
} else if (rootInstance instanceof SIComposite) {
  return ((SIComposite) rootInstance).findDescendant(targetType);
origin: org.opensingular/form-wicket

  return (SInstance) composto.findDescendant(sType).orElse(null);
};
IFunction<SInstance, Object> propertyFunction = o -> displayValueFunction.apply(toInstance.apply((SIComposite) o));
org.opensingular.formSICompositefindDescendant

Popular methods of SIComposite

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

Popular in Java

  • Reading from database using SQL prepared statement
  • findViewById (Activity)
  • setRequestProperty (URLConnection)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • 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