private void updateTabContext(int index,boolean selected,boolean isMouseDown,boolean isMouseOver,boolean hasFocus){
  int state=0;
  if (!tabPane.isEnabled() || !tabPane.isEnabledAt(index)) {
    state|=SynthConstants.DISABLED;
    if (selected) {
      state|=SynthConstants.SELECTED;
    }
  }
 else   if (selected) {
    state|=(SynthConstants.ENABLED | SynthConstants.SELECTED);
    if (isMouseOver && UIManager.getBoolean("TabbedPane.isTabRollover")) {
      state|=SynthConstants.MOUSE_OVER;
    }
  }
 else   if (isMouseOver) {
    state|=(SynthConstants.ENABLED | SynthConstants.MOUSE_OVER);
  }
 else {
    state=SeaGlassLookAndFeel.getComponentState(tabPane);
    state&=~SynthConstants.FOCUSED;
  }
  if (hasFocus && tabPane.hasFocus()) {
    state|=SynthConstants.FOCUSED;
  }
  if (isMouseDown) {
    state|=SynthConstants.PRESSED;
  }
  tabContext.setComponentState(state);
}

private void updateTabContext ( int index , boolean selected , boolean isMouseDown , boolean isMouseOver , boolean hasFocus ) { int state = 0 ; if ( ! tabPane . isEnabled ( ) || ! tabPane . isEnabledAt ( index ) ) { state |= SynthConstants . DISABLED ; if ( selected ) { state |= SynthConstants . SELECTED ; } } else if ( selected ) { state |= ( SynthConstants . ENABLED | SynthConstants . SELECTED ) ; if ( isMouseOver && UIManager . getBoolean ( "TabbedPane.isTabRollover" ) ) { state |= SynthConstants . MOUSE_OVER ; } } else if ( isMouseOver ) { state |= ( SynthConstants . ENABLED | SynthConstants . MOUSE_OVER ) ; } else { state = SeaGlassLookAndFeel . getComponentState ( tabPane ) ; state &= ~ SynthConstants . FOCUSED ; } if ( hasFocus && tabPane . hasFocus ( ) ) { state |= SynthConstants . FOCUSED ; } if ( isMouseDown ) { state |= SynthConstants . PRESSED ; } tabContext . setComponentState ( state ) ; }
update the synthcontext for the tab area for a specified tab .
