public class XssStringEditor extends PropertyEditorSupport implements org.springframework.web.bind.support.WebBindingInitializer
| 构造器和说明 |
|---|
XssStringEditor() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getAsText()
Gets the property value as a string suitable for presentation to a human to
edit.
|
void |
initBinder(org.springframework.web.bind.WebDataBinder binder) |
void |
setAsText(String text)
Sets the property value by parsing a given String.
|
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditorpublic String getAsText()
getAsText 在接口中 PropertyEditorgetAsText 在类中 PropertyEditorSupportReturns null if the value can't be expressed as a string.
If a non-null value is returned, then the PropertyEditor should be prepared to parse that string back in setAsText().
public void setAsText(String text) throws IllegalArgumentException
setAsText 在接口中 PropertyEditorsetAsText 在类中 PropertyEditorSupporttext - The string to be parsed.IllegalArgumentExceptionpublic void initBinder(org.springframework.web.bind.WebDataBinder binder)
initBinder 在接口中 org.springframework.web.bind.support.WebBindingInitializerCopyright © 2021. All rights reserved.