Tabnine Logo
AttrGroup.getDescriptions
Code IndexAdd Tabnine to your IDE (free)

How to use
getDescriptions
method
in
de.micromata.genome.db.jpa.tabattr.api.AttrGroup

Best Java code snippets using de.micromata.genome.db.jpa.tabattr.api.AttrGroup.getDescriptions (Showing top 3 results out of 315)

origin: micromata/projectforge

 @Override
 public AttrDescription getAttrDescription(final AttrGroup attrGroup, final String descriptionName)
 {
  return (attrGroup == null) ? null :
    attrGroup
      .getDescriptions()
      .stream()
      .filter(desc -> desc.getPropertyName().equals(descriptionName))
      .findFirst()
      .orElse(null);
 }
}
origin: micromata/projectforge

@Override
public Map<String, SearchColumnMetadata> getAdditionallySearchFields(EntityMetadata entm,
  String params)
{
 Map<String, SearchColumnMetadata> ret = new HashMap<>();
 AttrSchemaService service = AttrSchemaServiceSpringBeanImpl.get();
 AttrSchema schema = service.getAttrSchema(params);
 if (schema != null) {
  for (AttrGroup group : schema.getGroups()) {
   for (AttrDescription ad : group.getDescriptions()) {
    ColumnMetadata cmd = getColumnMetadataFromColumnDesc(entm, ad);
    SearchColumnMetadataBean scmd = new SearchColumnMetadataBean(ad.getPropertyName(), cmd);
    scmd.setIndexType(String.class);
    scmd.setIndexed(true);
    ret.put(ad.getPropertyName(), scmd);
   }
  }
  return ret;
 } else {
  log.info("Can't get AttrSchema. Continoue without.");
  return null;
 }
}
origin: micromata/projectforge

 protected DivPanel createContent(final EntityWithAttributes entity, final Consumer<GridBuilder> gridBuilderConsumer)
 {
  final GridBuilder gridBuilder = new GridBuilder(null, "content");
  gridBuilder.newSplitPanel(GridSize.COL100);

  // this can be used to create content before the rest of the content is created
  if (gridBuilderConsumer != null) {
   gridBuilderConsumer.accept(gridBuilder);
  }

  // create the content according to the descriptions of this group (from the xml file)
  for (final AttrDescription desc : attrGroup.getDescriptions()) {
   final String label = getString(desc.getI18nkey());
   final FieldsetPanel fs = gridBuilder.newFieldset(label);
   final ComponentWrapperPanel component = attrSchemaService.createWicketComponent(fs.newChildId(), attrGroup, desc, entity);
   fs.add((Component) component);
  }

  return gridBuilder.getMainContainer();
 }
}
de.micromata.genome.db.jpa.tabattr.apiAttrGroupgetDescriptions

Popular methods of AttrGroup

  • getName
  • getDayMonthGranularity
  • getI18nKey
  • getI18nKeyStartTime
  • getI18nKeySubmenu
  • getType

Popular in Java

  • Running tasks concurrently on multiple threads
  • setRequestProperty (URLConnection)
  • getApplicationContext (Context)
  • getExternalFilesDir (Context)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Top Vim plugins
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