public void addListeners ( ) { // If there is a header record and there is a bookmark associated with it, make it current! super . addListeners ( ) ; if ( this . getMainRecord ( ) != null ) this . getMainRecord ( ) . addScreenListeners ( this ) ; // Add the basic listeners to this record that belong on screen(s). if ( this . getMainRecord ( ) != null ) if ( DBConstants . TRUE . equalsIgnoreCase ( this . getMainRecord ( ) . getTable ( ) . getDatabase ( ) . getProperty ( DBConstants . READ_ONLY_DB ) ) ) this . setEditing ( false ) ; // Don't allow changes to read-only tables }
Override this to add behaviors .