org.springframework.format.support

## 类 FormatterPropertyEditorAdapter

- java.lang.Object
- - java.beans.PropertyEditorSupport
  - - org.springframework.format.support.FormatterPropertyEditorAdapter

- 所有已实现的接口:
    PropertyEditor

      public class FormatterPropertyEditorAdapter
      extends PropertyEditorSupport

  Adapter that bridges between `Formatter` and `PropertyEditor`.
  从以下版本开始:
    4.2
  作者:
    Juergen Hoeller

- - ### 构造器概要

    构造器
    构造器和说明
    `FormatterPropertyEditorAdapter(Formatter<?> formatter)` Create a new `FormatterPropertyEditorAdapter` for the given `Formatter`.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `String` | `getAsText()`
    `Class<?>` | `getFieldType()` Determine the `Formatter`-declared field type.
    `void` | `setAsText(String text)`

    - ### 从类继承的方法 java.beans.PropertyEditorSupport

      `addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### FormatterPropertyEditorAdapter

          public FormatterPropertyEditorAdapter(Formatter<?> formatter)

      Create a new `FormatterPropertyEditorAdapter` for the given `Formatter`.
      参数:
        `formatter` - the `Formatter` to wrap

  - ### 方法详细资料

    - #### getFieldType

          public Class<?> getFieldType()

      Determine the `Formatter`-declared field type.
      返回:
        the field type declared in the wrapped `Formatter` implementation (never `null`)
      抛出:
        `IllegalArgumentException` - if the `Formatter`-declared field type cannot be inferred

    - #### setAsText

          public void setAsText(String text)
                         throws IllegalArgumentException

      指定者:
        `setAsText` 在接口中 `PropertyEditor`
      覆盖:
        `setAsText` 在类中 `PropertyEditorSupport`
      抛出:
        `IllegalArgumentException`

    - #### getAsText

          public String getAsText()

      指定者:
        `getAsText` 在接口中 `PropertyEditor`
      覆盖:
        `getAsText` 在类中 `PropertyEditorSupport`