public void unbind(){ if( bound ){ bound = false; background.setController( null ); for( BorderHandle handle : borders.values() ){ handle.setController( null ); } model.setController( null ); } }
public void unbind(){ if( bound ){ bound = false; background.setController( null ); for( BorderHandle handle : borders.values() ){ handle.setController( null ); } model.setController( null ); } }
/** * 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() ); } }
public void bind(){ if( !bound ){ bound = true; DockController controller = dockable.getController(); background.setController( controller ); for( BorderHandle handle : borders.values() ){ handle.setController( controller ); } model.setController( controller ); } }
public void bind(){ if( !bound ){ bound = true; DockController controller = dockable.getController(); background.setController( controller ); for( BorderHandle handle : borders.values() ){ handle.setController( controller ); } model.setController( controller ); } }