public abstract class SBSimpleBeanInfo extends SimpleBeanInfo implements SBBeanInfo
SimpleBeanInfo
to allow StreamBase to identify the name of
missing getter or setter methods for a specific property.Modifier and Type | Field and Description |
---|---|
static String |
CAPTURE_STRATEGY_DESC_NAME
The name of the bean that stores the CaptureStrategy.
|
static String |
CHARSET_DISPLAY_NAME |
static String |
CHARSET_PROPERTY_NAME |
static String[] |
CHARSET_PROPOSALS |
static String |
USE_DEFAULT_CHARSET_PROPERTY_NAME |
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32
Constructor and Description |
---|
SBSimpleBeanInfo() |
Modifier and Type | Method and Description |
---|---|
static void |
checkCharsetProps(Operator operator,
boolean useDefault,
String charset) |
SBPropertyDescriptor |
createCaptureTransformStrategyDescriptor()
Create a
SBPropertyDescriptor that sets the CaptureTransformStrategy for this
operator. |
SBPropertyDescriptor |
createCharsetPropertyDesc(UIHints hint,
String desc,
Class<?> clazz)
Same as calling createCharsetPropertyDesc(hint, desc, clazz, true)
|
SBPropertyDescriptor |
createCharsetPropertyDesc(UIHints hint,
String desc,
Class<?> clazz,
boolean indent)
Creates a property descriptor for character set encoding, with
CHARSET_PROPOSALS as the proposals. |
SBPropertyDescriptor |
createUseDefaultCharsetPropertyDesc(UIHints hint,
Class<?> clazz)
Creates a check box property descriptor for users to indicate that they would like to use the
platform's default charset for this operator.
|
PropertyDescriptor[] |
getPropertyDescriptors()
Use getPropertyDescriptorsChecked rather than getPropertyDescriptors when extending
SBSimpleBeanInfo . |
abstract SBPropertyDescriptor[] |
getPropertyDescriptorsChecked()
Returns the property descriptors of an operator or adapter
|
static boolean |
isValidCharset(String charset) |
getAdditionalBeanInfo, getBeanDescriptor, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors, loadImage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAdditionalBeanInfo, getBeanDescriptor, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors
public static final String CAPTURE_STRATEGY_DESC_NAME
public static final String[] CHARSET_PROPOSALS
public static final String USE_DEFAULT_CHARSET_PROPERTY_NAME
public static final String CHARSET_PROPERTY_NAME
public static final String CHARSET_DISPLAY_NAME
public abstract SBPropertyDescriptor[] getPropertyDescriptorsChecked() throws IntrospectionException
SBBeanInfo
getPropertyDescriptorsChecked
in interface SBBeanInfo
IntrospectionException
- If a getter or setter for a property is missingpublic final PropertyDescriptor[] getPropertyDescriptors()
SBSimpleBeanInfo
.getPropertyDescriptors
in interface BeanInfo
getPropertyDescriptors
in class SimpleBeanInfo
public SBPropertyDescriptor createCaptureTransformStrategyDescriptor() throws IntrospectionException
SBPropertyDescriptor
that sets the CaptureTransformStrategy
for this
operator. The bean methods for this descriptor already exist in the base class.IntrospectionException
- on bean introspection exceptionpublic SBPropertyDescriptor createCharsetPropertyDesc(UIHints hint, String desc, Class<?> clazz) throws IntrospectionException
hint
- UIHint to be used for the SBPropertyDescriptor that should be createddesc
- Description or tool-tip for the propertyclazz
- the Class containing the java bean property for thisIntrospectionException
- on bean introspection exceptionpublic SBPropertyDescriptor createCharsetPropertyDesc(UIHints hint, String desc, Class<?> clazz, boolean indent) throws IntrospectionException
CHARSET_PROPOSALS
as the proposals.hint
- UIHint to be used for the SBPropertyDescriptor that should be createddesc
- Description or tool-tip for the propertyclazz
- the Class containing the java bean property for thisindent
- the property will be indented if this is set to true, false otherwiseIntrospectionException
- on bean introspection exceptionpublic SBPropertyDescriptor createUseDefaultCharsetPropertyDesc(UIHints hint, Class<?> clazz) throws IntrospectionException
hint
- The UIHint to be set on the SBPropertyDescriptor that will be usedclazz
- the Class containing the java bean property for thisIntrospectionException
- on bean introspection exceptionpublic static void checkCharsetProps(Operator operator, boolean useDefault, String charset) throws Operator.PropertyTypecheckException
public static boolean isValidCharset(String charset)