Package ipsk.beans
Class ExtBeanInfoImpl
- java.lang.Object
-
- ipsk.beans.ExtBeanInfoImpl
-
- All Implemented Interfaces:
ExtBeanInfo,java.beans.BeanInfo
public class ExtBeanInfoImpl extends java.lang.Object implements ExtBeanInfo
-
-
Constructor Summary
Constructors Constructor Description ExtBeanInfoImpl(java.beans.BeanInfo beanInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectcreateIdValueByString(java.lang.String idStr)java.beans.BeanInfo[]getAdditionalBeanInfo()java.beans.BeanDescriptorgetBeanDescriptor()java.lang.StringgetClassPluralResourceKey()Get the resource key for the localized (descriptive) name of a plural objects of the bean class.java.lang.StringgetClassResourceKey()Get the resource key for the localized (descriptive) name of bean class.intgetDefaultEventIndex()intgetDefaultPropertyIndex()ExtBeanInfogetEmbeddedIdBeanInfo()java.beans.EventSetDescriptor[]getEventSetDescriptors()java.util.List<ExtPropertyDescriptor>getExtPersistencePropertyDescriptors()java.util.List<ExtPropertyDescriptor>getExtPropertyDescriptors()java.awt.ImagegetIcon(int iconKind)java.beans.PropertyDescriptorgetIdPropertyDescriptor()java.lang.ObjectgetIdValue(java.lang.Object bean)java.beans.MethodDescriptor[]getMethodDescriptors()java.util.Set<java.beans.PropertyDescriptor>getObjectImmutablePropertyDescriptors()java.beans.PropertyDescriptorgetPersistencePropertyDescriptor(java.lang.String name)java.beans.PropertyDescriptor[]getPersistencePropertyDescriptors()java.util.Set<java.lang.String>getPersistencePropertyNames()java.lang.String[]getPreferredDisplayOrder()Get the preferred order of the properties to display.java.beans.PropertyDescriptor[]getPropertyDescriptors()java.lang.StringgetPropertyResourceKey(java.lang.String propertyName)Returns resource key of bean property.java.lang.StringgetResourceBundleName()Get the name of the resource bundle to use.booleanisIdEmbedded()booleanisIdGenerated()voidsetClassPluralResourceKey(java.lang.String classPluralResourceKey)voidsetClassResourceKey(java.lang.String string)voidsetEmbeddedIdBeanInfo(ExtBeanInfo embeddedIdBeanInfo)voidsetIdEmbedded(boolean idEmbedded)voidsetIdGenerated(boolean b)voidsetIdPropertyDescriptor(java.beans.PropertyDescriptor idPropertyDescriptor)voidsetObjectImmutablePropertyDescriptors(java.util.Set<java.beans.PropertyDescriptor> objectImmutablePropertyDescriptors)voidsetPersistencePropertyDescriptors(java.beans.PropertyDescriptor[] persistencePropertyDescriptors)voidsetPreferredDisplayOrder(java.lang.String[] preferredDisplayOrder)voidsetResourceBundleName(java.lang.String resourceBundleName)
-
-
-
Method Detail
-
getObjectImmutablePropertyDescriptors
public java.util.Set<java.beans.PropertyDescriptor> getObjectImmutablePropertyDescriptors()
-
setObjectImmutablePropertyDescriptors
public void setObjectImmutablePropertyDescriptors(java.util.Set<java.beans.PropertyDescriptor> objectImmutablePropertyDescriptors)
-
getIdValue
public java.lang.Object getIdValue(java.lang.Object bean) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException- Throws:
java.lang.IllegalArgumentExceptionjava.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetException
-
createIdValueByString
public java.lang.Object createIdValueByString(java.lang.String idStr) throws java.lang.SecurityException, java.lang.NoSuchMethodException, java.lang.IllegalArgumentException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException- Throws:
java.lang.SecurityExceptionjava.lang.NoSuchMethodExceptionjava.lang.IllegalArgumentExceptionjava.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetException
-
getAdditionalBeanInfo
public java.beans.BeanInfo[] getAdditionalBeanInfo()
- Specified by:
getAdditionalBeanInfoin interfacejava.beans.BeanInfo
-
getBeanDescriptor
public java.beans.BeanDescriptor getBeanDescriptor()
- Specified by:
getBeanDescriptorin interfacejava.beans.BeanInfo
-
getDefaultEventIndex
public int getDefaultEventIndex()
- Specified by:
getDefaultEventIndexin interfacejava.beans.BeanInfo
-
getDefaultPropertyIndex
public int getDefaultPropertyIndex()
- Specified by:
getDefaultPropertyIndexin interfacejava.beans.BeanInfo
-
getEventSetDescriptors
public java.beans.EventSetDescriptor[] getEventSetDescriptors()
- Specified by:
getEventSetDescriptorsin interfacejava.beans.BeanInfo
-
getIcon
public java.awt.Image getIcon(int iconKind)
- Specified by:
getIconin interfacejava.beans.BeanInfo
-
getMethodDescriptors
public java.beans.MethodDescriptor[] getMethodDescriptors()
- Specified by:
getMethodDescriptorsin interfacejava.beans.BeanInfo
-
getPropertyDescriptors
public java.beans.PropertyDescriptor[] getPropertyDescriptors()
- Specified by:
getPropertyDescriptorsin interfacejava.beans.BeanInfo
-
getIdPropertyDescriptor
public java.beans.PropertyDescriptor getIdPropertyDescriptor()
-
setIdPropertyDescriptor
public void setIdPropertyDescriptor(java.beans.PropertyDescriptor idPropertyDescriptor)
-
setIdGenerated
public void setIdGenerated(boolean b)
-
isIdGenerated
public boolean isIdGenerated()
-
getPreferredDisplayOrder
public java.lang.String[] getPreferredDisplayOrder()
Description copied from interface:ExtBeanInfoGet the preferred order of the properties to display.- Specified by:
getPreferredDisplayOrderin interfaceExtBeanInfo- Returns:
- array of ordered property names
-
getResourceBundleName
public java.lang.String getResourceBundleName()
Description copied from interface:ExtBeanInfoGet the name of the resource bundle to use.- Specified by:
getResourceBundleNamein interfaceExtBeanInfo- Returns:
- name of resource bundle
-
setResourceBundleName
public void setResourceBundleName(java.lang.String resourceBundleName)
-
setPreferredDisplayOrder
public void setPreferredDisplayOrder(java.lang.String[] preferredDisplayOrder)
-
setClassResourceKey
public void setClassResourceKey(java.lang.String string)
-
getClassResourceKey
public java.lang.String getClassResourceKey()
Description copied from interface:ExtBeanInfoGet the resource key for the localized (descriptive) name of bean class.- Specified by:
getClassResourceKeyin interfaceExtBeanInfo- Returns:
- resource key for class name
-
getPropertyResourceKey
public java.lang.String getPropertyResourceKey(java.lang.String propertyName)
Description copied from interface:ExtBeanInfoReturns resource key of bean property.- Specified by:
getPropertyResourceKeyin interfaceExtBeanInfo- Parameters:
propertyName- name of property- Returns:
- resource key or null if not annotated
-
isIdEmbedded
public boolean isIdEmbedded()
-
setIdEmbedded
public void setIdEmbedded(boolean idEmbedded)
-
getEmbeddedIdBeanInfo
public ExtBeanInfo getEmbeddedIdBeanInfo()
-
setEmbeddedIdBeanInfo
public void setEmbeddedIdBeanInfo(ExtBeanInfo embeddedIdBeanInfo)
-
getPersistencePropertyDescriptors
public java.beans.PropertyDescriptor[] getPersistencePropertyDescriptors()
-
setPersistencePropertyDescriptors
public void setPersistencePropertyDescriptors(java.beans.PropertyDescriptor[] persistencePropertyDescriptors)
-
getPersistencePropertyDescriptor
public java.beans.PropertyDescriptor getPersistencePropertyDescriptor(java.lang.String name)
-
getClassPluralResourceKey
public java.lang.String getClassPluralResourceKey()
Description copied from interface:ExtBeanInfoGet the resource key for the localized (descriptive) name of a plural objects of the bean class.- Specified by:
getClassPluralResourceKeyin interfaceExtBeanInfo- Returns:
- resource key for plural objects of the class
-
setClassPluralResourceKey
public void setClassPluralResourceKey(java.lang.String classPluralResourceKey)
-
getPersistencePropertyNames
public java.util.Set<java.lang.String> getPersistencePropertyNames()
-
getExtPropertyDescriptors
public java.util.List<ExtPropertyDescriptor> getExtPropertyDescriptors()
- Specified by:
getExtPropertyDescriptorsin interfaceExtBeanInfo
-
getExtPersistencePropertyDescriptors
public java.util.List<ExtPropertyDescriptor> getExtPersistencePropertyDescriptors()
-
-