A script-enabled browser is required for this page to function properly.

Registering a Custom Encoder

Custom encoders for data types and events are only used if they are explicitly registered at runtime. This process currently has to be carried out by the JavaBean itself, so you may need to subclass the JavaBean and carry out this step in the constructor of the JavaBean subclass.

To register an encoder:

  1. Import the class oracle.forms.ui.BeanManager in your JavaBean source file.
  2. Call the static method BeanManager.RegisterEncoder(), passing in an instance of your encoder as an argument. For example:
    	
    ...
    import oracle.forms.ui.BeanManager;
    ...
    public class myCalculator extends Calculator
      {  
         public myCalcualtor(int x, int y)
         {
            super();
            BeanManager.registerEncoder(new mypackage.FractionEncoder());
            // do other stuff here
    	    ...
    

Writing a Custom Data Type Encoder

Writing a Custom Event Encoder