org.wicketstuff.select2
Class Settings

java.lang.Object
  extended by org.wicketstuff.select2.Settings
All Implemented Interfaces:
Serializable

public final class Settings
extends Object
implements Serializable

Select2 settings. Refer to the Select2 documentation for what these options mean.

Author:
igor
See Also:
Serialized Form

Nested Class Summary
static class Settings.Widths
          Some predefined width option values
 
Constructor Summary
Settings()
           
 
Method Summary
 AjaxSettings getAjax()
           
 AjaxSettings getAjax(boolean createIfNotSet)
           
 Boolean getAllowClear()
           
 Boolean getCloseOnSelect()
           
 String getContainerCss()
           
 String getContainerCssClass()
           
 String getCreateSearchChoice()
           
 String getData()
           
 Boolean getDropdownAutoWidth()
           
 String getDropdownCss()
           
 String getDropdownCssClass()
           
 String getEscapeMarkup()
           
 String getFormatInputTooShort()
           
 String getFormatLoadMore()
           
 String getFormatNoMatches()
           
 String getFormatResult()
           
 String getFormatResultCssClass()
           
 String getFormatSearching()
           
 String getFormatSelection()
           
 String getFormatSelectionTooBig()
           
 String getId()
           
 String getInitSelection()
           
 String getMatcher()
           
 Integer getMaximumSelectionSize()
           
 Integer getMinimumInputLength()
           
 Integer getMinimumResultsForSearch()
           
 Boolean getMultiple()
           
 Boolean getOpenOnEnter()
           
 Object getPlaceholder()
           
 String getQuery()
           
 Boolean getSelectOnBlur()
           
 String getSeparator()
           
 String getSortResults()
           
 String getTags()
           
 String getTokenizer()
           
 String[] getTokenSeparators()
           
 String getWidth()
           
 void setAjax(AjaxSettings ajax)
           
 void setAllowClear(Boolean allowClear)
           
 void setCloseOnSelect(Boolean closeOnSelect)
           
 void setContainerCss(String containerCss)
           
 void setContainerCssClass(String containerCssClass)
           
 void setCreateSearchChoice(String createSearchChoice)
           
 void setData(String data)
           
 void setDropdownAutoWidth(Boolean dropdownAutoWidth)
           
 void setDropdownCss(String dropdownCss)
           
 void setDropdownCssClass(String dropdownCssClass)
           
 void setEscapeMarkup(String escapeMarkup)
           
 void setFormatInputTooShort(String formatInputTooShort)
           
 void setFormatLoadMore(String formatLoadMore)
           
 void setFormatNoMatches(String formatNoMatches)
           
 void setFormatResult(String formatResult)
           
 void setFormatResultCssClass(String formatResultCssClass)
           
 void setFormatSearching(String formatSearching)
           
 void setFormatSelection(String formatSelection)
           
 void setFormatSelectionTooBig(String formatSelectionTooBig)
           
 void setId(String id)
           
 void setInitSelection(String initSelection)
           
 void setMatcher(String matcher)
           
 void setMaximumSelectionSize(Integer maximumSelectionSize)
           
 void setMinimumInputLength(Integer minimumInputLength)
           
 void setMinimumResultsForSearch(Integer minimumResultsForSearch)
           
 void setMultiple(Boolean multiple)
           
 void setOpenOnEnter(Boolean openOnEnter)
           
 void setPlaceholder(Object placeholder)
           
 void setQuery(String query)
           
 void setSelectOnBlur(Boolean selectOnBlur)
           
 void setSeparator(String separator)
           
 void setSortResults(String sortResults)
           
 void setTags(String tags)
           
 void setTokenizer(String tokenizer)
           
 void setTokenSeparators(String[] tokenSeparators)
           
 void setWidth(String width)
           
 CharSequence toJson()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Settings

public Settings()
Method Detail

toJson

public CharSequence toJson()

getMinimumInputLength

public Integer getMinimumInputLength()

setMinimumInputLength

public void setMinimumInputLength(Integer minimumInputLength)

getMinimumResultsForSearch

public Integer getMinimumResultsForSearch()

setMinimumResultsForSearch

public void setMinimumResultsForSearch(Integer minimumResultsForSearch)

