public class ListOptions
extends java.lang.Object
Constructor and Description |
---|
ListOptions() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAddButtonImageSrc() |
java.lang.String |
getAddButtonText() |
java.lang.Integer |
getAddInputWidth() |
java.lang.String |
getBottomText() |
java.lang.String |
getClassName() |
java.lang.Integer |
getInputWidth() |
java.lang.Integer |
getMaximumLength() |
java.lang.Integer |
getMinimumLength() |
java.lang.String |
getTopText() |
java.lang.Integer |
getWidth() |
boolean |
isAddButtonAsItem() |
boolean |
isHideAddWhenListEmpty() |
boolean |
isOnlyDeleteLastItem() |
void |
setAddButtonAsItem(boolean addButtonAsItem)
Make the add button a greyed out item, when click on this it will activate and the user can input directly into that item
|
void |
setAddButtonImageSrc(java.lang.String addButtonImageSrc)
Source for an image to use when adding a new item to the list
|
void |
setAddButtonText(java.lang.String addButtonText)
What will be displayed on the addButton
|
void |
setAddInputWidth(java.lang.Integer addInputWidth)
The width of the addButton if it is an item, will be ignored if addButtonAsItem is false
|
void |
setBottomText(java.lang.String bottomText)
Text that will be displayed next to the bottom item in the list
|
void |
setClassName(java.lang.String className)
CSS class name that can be added to the list
|
void |
setHideAddWhenListEmpty(boolean hideAddWhenListEmpty)
Hides the add button when there have been no values entered
|
void |
setInputWidth(java.lang.Integer inputWidth)
Width of each input item in the list, this can be overriden if a width is set on the Parameter level
|
void |
setMaximumLength(java.lang.Integer maximumLength)
The maximum amount of items that can be in this list
|
void |
setMinimumLength(java.lang.Integer minimumLength)
The minimum amount of items that can be in this list
|
void |
setOnlyDeleteLastItem(boolean onlyDeleteLastItem)
If this is true the delete option will only be shown for the final item in the list
|
void |
setTopText(java.lang.String topText)
Text that will be displayed next to the top item in the list
|
void |
setWidth(java.lang.Integer width)
The width of the list as a whole
|
public java.lang.Integer getMaximumLength()
public void setMaximumLength(java.lang.Integer maximumLength)
public java.lang.Integer getMinimumLength()
public void setMinimumLength(java.lang.Integer minimumLength)
public boolean isOnlyDeleteLastItem()
public void setOnlyDeleteLastItem(boolean onlyDeleteLastItem)
public java.lang.String getTopText()
public void setTopText(java.lang.String topText)
public java.lang.String getBottomText()
public void setBottomText(java.lang.String bottomText)
public java.lang.Integer getWidth()
public void setWidth(java.lang.Integer width)
public java.lang.Integer getInputWidth()
public void setInputWidth(java.lang.Integer inputWidth)
public java.lang.String getClassName()
public void setClassName(java.lang.String className)
public boolean isAddButtonAsItem()
public void setAddButtonAsItem(boolean addButtonAsItem)
public java.lang.Integer getAddInputWidth()
public void setAddInputWidth(java.lang.Integer addInputWidth)
public boolean isHideAddWhenListEmpty()
public void setHideAddWhenListEmpty(boolean hideAddWhenListEmpty)
public java.lang.String getAddButtonText()
public void setAddButtonText(java.lang.String addButtonText)
public java.lang.String getAddButtonImageSrc()
public void setAddButtonImageSrc(java.lang.String addButtonImageSrc)