@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(); } };
public void setText( String text ){ this.text = text; updateText(); }
public void showTextChanged( ButtonContentFilter filter, Dockable dockable, DockAction action ){ if( (action == null || action == getAction()) && (dockable == null || dockable == getDockable())){ buttonView.updateText(); } } };