getPlaceholder

public Object getPlaceholder()

setPlaceholder

public void setPlaceholder(Object placeholder)

getAllowClear

public Boolean getAllowClear()

setAllowClear

public void setAllowClear(Boolean allowClear)

getMultiple

public Boolean getMultiple()

setMultiple

public void setMultiple(Boolean multiple)

getCloseOnSelect

public Boolean getCloseOnSelect()

setCloseOnSelect

public void setCloseOnSelect(Boolean closeOnSelect)

getId

public String getId()

setId

public void setId(String id)

getFormatSelection

public String getFormatSelection()

setFormatSelection

public void setFormatSelection(String formatSelection)

getFormatResult

public String getFormatResult()

setFormatResult

public void setFormatResult(String formatResult)

getFormatNoMatches

public String getFormatNoMatches()

setFormatNoMatches

public void setFormatNoMatches(String formatNoMatches)

getFormatInputTooShort

public String getFormatInputTooShort()

setFormatInputTooShort

public void setFormatInputTooShort(String formatInputTooShort)

getCreateSearchChoice

public String getCreateSearchChoice()

setCreateSearchChoice

public void setCreateSearchChoice(String createSearchChoice)

getInitSelection

public String getInitSelection()

setInitSelection

public void setInitSelection(String initSelection)

getQuery

public String getQuery()

setQuery

public void setQuery(String query)

getAjax

public AjaxSettings getAjax()

getAjax

public AjaxSettings getAjax(boolean createIfNotSet)

setAjax

public void setAjax(AjaxSettings ajax)

getData

public String getData()

setData

public void setData(String data)

getTags

public String getTags()

setTags

public void setTags(String tags)

getMaximumSelectionSize

public Integer getMaximumSelectionSize()

setMaximumSelectionSize

public void setMaximumSelectionSize(Integer maximumSelectionSize)

getMatcher

public String getMatcher()

setMatcher

public void setMatcher(String matcher)

getTokenizer

public String getTokenizer()

setTokenizer

public void setTokenizer(String tokenizer)

getSortResults

public String getSortResults()

setSortResults

public void setSortResults(String sortResults)

getFormatSelectionTooBig

public String getFormatSelectionTooBig()

setFormatSelectionTooBig

public void setFormatSelectionTooBig(String formatSelectionTooBig)

getFormatResultCssClass

public String getFormatResultCssClass()

setFormatResultCssClass

public void setFormatResultCssClass(String formatResultCssClass)

getFormatLoadMore

public String getFormatLoadMore()

setFormatLoadMore

public void setFormatLoadMore(String formatLoadMore)

getFormatSearching

public String getFormatSearching()

setFormatSearching

public void setFormatSearching(String formatSearching)

getEscapeMarkup

public String getEscapeMarkup()

setEscapeMarkup

public void setEscapeMarkup(String escapeMarkup)

getWidth

public String getWidth()

setWidth

public void setWidth(String width)

getOpenOnEnter

public Boolean getOpenOnEnter()

setOpenOnEnter

public void setOpenOnEnter(Boolean openOnEnter)

getContainerCss

public String getContainerCss()

setContainerCss

public void setContainerCss(String containerCss)

getDropdownCss

public String getDropdownCss()

setDropdownCss

public void setDropdownCss(String dropdownCss)

getContainerCssClass

public String getContainerCssClass()

setContainerCssClass

public void setContainerCssClass(String containerCssClass)

getDropdownCssClass

public String getDropdownCssClass()

setDropdownCssClass

public void setDropdownCssClass(String dropdownCssClass)

getSeparator

public String getSeparator()

setSeparator

public void setSeparator(String separator)

getTokenSeparators

public String[] getTokenSeparators()

setTokenSeparators

public void setTokenSeparators(String[] tokenSeparators)

getSelectOnBlur

public Boolean getSelectOnBlur()

setSelectOnBlur

public void setSelectOnBlur(Boolean selectOnBlur)

getDropdownAutoWidth

public Boolean getDropdownAutoWidth()

setDropdownAutoWidth

public void setDropdownAutoWidth(Boolean dropdownAutoWidth)


Copyright © 2018. All rights reserved.