ARoad0.gBaseBeanInfo
Class StringMetaRightImplBeanInfo

java.lang.Object
  extended by java.beans.SimpleBeanInfo
      extended by ARoad0.gBaseBeanInfo.StringRightImplBeanInfo
          extended by ARoad0.gBaseBeanInfo.StringMetaRightImplBeanInfo
All Implemented Interfaces:
BeanInfoPattern, java.beans.BeanInfo

public class StringMetaRightImplBeanInfo
extends StringRightImplBeanInfo

This class is responsible for describing the StringMetaRightImpl class. It is used for displaying and editing the properties of StringMetaRightImpl, to create it and to copy it.


Field Summary
 
Fields inherited from interface java.beans.BeanInfo
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32
 
Constructor Summary
StringMetaRightImplBeanInfo()
           
 
Method Summary
 java.lang.String getBaseBeanManagerBoundProperty()
          Get the property name for which a change fires an PropertyChangeEvent in the BaseBeanManager, when the bean instance is closed or deleted.
 java.lang.reflect.Method getBaseBeanManagerGetMethod()
          Get the bean method, without parameters, that allows to get the BaseBeanManager instance, if it exists, which fires an event when the bean instance is closed or deleted.
 BaseBeanManager getBaseBeanManagerInstance()
          Get the instance, if it exists, which fires an event when the bean is closed or deleted.
 java.beans.BeanDescriptor getBeanDescriptor()
          Get the description of the bean.
protected  java.beans.BeanDescriptor getCommonBeanDescriptor(java.beans.BeanDescriptor _result)
          Get the common description of the bean.
 java.beans.PropertyDescriptor[] getPropertyDescriptors()
          Each property descriptor has specific values that are get with PropertyDescriptor.getValue().
 
Methods inherited from class java.beans.SimpleBeanInfo
getAdditionalBeanInfo, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors, loadImage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.beans.BeanInfo
getAdditionalBeanInfo, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors
 

Constructor Detail

StringMetaRightImplBeanInfo

public StringMetaRightImplBeanInfo()
Method Detail

getBeanDescriptor

public java.beans.BeanDescriptor getBeanDescriptor()
Get the description of the bean. Specific values are set in the descriptor. They are get with BeanDescriptor.getValue().

Specified by:
getBeanDescriptor in interface java.beans.BeanInfo
Overrides:
getBeanDescriptor in class StringRightImplBeanInfo
Returns:
the bean descriptor

getCommonBeanDescriptor

protected java.beans.BeanDescriptor getCommonBeanDescriptor(java.beans.BeanDescriptor _result)
Get the common description of the bean. Overwrite the StringRightBeanInfo method. Used by subclasses.

Overrides:
getCommonBeanDescriptor in class StringRightImplBeanInfo
Parameters:
_result - is the BeanDescriptor to configure
Returns:
the bean descriptor

getPropertyDescriptors

public java.beans.PropertyDescriptor[] getPropertyDescriptors()
Each property descriptor has specific values that are get with PropertyDescriptor.getValue(). To update a property, there are 3 means, in this order: - if it is not a single value, use the "choiceMethodForNew" value to add one value - or, if it is not a single value, use the "addMethod" value to add one value and "removeMethod", for BaseObjects only, - or, in any cases, use the write method in the property descriptor

Replace the 'isParent', 'isSlave' and 'Comment' properties in the super BeanInfo to remove the set method in them. Replace 'Right' and 'Internal key' to change the display name, Remove the 'ACS', 'TargetClassType', 'isDesactivated' and 'GenericRight' properties. Add the 'InFloatingSubNetwork', 'ACSRights' properties, Move 'NickName', 'TargetClass' and 'isGrantingRight' to have a better look.

Specified by:
getPropertyDescriptors in interface java.beans.BeanInfo
Overrides:
getPropertyDescriptors in class StringRightImplBeanInfo
Returns:
array of property descriptors

getBaseBeanManagerInstance

public BaseBeanManager getBaseBeanManagerInstance()
Get the instance, if it exists, which fires an event when the bean is closed or deleted.

Specified by:
getBaseBeanManagerInstance in interface BeanInfoPattern
Overrides:
getBaseBeanManagerInstance in class StringRightImplBeanInfo
Returns:
null.since metarights cannot be deleted by the user

getBaseBeanManagerGetMethod

public java.lang.reflect.Method getBaseBeanManagerGetMethod()
Get the bean method, without parameters, that allows to get the BaseBeanManager instance, if it exists, which fires an event when the bean instance is closed or deleted. Return null when there is an active BeanInfoPattern.getBaseBeanManagerInstance(), or when it is not applicable.

Specified by:
getBaseBeanManagerGetMethod in interface BeanInfoPattern
Overrides:
getBaseBeanManagerGetMethod in class StringRightImplBeanInfo
Returns:
the get method. Nul there .since metarights cannot be deleted by the user.

getBaseBeanManagerBoundProperty

public java.lang.String getBaseBeanManagerBoundProperty()
Get the property name for which a change fires an PropertyChangeEvent in the BaseBeanManager, when the bean instance is closed or deleted. This is used to register the BeamerManager as a PropertyChangeListener.

Specified by:
getBaseBeanManagerBoundProperty in interface BeanInfoPattern
Overrides:
getBaseBeanManagerBoundProperty in class StringRightImplBeanInfo
Returns:
the property name. Is always null there.