SignatureLine

Inheritance: java.lang.Object

public class SignatureLine

Represent the signature line.

Example

         //Instantiating a Workbook object
         Workbook workbook = new Workbook();
         Worksheet worksheet = workbook.getWorksheets().get(0);
 
         //Adding a picture
         int imgIndex = worksheet.getPictures().add(1, 1, "sample.png");
         Picture pic = worksheet.getPictures().get(imgIndex);
         // Create signature line object
         SignatureLine s = new SignatureLine();
         s.setSigner("Simon Zhao");
         s.setTitle("Development Lead");
         s.setEmail("Simon.Zhao@aspose.com");
         // Assign the signature line object to Picture.SignatureLine property
         pic.setSignatureLine(s);
 
         //do your business
 
         //Save the excel file.
         workbook.save("result.xlsx");

Constructors

ConstructorDescription
SignatureLine()

Methods

MethodDescription
equals(Object arg0)
getAllowComments()Indicates whether comments could be attached.
getClass()
getEmail()Gets the email of singer.
getId()Gets identifier for this signature line.
getInstructions()Gets the text shown to user at signing time.
getProviderId()Gets the id of signature provider.
getShowSignedDate()Indicates whether show signed date.
getSigner()Gets the signer.
getTitle()Gets the title of singer.
hashCode()
isLine()Indicates whether it is a signature line.
notify()
notifyAll()
setAllowComments(boolean value)Indicates whether comments could be attached.
setEmail(String value)Sets the email of singer.
setId(UUID value)Sets identifier for this signature line.
setInstructions(String value)Sets the text shown to user at signing time.
setLine(boolean value)Indicates whether it is a signature line.
setProviderId(UUID value)Sets the id of signature provider.
setShowSignedDate(boolean value)Indicates whether show signed date.
setSigner(String value)Sets the signer.
setTitle(String value)Sets the title of singer.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

SignatureLine()

public SignatureLine()

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getAllowComments()

public boolean getAllowComments()

Indicates whether comments could be attached.

Example

         if(s.getAllowComments())
         {
             // Comments could be attached.
         }

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getEmail()

public String getEmail()

Gets the email of singer.

Example

         // Create signature line object
         SignatureLine s5 = new SignatureLine();
         s5.setEmail("Simon.Zhao@aspose.com");

Returns: java.lang.String

getId()

public UUID getId()

Gets identifier for this signature line.

Example

         // Create signature line object
         SignatureLine s1 = new SignatureLine();
         s1.setId(java.util.UUID.randomUUID());

Returns: java.util.UUID

getInstructions()

public String getInstructions()

Gets the text shown to user at signing time.

Example

         // Create signature line object
         SignatureLine s6 = new SignatureLine();
         s6.setInstructions("Just do it.");

Returns: java.lang.String

getProviderId()

public UUID getProviderId()

Gets the id of signature provider.

Remarks

It’s typically the CLSID of the provider com add-in.

Example

         // Create signature line object
         SignatureLine s2 = new SignatureLine();
         s2.setProviderId(java.util.UUID.randomUUID());

Returns: java.util.UUID

getShowSignedDate()

public boolean getShowSignedDate()

Indicates whether show signed date.

Example

         if(s.getShowSignedDate())
         {
             //Show signed date.
         }

Returns: boolean

getSigner()

public String getSigner()

Gets the signer.

Example

         // Create signature line object
         SignatureLine s3 = new SignatureLine();
         s3.setSigner("Mr xxx");

Returns: java.lang.String

getTitle()

public String getTitle()

Gets the title of singer.

Example

         // Create signature line object
         SignatureLine s4 = new SignatureLine();
         s4.setTitle("Development Lead");

Returns: java.lang.String

hashCode()

public native int hashCode()

Returns: int

isLine()

public boolean isLine()

Indicates whether it is a signature line.

Example

         if(s.isLine())
         {
             //Is line.
         }

Returns: boolean

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setAllowComments(boolean value)

public void setAllowComments(boolean value)

Indicates whether comments could be attached.

Parameters:

ParameterTypeDescription
valueboolean

setEmail(String value)

public void setEmail(String value)

Sets the email of singer.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setId(UUID value)

public void setId(UUID value)

Sets identifier for this signature line.

Parameters:

ParameterTypeDescription
valuejava.util.UUID

setInstructions(String value)

public void setInstructions(String value)

Sets the text shown to user at signing time.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setLine(boolean value)

public void setLine(boolean value)

Indicates whether it is a signature line.

Parameters:

ParameterTypeDescription
valueboolean

setProviderId(UUID value)

public void setProviderId(UUID value)

Sets the id of signature provider.

Remarks

It’s typically the CLSID of the provider com add-in.

Parameters:

ParameterTypeDescription
valuejava.util.UUID

setShowSignedDate(boolean value)

public void setShowSignedDate(boolean value)

Indicates whether show signed date.

Parameters:

ParameterTypeDescription
valueboolean

setSigner(String value)

public void setSigner(String value)

Sets the signer.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setTitle(String value)

public void setTitle(String value)

Sets the title of singer.

Parameters:

ParameterTypeDescription
valuejava.lang.String

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int