public void init ( RecordOwnerParent parent , Rec record , Map < String , Object > properties ) { ScreenLocation itsLocation = null ; Converter fieldConverter = null ; int iDisplayFieldDesc = ScreenConstants . DEFAULT_DISPLAY ; if ( properties != null ) { if ( properties . get ( ScreenModel . LOCATION ) instanceof ScreenLocation ) itsLocation = ( ScreenLocation ) properties . get ( ScreenModel . LOCATION ) ; else { try { if ( properties . get ( ScreenModel . LOCATION ) instanceof Short ) itsLocation = new ScreenLocation ( ( ( Short ) properties . get ( ScreenModel . DISPLAY ) ) . shortValue ( ) , ScreenConstants . ANCHOR_DEFAULT ) ; else if ( properties . get ( ScreenModel . LOCATION ) instanceof Integer ) itsLocation = new ScreenLocation ( ( ( Integer ) properties . get ( ScreenModel . DISPLAY ) ) . shortValue ( ) , ScreenConstants . ANCHOR_DEFAULT ) ; else if ( properties . get ( ScreenModel . LOCATION ) != null ) itsLocation = new ScreenLocation ( Short . parseShort ( properties . get ( ScreenModel . LOCATION ) . toString ( ) ) , ScreenConstants . ANCHOR_DEFAULT ) ; } catch ( Exception ex ) { } } if ( properties . get ( ScreenModel . DISPLAY ) instanceof Short ) iDisplayFieldDesc = ( ( Short ) properties . get ( ScreenModel . DISPLAY ) ) . intValue ( ) ; if ( properties . get ( ScreenModel . DISPLAY ) instanceof Integer ) iDisplayFieldDesc = ( ( Integer ) properties . get ( ScreenModel . DISPLAY ) ) . intValue ( ) ; else { try { if ( properties . get ( ScreenModel . DISPLAY ) != null ) iDisplayFieldDesc = Integer . parseInt ( properties . get ( ScreenModel . DISPLAY ) . toString ( ) ) ; } catch ( Exception ex ) { } } } properties . remove ( ScreenModel . DISPLAY ) ; properties . remove ( ScreenModel . LOCATION ) ; this . init ( ( Record ) record , itsLocation , ( BasePanel ) parent , fieldConverter , iDisplayFieldDesc , properties ) ; }
This is the new constructor list . This initializer is required by the RecordOwner interface .