コード例 #1
0
 public boolean isSelected() {
   final NavBarModel model = myPanel.getModel();
   return isPopupElement
       ? myPanel.isSelectedInPopup(myObject)
       : model.getSelectedIndex() == myIndex;
 }
コード例 #2
0
 public boolean isInactive() {
   final NavBarModel model = myPanel.getModel();
   return model.getSelectedIndex() < myIndex && model.getSelectedIndex() != -1;
 }