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