use of org.cytoscape.browser.internal.view.BrowserTable in project cytoscape-impl by cytoscape.
the class ClearErrorsEdit method getBrowserTable.
public static BrowserTable getBrowserTable(final CyTable table, final CyServiceRegistrar serviceRegistrar) {
final CySwingApplication swingAppManager = serviceRegistrar.getService(CySwingApplication.class);
final CytoPanel cytoPanel = swingAppManager.getCytoPanel(CytoPanelName.SOUTH);
if (cytoPanel != null) {
final int count = cytoPanel.getCytoPanelComponentCount();
for (int i = 0; i < count; i++) {
final Component c = cytoPanel.getComponentAt(i);
if (c instanceof AbstractTableBrowser) {
final AbstractTableBrowser tableBrowser = (AbstractTableBrowser) c;
final BrowserTable browserTable = tableBrowser.getBrowserTable(table);
if (browserTable != null)
return browserTable;
}
}
}
return null;
}
use of org.cytoscape.browser.internal.view.BrowserTable in project cytoscape-impl by cytoscape.
the class SetColumnFormatTask method getBrowserTable.
public static BrowserTable getBrowserTable(final CyTable table, final CyServiceRegistrar serviceRegistrar) {
final CySwingApplication swingAppManager = serviceRegistrar.getService(CySwingApplication.class);
final CytoPanel cytoPanel = swingAppManager.getCytoPanel(CytoPanelName.SOUTH);
if (cytoPanel != null) {
final int count = cytoPanel.getCytoPanelComponentCount();
for (int i = 0; i < count; i++) {
final Component c = cytoPanel.getComponentAt(i);
if (c instanceof AbstractTableBrowser) {
final AbstractTableBrowser tableBrowser = (AbstractTableBrowser) c;
final BrowserTable browserTable = tableBrowser.getBrowserTable(table);
if (browserTable != null)
return browserTable;
}
}
}
return null;
}
Aggregations