/** * Adds a connection between the {@link ThemeManager} and the model of this handler which transfers * the {@link BorderModifier} with identifier <code>key</code> to the model. Nothing happens if such a * connection already exists. * @param key the identifier of the {@link BorderModifier} to transfer */ public void addBorder( String key ){ if( borders.get( key ) == null ){ BorderHandle handle = new BorderHandle( key ); borders.put( key, handle ); if( bound ){ handle.setController( dockable.getController() ); } } }
/** * Adds a connection between the {@link ThemeManager} and the model of this handler which transfers * the {@link BorderModifier} with identifier <code>key</code> to the model. Nothing happens if such a * connection already exists. * @param key the identifier of the {@link BorderModifier} to transfer */ public void addBorder( String key ){ if( borders.get( key ) == null ){ BorderHandle handle = new BorderHandle( key ); borders.put( key, handle ); if( bound ){ handle.setController( dockable.getController() ); } } }
public void unbind(){ if( bound ){ bound = false; background.setController( null ); for( BorderHandle handle : borders.values() ){ handle.setController( null ); } model.setController( null ); } }
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 unbind(){ if( bound ){ bound = false; background.setController( null ); for( BorderHandle handle : borders.values() ){ handle.setController( null ); } model.setController( null ); } }
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 ); } }