Class PMICheckBoxBeanInfo

All Implemented Interfaces:
BeanInfo

public class PMICheckBoxBeanInfo extends CommonBeanInfo
  • Constructor Details

    • PMICheckBoxBeanInfo

      public PMICheckBoxBeanInfo()
  • Method Details

    • configureTagDropHandler

      protected void configureTagDropHandler(DefaultTagDropHandler handler)
      Description copied from class: CommonBeanInfo

      Subclasses should override this to add custom mappings to the default tag drop handler. By default the only mapping installed is to bind the component's toolTipText property to the tag's Tooltip property.

      Example. Suppose your component has an integer property named "myValue " and when a SQLTag was dropped on your component you want to set up a tag binding for "myValue" to the sqltag's value. You'd configure the tag drop handler like this:

       handler.addBinding(TagProp.Value, "myValue");
       

      Overrides:
      configureTagDropHandler in class CommonBeanInfo
    • initProperties

      protected void initProperties() throws IntrospectionException
      Description copied from class: CommonBeanInfo

      CommonBeanInfo adds common properties, such as:

      • preferredSize (hidden, for serialization)
      • bounds (hidden, for serialization)
      • name
      • componentEnabled if the component is an EnabledEx
      • visible
      • border
      • toolTipText
      • font
      • foreground
      • background
      • opaque

      It is typical to override this function and then call super(). If you want to hide some of these functions, call removeProp with their names. After that you can add your own properties.

      Remember, only properties you add here will be serialized on your component. All properties must have proper getter/setter functions. If you need a property to be serialized but not shown, use the HIDDEN_MASK. If you want to expose a read-only bound property, use HIDDEN_MASK | BOUND_MASK.

      Overrides:
      initProperties in class CommonBeanInfo
      Throws:
      IntrospectionException
      See Also:
    • getIcon

      public Image getIcon(int kind)
      Specified by:
      getIcon in interface BeanInfo
      Overrides:
      getIcon in class DefaultBeanInfo
    • initEventSets

      protected void initEventSets() throws IntrospectionException
      Description copied from class: CommonBeanInfo

      Called to add the event sets that this component will fire and should be handled by user scripting. By default this implementation adds common JComponent events scuh as propertyChange, mouse, and mouseMotion

      To add a new eventSet, call DefaultBeanInfo.addEventSet(Class, String, Class, String) or one of its overloads.

      Overrides:
      initEventSets in class CommonBeanInfo
      Throws:
      IntrospectionException
    • initDesc

      protected void initDesc()
      Description copied from class: DefaultBeanInfo
      Implement this function to initialize the BeanDescriptor. Use DefaultBeanInfo.getBeanDescriptor() to find the bean descriptor and set it's meta props to be appropriate values for this bean.
      Overrides:
      initDesc in class DefaultBeanInfo