public class CustomField extends AbstractResource
Modifier and Type | Field and Description |
---|---|
static String |
CUSTOM_FIELD_API_ID |
static String |
CUSTOM_FIELD_AVG_TEXT_LENGTH |
static String |
CUSTOM_FIELD_EDITOR |
static String |
CUSTOM_FIELD_HEIGHT |
static String |
CUSTOM_FIELD_NAME |
static String |
CUSTOM_FIELD_NUM_CHARS_PER_LINE |
static String |
CUSTOM_FIELD_NUM_LINES |
static String |
CUSTOM_FIELD_REQUIRED |
static String |
CUSTOM_FIELD_TYPE |
static String |
CUSTOM_FIELD_VALUE |
static String |
CUSTOM_FIELD_WIDTH |
static String |
CUSTOM_FIELD_X |
static String |
CUSTOM_FIELD_Y |
dataObj, warnings
Constructor and Description |
---|
CustomField() |
CustomField(org.json.JSONObject json) |
Modifier and Type | Method and Description |
---|---|
String |
getApiId() |
String |
getEditor() |
Integer |
getEstimatedCharsPerLine()
Once processed with a position, height, and width, HelloSign will
estimate the number of lines a custom field can contain, along with the
number of characters per line.
|
Integer |
getEstimatedTextLines()
Once processed with a position, height, and width, HelloSign will
estimate the number of lines a custom field can contain, along with the
number of characters per line.
|
Integer |
getHeight()
Returns the pixel height of this field.
|
String |
getName() |
FieldType |
getType() |
String |
getTypeString() |
String |
getValue() |
Integer |
getWidth()
Returns the pixel width of this field.
|
Integer |
getX()
Returns the x coordinate for this field.
|
Integer |
getY()
Returns the y coordinate for this field.
|
Boolean |
isRequired() |
void |
setApiId(String apiId)
Set the API ID for this custom field.
|
void |
setEditor(String editor)
Specify what signer role may edit this field.
|
void |
setHeight(int height)
Sets the pixel height for this field.
|
void |
setIsRequired(Boolean isRequired)
Specify whether this field is required.
|
void |
setName(String name)
Set the name of this custom field.
|
void |
setType(FieldType type)
Set the type for this custom field.
|
void |
setValue(String value)
Set the value for this field.
|
void |
setWidth(int width)
Sets the pixel height for this field.
|
void |
setX(int x)
Returns the x coordinate for this field.
|
void |
setY(int y)
Set the y coordinate for this field.
|
add, addToList, clearList, get, getBoolean, getConstructor, getDate, getInteger, getJSONObject, getList, getList, getLong, getString, getWarnings, has, hasString, set, toString, toString
public static final String CUSTOM_FIELD_NAME
public static final String CUSTOM_FIELD_TYPE
public static final String CUSTOM_FIELD_API_ID
public static final String CUSTOM_FIELD_VALUE
public static final String CUSTOM_FIELD_EDITOR
public static final String CUSTOM_FIELD_REQUIRED
public static final String CUSTOM_FIELD_X
public static final String CUSTOM_FIELD_Y
public static final String CUSTOM_FIELD_WIDTH
public static final String CUSTOM_FIELD_HEIGHT
public static final String CUSTOM_FIELD_AVG_TEXT_LENGTH
public static final String CUSTOM_FIELD_NUM_LINES
public static final String CUSTOM_FIELD_NUM_CHARS_PER_LINE
public CustomField()
public CustomField(org.json.JSONObject json) throws HelloSignException
HelloSignException
public String getName()
public void setName(String name)
name
- Stringpublic FieldType getType()
public String getTypeString()
public void setType(FieldType type)
type
- FieldTypepublic String getValue()
public void setValue(String value)
value
- Stringpublic String getApiId()
public void setApiId(String apiId)
apiId
- Stringpublic String getEditor()
public void setEditor(String editor)
editor
- Stringpublic Boolean isRequired()
public void setIsRequired(Boolean isRequired)
isRequired
- Booleanpublic Integer getX()
public Integer getY()
public void setX(int x)
x
- int pixel coordinatepublic void setY(int y)
y
- int pixel coordinatepublic Integer getWidth()
public void setWidth(int width)
width
- int pixel heightpublic Integer getHeight()
public void setHeight(int height)
height
- int pixel heightpublic Integer getEstimatedTextLines()
public Integer getEstimatedCharsPerLine()
Copyright © 2017 HelloSign. All rights reserved.