Class InputTags
- java.lang.Object
-
- javax.faces.component.UIComponent
-
- javax.faces.component.UIComponentBase
-
- javax.faces.component.UIOutput
-
- javax.faces.component.UIInput
-
- javax.faces.component.html.HtmlInputText
-
- de.xima.fc.gui.component.inputtags.InputTags
-
- All Implemented Interfaces:
EventListener
,javax.faces.component.behavior.ClientBehaviorHolder
,javax.faces.component.EditableValueHolder
,javax.faces.component.PartialStateHolder
,javax.faces.component.StateHolder
,javax.faces.component.TransientStateHolder
,javax.faces.component.ValueHolder
,javax.faces.event.ComponentSystemEventListener
,javax.faces.event.FacesListener
,javax.faces.event.SystemEventListenerHolder
,org.primefaces.component.api.InputHolder
,org.primefaces.component.api.Widget
@Deprecated public class InputTags extends javax.faces.component.html.HtmlInputText implements org.primefaces.component.api.Widget, org.primefaces.component.api.InputHolder
Deprecated.UseTagify
A PrimeFaces component for the JavaScript tagEditor component: https://github.com/Pixabay/jQuery-tagEditor- Author:
- XIMA MEDIA GmbH
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InputTags.PropertyKeys
Deprecated.
-
Field Summary
Fields Modifier and Type Field Description static String
COMPONENT_FAMILY
Deprecated.static String
COMPONENT_TYPE
Deprecated.static int
DEFAULT_ANIMATE_DELETE
Deprecated.static List<Object>
DEFAULT_AVAILABLE_TAGS
Deprecated.static boolean
DEFAULT_CLICK_DELETE
Deprecated.static String
DEFAULT_DELIMITER
Deprecated.static boolean
DEFAULT_FORCE_LOWERCASE
Deprecated.static int
DEFAULT_MAX_LENGTH
Deprecated.static int
DEFAULT_MAX_TAGS
Deprecated.static String
DEFAULT_PLACEHOLDER
Deprecated.static boolean
DEFAULT_REMOVE_DUPLICATES
Deprecated.static String
DEFAULT_RENDERER
Deprecated.static boolean
DEFAULT_SHOW_ON_FOCUS
Deprecated.static boolean
DEFAULT_SORTABLE
Deprecated.static boolean
DEFAULT_STRING_MODEL
Deprecated.static String
INVALID_MESSAGE_ID
Deprecated.static String
INVALID_MESSAGE_ID_LENGTH
Deprecated.static String
INVALID_MESSAGE_ID_NOT_AVAILABLE
Deprecated.static String
INVALID_MESSAGE_ID_TAG_TOO_LONG
Deprecated.static String
STYLE_CLASS
Deprecated.
-
Constructor Summary
Constructors Constructor Description InputTags()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
getAnimateDelete()
Deprecated.List
getAvailableTags()
Deprecated.String
getDelimiter()
Deprecated.String
getDelimiterPattern()
Deprecated.Collection<String>
getEventNames()
Deprecated.String
getFamily()
Deprecated.String
getInputClientId()
Deprecated.String
getLabelledBy()
Deprecated.List<?>
getListValue()
Deprecated.char
getMainDelimiter()
Deprecated.int
getMaxlength()
Deprecated.int
getMaxTags()
Deprecated.String
getPlaceholder()
Deprecated.String
getValidatableInputClientId()
Deprecated.String
getWidgetVar()
Deprecated.boolean
isClickDelete()
Deprecated.boolean
isForceLowercase()
Deprecated.boolean
isRemoveDuplicates()
Deprecated.boolean
isShowOnFocus()
Deprecated.boolean
isSortable()
Deprecated.boolean
isStringModel()
Deprecated.String
resolveWidgetVar()
Deprecated.void
setAnimateDelete(int animateDelete)
Deprecated.void
setAvailableTags(List availableTags)
Deprecated.void
setClickDelete(boolean clickDelete)
Deprecated.void
setDelimiter(String delimiter)
Deprecated.void
setForceLowercase(boolean forceLowercase)
Deprecated.void
setLabelledBy(String labelledBy)
Deprecated.void
setMaxTags(int maxTags)
Deprecated.void
setPlaceholder(String placeholder)
Deprecated.void
setRemoveDuplicates(boolean removeDuplicates)
Deprecated.void
setShowOnFocus(boolean showOnFocus)
Deprecated.void
setSortable(boolean sortable)
Deprecated.void
setStringModel(boolean stringModel)
Deprecated.void
setWidgetVar(String widgetVar)
Deprecated.protected void
validateValue(javax.faces.context.FacesContext context, Object value)
Deprecated.-
Methods inherited from class javax.faces.component.html.HtmlInputText
getAccesskey, getAlt, getAutocomplete, getDefaultEventName, getDir, getLabel, getLang, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getRole, getSize, getStyle, getStyleClass, getTabindex, getTitle, isDisabled, isReadonly, setAccesskey, setAlt, setAutocomplete, setDir, setDisabled, setLabel, setLang, setMaxlength, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setReadonly, setRole, setSize, setStyle, setStyleClass, setTabindex, setTitle
-
Methods inherited from class javax.faces.component.UIInput
addValidator, addValueChangeListener, clearInitialState, compareValues, decode, getConvertedValue, getConverterMessage, getRequiredMessage, getSubmittedValue, getValidator, getValidatorMessage, getValidators, getValue, getValueChangeListener, getValueChangeListeners, isEmpty, isImmediate, isLocalValueSet, isRequired, isValid, markInitialState, processDecodes, processUpdates, processValidators, removeValidator, removeValueChangeListener, resetValue, restoreState, saveState, setConverterMessage, setImmediate, setLocalValueSet, setRequired, setRequiredMessage, setSubmittedValue, setValid, setValidator, setValidatorMessage, setValue, setValueChangeListener, updateModel, validate
-
Methods inherited from class javax.faces.component.UIOutput
getConverter, getLocalValue, setConverter
-
Methods inherited from class javax.faces.component.UIComponentBase
addClientBehavior, addFacesListener, broadcast, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent
-
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, visitTree
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.faces.component.behavior.ClientBehaviorHolder
addClientBehavior, getClientBehaviors
-
-
-
-
Field Detail
-
COMPONENT_FAMILY
public static final String COMPONENT_FAMILY
Deprecated.- See Also:
- Constant Field Values
-
COMPONENT_TYPE
public static final String COMPONENT_TYPE
Deprecated.- See Also:
- Constant Field Values
-
DEFAULT_RENDERER
public static final String DEFAULT_RENDERER
Deprecated.- See Also:
- Constant Field Values
-
INVALID_MESSAGE_ID
public static final String INVALID_MESSAGE_ID
Deprecated.- See Also:
- Constant Field Values
-
INVALID_MESSAGE_ID_LENGTH
public static final String INVALID_MESSAGE_ID_LENGTH
Deprecated.- See Also:
- Constant Field Values
-
INVALID_MESSAGE_ID_NOT_AVAILABLE
public static final String INVALID_MESSAGE_ID_NOT_AVAILABLE
Deprecated.- See Also:
- Constant Field Values
-
INVALID_MESSAGE_ID_TAG_TOO_LONG
public static final String INVALID_MESSAGE_ID_TAG_TOO_LONG
Deprecated.- See Also:
- Constant Field Values
-
STYLE_CLASS
public static final String STYLE_CLASS
Deprecated.- See Also:
- Constant Field Values
-
DEFAULT_ANIMATE_DELETE
public static final int DEFAULT_ANIMATE_DELETE
Deprecated.- See Also:
- Constant Field Values
-
DEFAULT_CLICK_DELETE
public static final boolean DEFAULT_CLICK_DELETE
Deprecated.- See Also:
- Constant Field Values
-
DEFAULT_DELIMITER
public static final String DEFAULT_DELIMITER
Deprecated.- See Also:
- Constant Field Values
-
DEFAULT_FORCE_LOWERCASE
public static final boolean DEFAULT_FORCE_LOWERCASE
Deprecated.- See Also:
- Constant Field Values
-
DEFAULT_MAX_LENGTH
public static final int DEFAULT_MAX_LENGTH
Deprecated.- See Also:
- Constant Field Values
-
DEFAULT_MAX_TAGS
public static final int DEFAULT_MAX_TAGS
Deprecated.- See Also:
- Constant Field Values
-
DEFAULT_PLACEHOLDER
public static final String DEFAULT_PLACEHOLDER
Deprecated.- See Also:
- Constant Field Values
-
DEFAULT_SHOW_ON_FOCUS
public static final boolean DEFAULT_SHOW_ON_FOCUS
Deprecated.- See Also:
- Constant Field Values
-
DEFAULT_REMOVE_DUPLICATES
public static final boolean DEFAULT_REMOVE_DUPLICATES
Deprecated.- See Also:
- Constant Field Values
-
DEFAULT_SORTABLE
public static final boolean DEFAULT_SORTABLE
Deprecated.- See Also:
- Constant Field Values
-
DEFAULT_STRING_MODEL
public static final boolean DEFAULT_STRING_MODEL
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
getEventNames
public Collection<String> getEventNames()
Deprecated.- Specified by:
getEventNames
in interfacejavax.faces.component.behavior.ClientBehaviorHolder
- Overrides:
getEventNames
in classjavax.faces.component.html.HtmlInputText
-
getFamily
public String getFamily()
Deprecated.- Overrides:
getFamily
in classjavax.faces.component.UIInput
-
getMainDelimiter
public char getMainDelimiter()
Deprecated.- Returns:
- The main delimiting character for tags, ie. the first character of the
getDelimiter()
s.
-
getDelimiterPattern
public String getDelimiterPattern()
Deprecated.- Returns:
- The pattern that matches any of the delimiter. Eg. if the
getDelimiter()
is,;
, this returns the pattern,|;
.
-
getListValue
public List<?> getListValue()
Deprecated.- Returns:
- The value of this component as a list. If
UIInput.getValue()
is not aList
, convert to aString
and split by thegetMainDelimiter()
.
-
resolveWidgetVar
public String resolveWidgetVar()
Deprecated.- Specified by:
resolveWidgetVar
in interfaceorg.primefaces.component.api.Widget
-
getInputClientId
public String getInputClientId()
Deprecated.- Specified by:
getInputClientId
in interfaceorg.primefaces.component.api.InputHolder
-
getValidatableInputClientId
public String getValidatableInputClientId()
Deprecated.- Specified by:
getValidatableInputClientId
in interfaceorg.primefaces.component.api.InputHolder
-
getLabelledBy
public String getLabelledBy()
Deprecated.- Specified by:
getLabelledBy
in interfaceorg.primefaces.component.api.InputHolder
-
setLabelledBy
public void setLabelledBy(String labelledBy)
Deprecated.- Specified by:
setLabelledBy
in interfaceorg.primefaces.component.api.InputHolder
-
getWidgetVar
public String getWidgetVar()
Deprecated.
-
setWidgetVar
public void setWidgetVar(String widgetVar)
Deprecated.
-
getMaxlength
public int getMaxlength()
Deprecated.- Overrides:
getMaxlength
in classjavax.faces.component.html.HtmlInputText
-
isStringModel
public boolean isStringModel()
Deprecated.- Returns:
- Whether the model (the value expression) uses a
String
instead of aList
. Defaults tofalse
.
-
setStringModel
public void setStringModel(boolean stringModel)
Deprecated.- Parameters:
stringModel
- the stringmodel to set
-
getPlaceholder
public String getPlaceholder()
Deprecated.- Returns:
- Placeholder text for empty tag editor. Defaults to no placeholder.
-
setPlaceholder
public void setPlaceholder(String placeholder)
Deprecated.- Parameters:
placeholder
- Placeholder text for empty tag editor.
-
isShowOnFocus
public boolean isShowOnFocus()
Deprecated.- Returns:
- If autocompletion is enabled via
getAvailableTags()
: Whether suggestions are shown as soon as the user focuses on the input field. Defaults tofalse
.
-
setShowOnFocus
public void setShowOnFocus(boolean showOnFocus)
Deprecated.- Parameters:
showOnFocus
- If autocompletion is enabled viagetAvailableTags()
: Whether suggestions are shown as soon as the user focuses on the input field. Defaults tofalse
.
-
getMaxTags
public int getMaxTags()
Deprecated.- Returns:
- Maximum number of allowed tags.
0
is not limit. Defaults to0
.
-
setMaxTags
public void setMaxTags(int maxTags)
Deprecated.- Parameters:
maxTags
- Maximum number of allowed tags.
-
isForceLowercase
public boolean isForceLowercase()
Deprecated.- Returns:
- Whether to lowercase all tags. Defaults to
false
.
-
setForceLowercase
public void setForceLowercase(boolean forceLowercase)
Deprecated.- Parameters:
forceLowercase
- Whether to lowercase all tags.
-
getDelimiter
public String getDelimiter()
Deprecated.- Returns:
- Required string of delimiters - characters for separating tags. The first character is used as default
delimiter in the (hidden) original field. Defaults to
,;
.
-
setDelimiter
public void setDelimiter(String delimiter)
Deprecated.- Parameters:
delimiter
- Required string of delimiters - characters for separating tags. The first character is used as default delimiter in the (hidden) original field.
-
isRemoveDuplicates
public boolean isRemoveDuplicates()
Deprecated.- Returns:
- Whether to automatically remove duplicate tags. Defaults to
true
.
-
setRemoveDuplicates
public void setRemoveDuplicates(boolean removeDuplicates)
Deprecated.- Parameters:
removeDuplicates
- Whether to automatically remove duplicate tags.
-
getAnimateDelete
public int getAnimateDelete()
Deprecated.- Returns:
- Animate duration for deletion of tags in milliseconds. Set to 0 for non-animated removal. Defaults to
175
.
-
setAnimateDelete
public void setAnimateDelete(int animateDelete)
Deprecated.- Parameters:
animateDelete
- Animate duration for deletion of tags in milliseconds. Set to 0 for non-animated removal.
-
isClickDelete
public boolean isClickDelete()
Deprecated.- Returns:
- Whether to delete tags also on right click and on Ctrl+click. Defaults to
false
.
-
setClickDelete
public void setClickDelete(boolean clickDelete)
Deprecated.- Parameters:
clickDelete
- Whether to delete tags also on right click and on Ctrl+click.
-
isSortable
public boolean isSortable()
Deprecated.- Returns:
- If jQuery UI sortable is available and this option is set to
true
, tags are sortable by drag and drop. Defaults totrue
.
-
setSortable
public void setSortable(boolean sortable)
Deprecated.- Parameters:
sortable
- If jQuery UI sortable is available and this option is set totrue
, tags are sortable by drag and drop.
-
getAvailableTags
public List getAvailableTags()
Deprecated.- Returns:
- List of available tags. If given and not empty, autocomplete is activated and all tags not included in this list are disallowed and cannot be entered. Autocomplete required JQuery UI to be available.
-
setAvailableTags
public void setAvailableTags(List availableTags)
Deprecated.- Parameters:
availableTags
- List of available tags. If given and not empty, autocomplete is activated and all tags not included in this list are disallowed and cannot be entered.
-
validateValue
protected void validateValue(javax.faces.context.FacesContext context, Object value)
Deprecated.- Overrides:
validateValue
in classjavax.faces.component.UIInput
-
-