/** * Sets the model to which all properties of the {@link #getAction() action} * are transferred. * @param model the model */ public void setModel( M model ) { this.model = model; for( BorderHandle handle : borders.values() ){ if( handle.modifier != null ){ model.setBorder( handle.id, handle.modifier ); } } if( bound ){ model.setController( dockable.getController() ); } }
/** * Sets the model to which all properties of the {@link #getAction() action} * are transfered. * @param model the model */ public void setModel( M model ) { this.model = model; for( BorderHandle handle : borders.values() ){ if( handle.modifier != null ){ model.setBorder( handle.id, handle.modifier ); } } if( bound ){ model.setController( dockable.getController() ); } }