Tabnine Logo
FieldBuilder.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
net.sf.dynamicreports.report.builder.FieldBuilder
constructor

Best Java code snippets using net.sf.dynamicreports.report.builder.FieldBuilder.<init> (Showing top 2 results out of 315)

origin: dynamicreports/dynamicreports

/**
 * <p>field.</p>
 *
 * @param name     a {@link java.lang.String} object.
 * @param dataType a {@link net.sf.dynamicreports.report.definition.datatype.DRIDataType} object.
 * @param <T>      a T object.
 * @return a {@link net.sf.dynamicreports.report.builder.FieldBuilder} object.
 */
public static <T> FieldBuilder<T> field(String name, DRIDataType dataType) {
  Validate.notNull(dataType, "dataType must not be null");
  FieldBuilder<T> fieldBuilder = new FieldBuilder<T>(name, dataType.getValueClass());
  fieldBuilder.setDataType(dataType);
  return fieldBuilder;
}
origin: dynamicreports/dynamicreports

/**
 * <p>field.</p>
 *
 * @param name       a {@link java.lang.String} object.
 * @param valueClass a {@link java.lang.Class} object.
 * @param <T>        a T object.
 * @return a {@link net.sf.dynamicreports.report.builder.FieldBuilder} object.
 */
public static <T> FieldBuilder<T> field(String name, Class valueClass) {
  FieldBuilder<T> fieldBuilder = new FieldBuilder<T>(name, valueClass);
  try {
    DRIDataType<? super T, T> dataType = DataTypes.detectType(valueClass);
    fieldBuilder.setDataType(dataType);
  } catch (DRException e) {
  }
  return fieldBuilder;
}
net.sf.dynamicreports.report.builderFieldBuilder<init>

Javadoc

Constructor for FieldBuilder.

Popular methods of FieldBuilder

  • build
  • getField
    getField.
  • getObject
  • setDataType
    setDataType.
  • setDescription
    setDescription.

Popular in Java

  • Making http requests using okhttp
  • startActivity (Activity)
  • getSystemService (Context)
  • addToBackStack (FragmentTransaction)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • JPanel (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Option (scala)
  • Top Sublime Text 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