public void setDockableRepresentation( Dockable dockable ){ if( isBound() ){ getModel().setDockableRepresentative( dockable ); } } }
private void ensureDropDownIcon(){ if( dropDownIcon == null ){ dropDownIcon = new DropDownIcon(); if( isBound() ){ dropDownIcon.init( getDockable(), getAction(), this ); dropDownIcon.setController( getDockable().getController() ); } } }
@Override protected void valueChanged( ButtonContentFilter oldValue, ButtonContentFilter newValue ){ if( isBound() ){ if( oldValue != null ){ oldValue.removeListener( buttonContentFilterListener ); oldValue.uninstall( getDockable(), getAction() ); } if( newValue != null ){ newValue.addListener( buttonContentFilterListener ); newValue.install( getDockable(), getAction() ); } } buttonView.updateText(); } };