code: public static void setSelectedUI(ComponentUI uix, boolean selected, boolean focused, boolean enabled, boolean rollover) {
          selectedUI      = uix;
          selectedUIState = 0;
  
          if (selected) {
              selectedUIState = SynthConstants.SELECTED;
  
              if (focused) {
                  selectedUIState |= SynthConstants.FOCUSED;
              }
          } else if (rollover && enabled) {
              selectedUIState |= SynthConstants.MOUSE_OVER | SynthConstants.ENABLED;
  
              if (focused) {
                  selectedUIState |= SynthConstants.FOCUSED;
              }
          } else {
  
              if (enabled) {
                  selectedUIState |= SynthConstants.ENABLED;
                  selectedUIState = SynthConstants.FOCUSED;
              } else {
                  selectedUIState |= SynthConstants.DISABLED;
              }
          }
      }
docs: Used by the renderers. For the most part the renderers are implemented as
  Labels, which is problematic in so far as they are never selected. To
  accomodate this SeaGlassLabelUI checks if the current UI matches that of
  <code>selectedUI</code> (which this methods sets), if it does, then a
  state as set by this method is set in the field {@code selectedUIState}.
  This provides a way for labels to have a state other than selected.
  
  @param uix      a UI delegate.
  @param selected is the component selected?
  @param focused  is the component focused?
  @param enabled  is the component enabled?
  @param rollover is the component's rollover state enabled?