public MessageView getCurrentView() { return (MessageView)tabs.getSelectedComponent(); }
public void stateChanged(ChangeEvent evt) { Component comp = tabbedPane.getSelectedComponent(); if (comp == null) return; for (Map.Entry<DeviceView, Component> entry : tabs.entrySet()) { if (entry.getValue().equals(comp)) { presenter.onDeviceViewChanged(entry.getKey()); break; } } } });
@Override public void stateChanged(ChangeEvent e) { if( tabbedPane.getSelectedComponent().equals(mainTab) ){ showGraph.loop(); } else{ showGraph.noLoop(); } } });
private static JSplitPane getCurrentResultView(){ if(tabPane == null) { // Test Results Window is not opened yet return null; } return (JSplitPane)tabPane.getSelectedComponent(); }
/** * @see net.sourceforge.squirrel_sql.client.session.mainpanel.ISQLResultExecuter#getSelectedResultTab() */ public IResultTab getSelectedResultTab() { return (IResultTab)_tabbedExecutionsPanel.getSelectedComponent(); }
private void handleVerifyEditorContents() { if (tabbedPane.getSelectedComponent() == propertySelectorPanel) { for (InputVerificationStatusChangedListener l : listeners){ l.verifiedStatusChanged(true); } } }
protected String getSelectedPanel() { Component c = tabbedPane.getSelectedComponent(); if (c instanceof JScrollPane){ c = ((JScrollPane)c).getViewport().getView(); } for (String tabName : map.keySet()){ if (c.equals(map.get(tabName))){ return tabName; } } return null; }
protected String getSelectedPanel() { Component c = tabbedPane.getSelectedComponent(); if (c instanceof JScrollPane){ c = ((JScrollPane)c).getViewport().getView(); } for (String tabName : map.keySet()){ if (c.equals(map.get(tabName))){ return tabName; } } return null; }
public void stateChanged(ChangeEvent event) { PluginTable table = (PluginTable)tabbedPane.getSelectedComponent(); updateInfoPanel(table.getCurrentUpdateInfo()); } });
public void stateChanged(ChangeEvent e) { Component selectedComponent = _tabbedPane.getSelectedComponent(); if (selectedComponent instanceof AbstractDialogPage) { setCurrentPage((AbstractDialogPage) selectedComponent, _tabbedPane); } } });
protected String getSelectedPanel() { Component c = tabbedPane.getSelectedComponent(); if (c instanceof JScrollPane){ c = ((JScrollPane)c).getViewport().getView(); } for (String tabName : map.keySet()){ if (c.equals(map.get(tabName))){ return tabName; } } return null; }
Utils.invokeLater(new Runnable() { @Override public void run() { final Component c = tabs.getSelectedComponent(); if (c instanceof RollingPanel) { ((RollingPanel)c).updateList(); } }}); }
public void copy() { Clipboard clipBoard = Toolkit.getDefaultToolkit().getSystemClipboard(); VectorGraphicsTransferable transferable = new VectorGraphicsTransferable( multiPanel == null ? singlePanel : multiPanel .getSelectedComponent()); clipBoard.setContents(transferable, transferable); }
@Override public void stateChanged (ChangeEvent event) { if (tabbedPane.getSelectedComponent() instanceof ILauncherPane) { ((ILauncherPane) tabbedPane.getSelectedComponent()).onVisible(); // When called by swapTabs currentPane will be THIRDPARTY until this ActionListener is called again currentPane = Panes.values()[tabbedPane.getSelectedIndex()]; updateFooter(); } } });
private boolean isValid(){ if (tabbedPane != null && tabbedPane.getSelectedComponent().equals(classSelectorPanel)) { return classSelectorPanel.getSelectedObject() != null; } else{ return expressionEditor.isWellFormed(); } }
@Nullable public Set<OWLObjectPropertyExpression> getEditedObject() { if (tabbedPane.getSelectedComponent() == propertySelectorPanel) { return (Set) propertySelectorPanel.getSelectedObjects(); } else { return descriptionEditor.getEditedObject(); } }
private boolean isValid(){ if (tabbedPane != null && tabbedPane.getSelectedComponent().equals(classSelectorPanel)) { return classSelectorPanel.getSelectedObject() != null; } else{ return expressionEditor.isWellFormed(); } }
public synchronized void closeAllButCurrentResultTabs() { Component selectedTab = _tabbedExecutionsPanel.getSelectedComponent(); ArrayList<Component> allTabs = getAllTabs(); for (Component tab : allTabs) { if(tab != selectedTab) { closeTab(tab); } } }
private static ManagementModelNode findSelectedNode(CliGuiContext cliGuiCtx) { Component selectedComponent = cliGuiCtx.getTabs().getSelectedComponent(); if (selectedComponent == null) return null; if (!(selectedComponent instanceof ManagementModel)) return null; return ((ManagementModel)selectedComponent).getSelectedNode(); }
/** Repaint the given Rectangle in all Displays showing the layer, optionally updating the offscreen image (if any). */ static public void repaint(final Layer layer, final Rectangle r, final int extra, final boolean update_graphics) { if (repaint_disabled) return; for (final Display d : al_displays) { if (layer == d.layer) { d.canvas.setUpdateGraphics(update_graphics); d.canvas.repaint(r, extra); d.navigator.repaint(update_graphics); if (update_graphics) Utils.updateComponent(d.tabs.getSelectedComponent()); } } }