/** * Removes a font from this title. * @param font the font to remove */ protected void removeFont( AbstractDockFont font ){ fonts.remove( font ); font.connect( null ); }
/** * Removes a font from this title. * @param font the font to remove */ protected void removeFont( AbstractDockFont font ){ fonts.remove( font ); font.connect( null ); }
/** * Adds a font to the list of fonts, this title will ensure that * <code>font</code> gets connected to a {@link FontManager} as soon * as this title is bound. * @param font the new font */ protected void addFont( AbstractDockFont font ){ fonts.add( font ); if( bound ){ font.connect( getDockable().getController() ); } }
/** * Adds a font to the list of fonts, this title will ensure that * <code>font</code> gets connected to a {@link FontManager} as soon * as this title is bound. * @param font the new font */ protected void addFont( AbstractDockFont font ){ fonts.add( font ); if( bound ){ font.connect( getDockable().getController() ); } }
public void unbind() { if( !bound ) throw new IllegalArgumentException( "Do not call unbind twice" ); bound = false; dockable.removeDockableListener( listener ); rootHandler.setController( null ); for( AbstractDockColor color : colors ) color.connect( null ); for( AbstractDockFont font : fonts ) font.connect( null ); orientationConverter.setProperties( (DockProperties)null ); if( border != null ){ border.setController( null ); } setText( "" ); setIcon( null ); setTooltip( null ); background.setController( null ); }
public void unbind() { if( !bound ) throw new IllegalArgumentException( "Do not call unbind twice" ); bound = false; dockable.removeDockableListener( listener ); rootHandler.setController( null ); for( AbstractDockColor color : colors ) color.connect( null ); for( AbstractDockFont font : fonts ) font.connect( null ); orientationConverter.setProperties( (DockProperties)null ); if( border != null ){ border.setController( null ); } setText( "" ); setIcon( null ); setTooltip( null ); background.setController( null ); }
font.connect( controller );
font.connect( controller );