use of org.cytoscape.application.swing.events.CytoPanelComponentSelectedEvent in project cytoscape-impl by cytoscape.
the class CytoPanelImpl method notifyListeners.
private void notifyListeners(int notificationType) {
final CyEventHelper eventHelper = serviceRegistrar.getService(CyEventHelper.class);
// determine what event to fire
switch(notificationType) {
case NOTIFICATION_STATE_CHANGE:
eventHelper.fireEvent(new CytoPanelStateChangedEvent(this, this, cytoPanelState));
break;
case NOTIFICATION_COMPONENT_SELECTED:
int selectedIndex = getTabbedPane().getSelectedIndex();
eventHelper.fireEvent(new CytoPanelComponentSelectedEvent(this, this, selectedIndex));
break;
case NOTIFICATION_COMPONENT_ADDED:
break;
case NOTIFICATION_COMPONENT_REMOVED:
break;
}
}
Aggregations