Tabnine Logo
FieldBuilder.setDataType
Code IndexAdd Tabnine to your IDE (free)

How to use
setDataType
method
in
net.sf.dynamicreports.report.builder.FieldBuilder

Best Java code snippets using net.sf.dynamicreports.report.builder.FieldBuilder.setDataType (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.builderFieldBuildersetDataType

Javadoc

setDataType.

Popular methods of FieldBuilder

  • build
  • <init>
    Constructor for FieldBuilder.
  • getField
    getField.
  • getObject
  • setDescription
    setDescription.

Popular in Java

  • Reading from database using SQL prepared statement
  • compareTo (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setContentView (Activity)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Best plugins for Eclipse
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