public abstract class SBSimpleBeanInfo extends java.beans.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 java.lang.String |
CAPTURE_STRATEGY_DESC_NAME
The name of the bean that stores the CaptureStrategy.
|
static java.lang.String |
CHARSET_DISPLAY_NAME |
static java.lang.String |
CHARSET_PROPERTY_NAME |
static java.lang.String[] |
CHARSET_PROPOSALS |
static java.lang.String |
USE_DEFAULT_CHARSET_PROPERTY_NAME |
Constructor and Description |
---|
SBSimpleBeanInfo() |
Modifier and Type | Method and Description |
---|---|
static void |
checkCharsetProps(Operator operator,
boolean useDefault,
java.lang.String charset) |
SBPropertyDescriptor |
createCaptureTransformStrategyDescriptor()
Create a
SBPropertyDescriptor that sets the CaptureTransformStrategy for this
operator. |
SBPropertyDescriptor |
createCharsetPropertyDesc(UIHints hint,
java.lang.String desc,
java.lang.Class<?> clazz)
Same as calling createCharsetPropertyDesc(hint, desc, clazz, true)
|
SBPropertyDescriptor |
createCharsetPropertyDesc(UIHints hint,
java.lang.String desc,
java.lang.Class<?> clazz,
boolean indent)
Creates a property descriptor for character set encoding, with
CHARSET_PROPOSALS as the proposals. |
SBPropertyDescriptor |
createUseDefaultCharsetPropertyDesc(UIHints hint,
java.lang.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.
|
java.beans.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(java.lang.String charset) |
getAdditionalBeanInfo, getBeanDescriptor, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors, loadImage
public static final java.lang.String CAPTURE_STRATEGY_DESC_NAME
public static final java.lang.String[] CHARSET_PROPOSALS
public static final java.lang.String USE_DEFAULT_CHARSET_PROPERTY_NAME
public static final java.lang.String CHARSET_PROPERTY_NAME
public static final java.lang.String CHARSET_DISPLAY_NAME
public abstract SBPropertyDescriptor[] getPropertyDescriptorsChecked() throws java.beans.IntrospectionException
SBBeanInfo
getPropertyDescriptorsChecked
in interface SBBeanInfo
java.beans.IntrospectionException
- If a getter or setter for a property is missingpublic final java.beans.PropertyDescriptor[] getPropertyDescriptors()
SBSimpleBeanInfo
.getPropertyDescriptors
in interface java.beans.BeanInfo
getPropertyDescriptors
in class java.beans.SimpleBeanInfo
public SBPropertyDescriptor createCaptureTransformStrategyDescriptor() throws java.beans.IntrospectionException
SBPropertyDescriptor
that sets the CaptureTransformStrategy
for this
operator. The bean methods for this descriptor already exist in the base class.java.beans.IntrospectionException
- on bean introspection exceptionpublic SBPropertyDescriptor createCharsetPropertyDesc(UIHints hint, java.lang.String desc, java.lang.Class<?> clazz) throws java.beans.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 thisjava.beans.IntrospectionException
- on bean introspection exceptionpublic SBPropertyDescriptor createCharsetPropertyDesc(UIHints hint, java.lang.String desc, java.lang.Class<?> clazz, boolean indent) throws java.beans.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 otherwisejava.beans.IntrospectionException
- on bean introspection exceptionpublic SBPropertyDescriptor createUseDefaultCharsetPropertyDesc(UIHints hint, java.lang.Class<?> clazz) throws java.beans.IntrospectionException
hint
- The UIHint to be set on the SBPropertyDescriptor that will be usedclazz
- the Class containing the java bean property for thisjava.beans.IntrospectionException
- on bean introspection exceptionpublic static void checkCharsetProps(Operator operator, boolean useDefault, java.lang.String charset) throws Operator.PropertyTypecheckException
public static boolean isValidCharset(java.lang.String charset)