public int getDockActionCount(){ if( hasListeners() ){ if( showing ){ return 1; } else{ return 0; } } else if( isFullscreenEnabled() ){ showing = true; return 1; } else{ showing = false; return 0; } }
public int getDockActionCount(){ if( hasListeners() ){ if( showing ){ return 1; } else{ return 0; } } else if( isFullscreenEnabled() ){ showing = true; return 1; } else{ showing = false; return 0; } }
/** * Checks whether the action should be shown or not, and fires * events if the value changed since the last update. */ public void update(){ boolean enabled = isFullscreenEnabled(); if( showing != enabled ){ showing = enabled; if( showing ){ fireAdded( 0, 0 ); } else{ fireRemoved( 0, 0 ); } } }
/** * Checks whether the action should be shown or not, and fires * events if the value changed since the last update. */ public void update(){ boolean enabled = isFullscreenEnabled(); if( showing != enabled ){ showing = enabled; if( showing ){ fireAdded( 0, 0 ); } else{ fireRemoved( 0, 0 ); } } }