boolean setParentNodeReference ( N newParent , boolean fireEvent ) { final N oldParent = getParentNode ( ) ; if ( newParent == oldParent ) { return false ; } this . parent = ( newParent == null ) ? null : new WeakReference <> ( newParent ) ; if ( ! fireEvent ) { return true ; } firePropertyParentChanged ( oldParent , newParent ) ; if ( oldParent != null ) { oldParent . firePropertyParentChanged ( toN ( ) , oldParent , newParent ) ; } return false ; }
Set the reference to the parent node .