public class CharacterEditor extends PropertyEditorSupportSE
CharacterSE のエディター。ストリング値から型 Character または char のプロパティを設定します。JDK には char のデフォルト property editorSE が含まれていないことに注意してください。BeanWrapperImpl はデフォルトでこのエディターを登録します。
Unicode 文字シーケンスからの変換もサポートします。たとえば u0041 ('A' )。
CharacterSE, BeanWrapperImpl| コンストラクターと説明 |
|---|
CharacterEditor(boolean allowEmpty) 新しい CharacterEditor インスタンスを作成します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
StringSE | getAsText() |
void | setAsText(StringSE text) |
addPropertyChangeListenerSE, firePropertyChangeSE, getCustomEditorSE, getJavaInitializationStringSE, getSourceSE, getTagsSE, getValueSE, isPaintableSE, paintValueSE, removePropertyChangeListenerSE, setSourceSE, setValueSE, supportsCustomEditorSEcloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic CharacterEditor(boolean allowEmpty)
"allowEmpty" パラメーターは、解析時に空の文字列を許可するかどうか、つまり、text is being converted の場合は null 値として解釈するかどうかを制御します。false の場合は、その時点で IllegalArgumentExceptionSE がスローされます。
allowEmpty - 空の文字列が許可される場合 public void setAsText(@Nullable StringSE text) throws IllegalArgumentExceptionSE
PropertyEditorSE の setAsTextSE PropertyEditorSupportSE の setAsTextSE IllegalArgumentExceptionSEpublic StringSE getAsText()
PropertyEditorSE の getAsTextSE PropertyEditorSupportSE の getAsTextSE