Package com.im.commons.ui.beans
Class NullDelegatePropertyEditor
- java.lang.Object
-
- java.beans.PropertyEditorSupport
-
- com.im.commons.ui.beans.NullDelegatePropertyEditor
-
- All Implemented Interfaces:
java.beans.PropertyEditor
public class NullDelegatePropertyEditor extends java.beans.PropertyEditorSupportGeneric property editor where values are integers, but should be edited as strings.
-
-
Constructor Summary
Constructors Constructor Description NullDelegatePropertyEditor(java.lang.Class<?> clazz, java.lang.String nullMessage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAsText()java.awt.ComponentgetCustomEditor()java.lang.StringgetJavaInitializationString()java.lang.ObjectgetValue()booleanisPaintable()voidpaintValue(java.awt.Graphics gfx, java.awt.Rectangle box)voidsetAsText(java.lang.String text)voidsetValue(java.lang.Object value)booleansupportsCustomEditor()
-
-
-
Method Detail
-
supportsCustomEditor
public boolean supportsCustomEditor()
- Specified by:
supportsCustomEditorin interfacejava.beans.PropertyEditor- Overrides:
supportsCustomEditorin classjava.beans.PropertyEditorSupport
-
setValue
public void setValue(java.lang.Object value)
- Specified by:
setValuein interfacejava.beans.PropertyEditor- Overrides:
setValuein classjava.beans.PropertyEditorSupport
-
setAsText
public void setAsText(java.lang.String text) throws java.lang.IllegalArgumentException- Specified by:
setAsTextin interfacejava.beans.PropertyEditor- Overrides:
setAsTextin classjava.beans.PropertyEditorSupport- Throws:
java.lang.IllegalArgumentException
-
paintValue
public void paintValue(java.awt.Graphics gfx, java.awt.Rectangle box)- Specified by:
paintValuein interfacejava.beans.PropertyEditor- Overrides:
paintValuein classjava.beans.PropertyEditorSupport
-
isPaintable
public boolean isPaintable()
- Specified by:
isPaintablein interfacejava.beans.PropertyEditor- Overrides:
isPaintablein classjava.beans.PropertyEditorSupport
-
getValue
public java.lang.Object getValue()
- Specified by:
getValuein interfacejava.beans.PropertyEditor- Overrides:
getValuein classjava.beans.PropertyEditorSupport
-
getJavaInitializationString
public java.lang.String getJavaInitializationString()
- Specified by:
getJavaInitializationStringin interfacejava.beans.PropertyEditor- Overrides:
getJavaInitializationStringin classjava.beans.PropertyEditorSupport
-
getCustomEditor
public java.awt.Component getCustomEditor()
- Specified by:
getCustomEditorin interfacejava.beans.PropertyEditor- Overrides:
getCustomEditorin classjava.beans.PropertyEditorSupport
-
getAsText
public java.lang.String getAsText()
- Specified by:
getAsTextin interfacejava.beans.PropertyEditor- Overrides:
getAsTextin classjava.beans.PropertyEditorSupport
-
-