com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class DateField

  • All Implemented Interfaces:
    com.aspose.ms.System.ICloneable, Cloneable, Iterable<WidgetAnnotation>


    public class DateField
    extends TextBoxField

    Date field with calendar view.

     DateField dateField = new DateField(page, rect);
     doc.getForm().add(dateField);
     dateField.init(page);
     
    See Also:
    TextBoxField
    • Constructor Detail

      • DateField

        public DateField()

        Initializes a new instance of the DateField

      • DateField

        public DateField(Document doc)

        Constructor which should be used with Generator.

        Parameters:
        doc - Document where field will be created.
      • DateField

        public DateField(Page page,
                         Rectangle rect)

        Initializes a new instance of the DateField

        Parameters:
        page - Page needed for create.
        rect - Rectangle where the text field will be placed on the page.
      • DateField

        public DateField(Document doc,
                         Rectangle rect)

        Initializes a new instance of the DateField

        Parameters:
        doc - Document where field will be created.
        rect - Rectangle of the field.
    • Method Detail

      • getValue_DateField_New

        public final Date getValue_DateField_New()

        Gets or sets Date.

        Returns:
        java.util.Date instance
      • setValue_DateField_New

        public final void setValue_DateField_New(Date value)

        Gets or sets Date.

        Parameters:
        value - java.util.Date instance
      • getDateFormat

        public final String getDateFormat()

        Gets or sets the date format.

        Value: The date format. Default dd/MM/yyyy
        Returns:
        String value
      • setDateFormat

        public final void setDateFormat(String value)

        Gets or sets the date format.

        Value: The date format. Default dd/MM/yyyy
        Parameters:
        value - String value
      • init

        public final void init(Page page)

        Initializes the JS Action.

        Parameters:
        page - The page.
      • addImage_DateField_New

        public final void addImage_DateField_New(BufferedImage image)
                                          throws com.aspose.ms.System.InvalidOperationException

        Image adding denied for this field.

        Parameters:
        image - The image.
        Throws:
        com.aspose.ms.System.InvalidOperationException - not implemented yet