public class InputElement extends FormElement<HTMLInputElement>
The InputElement represents a wrapper that is associated with the HTMLInputElement.
Constructor and Description |
---|
InputElement(HTMLInputElement element)
Creates a new instance of the input element associated with the HTMLInputElement
|
Modifier and Type | Method and Description |
---|---|
void |
addFile(java.lang.String uri)
This method adds files to the
HTMLInputElement.Files (HTMLInputElement.getFiles() ) collection which will be sent during the next web request. |
boolean |
getCheckboxValue()
Returns the checkedness state for the input element with the Checkbox type .
|
com.aspose.ms.System.Drawing.Color |
getColorValue()
This method is used to get the value as a color.
|
com.aspose.ms.System.DateTime |
getDateTimeLocalValue()
This method is used to get the value as a
DateTime object object. |
com.aspose.ms.System.DateTime |
getDateValue()
This method is used to get the value as a
DateTime object. |
java.lang.String |
getEmailValue()
This method is used to get the value as an email string object.
|
java.lang.String |
getId()
Represents the Id attribute of the input element.
|
DataListElement |
getList()
Represents a list of options
|
com.aspose.ms.System.DateTime |
getMonthValue()
This method is used to get the value as a
DateTime object. |
java.lang.String |
getName()
Represent the name attribute of the input element.
|
float |
getNumberValue()
This method is used to get the value as a number.
|
java.lang.String |
getPasswordValue()
This method is used to get the value as a password string object.
|
boolean |
getRadioValue()
Returns the checkedness state for the input element with the radio type.
|
com.aspose.ms.System.TimeSpan |
getTimeValue()
This method is used to get the value as a
TimeSpan object. |
int |
getType()
Type of the form control.
|
Url |
getUrlValue()
This method is used to get the value as
Url object. |
java.lang.String |
getValue()
Represents the string value of the input element that is directly mapped to the 'value' attribute.
|
java.lang.String |
getWeekValue()
This method is used to get the value as a week string.
|
void |
setCheckboxValue(boolean value)
Sets the checkedness state for the input elemen with the Checkbox type.
|
void |
setColorValue(com.aspose.ms.System.Drawing.Color value)
This method is used to set color as a value for input element.
|
void |
setDateTimeLocalValue(com.aspose.ms.System.DateTime value)
This method is used to set
DateTime object as a value for input element. |
void |
setDateValue(com.aspose.ms.System.DateTime value)
This method is used to set
DateTime object as a value for input element. |
void |
setEmailValue(java.lang.String value)
This method is used to set email string as a value for input element.
|
void |
setId(java.lang.String value)
Represents the Id attribute of the input element.
|
void |
setMonthValue(com.aspose.ms.System.DateTime value)
This method is used to set
DateTime object as a value for input element. |
void |
setName(java.lang.String value)
Represent the name attribute of the input element.
|
void |
setNumberValue(float value)
This method is used to set number as a value for input element.
|
void |
setPasswordValue(java.lang.String value)
This method is used to set password string as a value for input element.
|
void |
setRadioValue(boolean value)
Sets the checkedness state for the input element with the radio type.
|
void |
setTimeValue(com.aspose.ms.System.TimeSpan value)
This method is used to set
TimeSpan object as a value for input element. |
void |
setType(int value)
Type of the form control.
|
void |
setUrlValue(Url value)
This method is used to set
Url object as a value for input element. |
void |
setValue(java.lang.String value)
Represents the string value of the input element that is directly mapped to the 'value' attribute.
|
void |
setWeekValue(java.lang.String value)
This method is used to set 'week' string as a value for input element.
|
getHtmlElement
getElementType
public InputElement(HTMLInputElement element)
Creates a new instance of the input element associated with the HTMLInputElement
element
- The HTMLInputElement.public java.lang.String getName()
Represent the name attribute of the input element.
getName
in class FormElementBase
public void setName(java.lang.String value)
Represent the name attribute of the input element.
setName
in class FormElementBase
public java.lang.String getId()
Represents the Id attribute of the input element.
getId
in class FormElementBase
public void setId(java.lang.String value)
Represents the Id attribute of the input element.
setId
in class FormElementBase
public DataListElement getList()
Represents a list of options
public java.lang.String getValue()
Represents the string value of the input element that is directly mapped to the 'value' attribute.
getValue
in class FormElementBase
public void setValue(java.lang.String value)
Represents the string value of the input element that is directly mapped to the 'value' attribute.
setValue
in class FormElementBase
public int getType()
Type of the form control.
public void setType(int value)
Type of the form control.
public Url getUrlValue()
This method is used to get the value as Url
object. This method is valid if only only type of the input element is "url"
public void setUrlValue(Url value)
This method is used to set Url
object as a value for input element. This method is valid if only the type of the input element is "url"
value
- The url value.public java.lang.String getEmailValue()
This method is used to get the value as an email string object. This method is valid if only only type of the input element is "email"
public void setEmailValue(java.lang.String value)
This method is used to set email string as a value for input element. This method is valid if only the type of the input element is "email"
value
- The email.public java.lang.String getPasswordValue()
This method is used to get the value as a password string object. This method is valid if only only type of the input element is "password"
public void setPasswordValue(java.lang.String value)
This method is used to set password string as a value for input element. This method is valid if only the type of the input element is "password"
value
- The password.public com.aspose.ms.System.DateTime getDateValue()
This method is used to get the value as a DateTime
object. This method is valid if only only type of the input element is "date"
public void setDateValue(com.aspose.ms.System.DateTime value)
This method is used to set DateTime
object as a value for input element. This method is valid if only the type of the input element is "date"
value
- The date object.public com.aspose.ms.System.DateTime getMonthValue()
This method is used to get the value as a DateTime
object. This method is valid if only only type of the input element is "month"
public void setMonthValue(com.aspose.ms.System.DateTime value)
This method is used to set DateTime
object as a value for input element. This method is valid if only the type of the input element is "month"
value
- The date object.public java.lang.String getWeekValue()
This method is used to get the value as a week string. This method is valid if only only type of the input element is "week"
public void setWeekValue(java.lang.String value)
This method is used to set 'week' string as a value for input element. This method is valid if only the type of the input element is "week"
value
- The week value.public com.aspose.ms.System.TimeSpan getTimeValue()
This method is used to get the value as a TimeSpan
object. This method is valid if only only type of the input element is "time"
public void setTimeValue(com.aspose.ms.System.TimeSpan value)
This method is used to set TimeSpan
object as a value for input element. This method is valid if only the type of the input element is "time"
value
- The TimeSpan object.public com.aspose.ms.System.DateTime getDateTimeLocalValue()
This method is used to get the value as a DateTime
object object. This method is valid if only only type of the input element is "datetime-local"
public void setDateTimeLocalValue(com.aspose.ms.System.DateTime value)
This method is used to set DateTime
object as a value for input element. This method is valid if only the type of the input element is "datetime-local"
value
- The date object.public float getNumberValue()
This method is used to get the value as a number. This method is valid if only only type of the input element is "number"
public void setNumberValue(float value)
This method is used to set number as a value for input element. This method is valid if only the type of the input element is "number"
value
- The number object.public com.aspose.ms.System.Drawing.Color getColorValue()
This method is used to get the value as a color. This method is valid if only only type of the input element is "color"
public void setColorValue(com.aspose.ms.System.Drawing.Color value)
This method is used to set color as a value for input element. This method is valid if only the type of the input element is "color"
value
- The color object.public boolean getCheckboxValue()
Returns the checkedness state for the input element with the Checkbox type .
public void setCheckboxValue(boolean value)
Sets the checkedness state for the input elemen with the Checkbox type.
value
- The checkedness.public boolean getRadioValue()
Returns the checkedness state for the input element with the radio type.
public void setRadioValue(boolean value)
Sets the checkedness state for the input element with the radio type.
value
- The checkedness.public void addFile(java.lang.String uri)
This method adds files to the HTMLInputElement.Files
(HTMLInputElement.getFiles()
) collection which will be sent during the next web request.
uri
- The file path.