@Override public void componentRemoved(ContainerEvent e) { registerKeyAction(e.getChild()); }
public void componentRemoved(ContainerEvent e) { JTabbedPane tp= (JTabbedPane) e.getContainer(); Component child= e.getChild(); if (child instanceof UIResource) { return; } int index= tp.indexOfComponent(child); if (htmlViews != null && htmlViews.size() >= index) { htmlViews.removeElementAt(index); } } }
public void componentAdded(ContainerEvent e) { Container c = (Container) e.getSource(); boolean isEditorToolbar = "editorToolbar".equals (c.getName()); installButtonUI (e.getChild(), isEditorToolbar); if (isEditorToolbar) { //It's an editor toolbar. Aqua's combo box ui paints outside //of its literal component bounds, and doesn't honor opacity. //Need to ensure the toolbar is tall enough that its border is //not hidden. Dimension min = new Dimension (32, 34); ((JComponent)e.getContainer()).setPreferredSize(min); } }
public void eventDispatched(AWTEvent event) { if (!isMissSupportGlyph || !(event instanceof ComponentEvent) || !(event instanceof ContainerEvent)) return; if (event instanceof ContainerEvent){ ContainerEvent containerEvent = (ContainerEvent)event; if (containerEvent.getID() == ContainerEvent.COMPONENT_ADDED){ updateChildControlFont(containerEvent.getChild()); } } }
@Override public void componentRemoved(ContainerEvent e) { register((Container)e.getComponent(), false); }
protected void checkMenuBar( ContainerEvent e ) { final JMenuBar mb = (JMenuBar) e.getContainer(); if( mb.getMenuCount() == 0 ) { if( getJMenuBar() == mb ) { super.setJMenuBar( null ); } } else { if( getJMenuBar() == null ) { super.setJMenuBar( mb ); } } final JRootPane rp = getRootPane(); rp.revalidate(); rp.repaint(); } }
public void componentRemoved(ContainerEvent e) { JTabbedPane tp = (JTabbedPane) e.getContainer(); Component child = e.getChild(); if (child instanceof UIResource) { return; } // NOTE 4/15/2002 (joutwate): // This fix is implemented using client properties since there is // currently no IndexPropertyChangeEvent. Once // IndexPropertyChangeEvents have been added this code should be // modified to use it. Integer indexObj = (Integer) tp.getClientProperty("__index_to_remove__"); if (indexObj != null) { int index = indexObj.intValue(); if (htmlViews != null && htmlViews.size() >= index) { htmlViews.remove(index); } } } }
@Override public void componentAdded(ContainerEvent e) { listenTo(e.getComponent()); }
@Override public void componentAdded(ContainerEvent e) { registerKeyAction(e.getChild()); }
public void componentAdded(ContainerEvent e) JTabbedPane tp= (JTabbedPane) e.getContainer(); Component child= e.getChild(); if (child instanceof UIResource)
@Override public void componentAdded(ContainerEvent e) { listenTo(e.getComponent()); }
@Override public void componentAdded(ContainerEvent e) { Component child = e.getChild(); // if (child instanceof JBTable) { // myEmptyText = ((ComponentWithEmptyText)child).getEmptyText(); // myEmptyText.attachTo(JBViewport.this, child); // } }
public void componentAdded(ContainerEvent e) { JTabbedPane tp = (JTabbedPane) e.getContainer(); TabbedPaneLayout layout = (TabbedPaneLayout) tp.getLayout(); layout.layoutContainer(tp); Component child = e.getChild(); if (child instanceof UIResource) { return; } int index = tp.indexOfComponent(child); String title = tp.getTitleAt(index); boolean isHTML = BasicHTML.isHTMLString(title); if (isHTML) { if (htmlViews == null) { // Initialize vector htmlViews = createHTMLViewList(); } else { // Vector already exists View v = BasicHTML.createHTMLView(tp, title); htmlViews.add(index, v); } } else { // Not HTML if (htmlViews != null) { // Add placeholder htmlViews.add(index, null); } // else nada! } }
@Override public void componentAdded(ContainerEvent e) { if (isUsingTitlePane()) return; Component added = e.getComponent(); if (added != applicationMenuButton) { ribbon.setComponentZOrder(applicationMenuButton, ribbon .getComponentCount() - 1); } } };
@Override public void componentRemoved(ContainerEvent e) { Component child = e.getChild(); // if (child instanceof JBTable) { // ((ComponentWithEmptyText)child).getEmptyText().attachTo(child); // myEmptyText = null; // } } });
public void componentRemoved(final ContainerEvent _e) { final BCalque c = (BCalque) _e.getChild(); if (mustListen_) { if (c.isGroupeCalque()) { removeGroupeCalque((BGroupeCalque) c); } else { c.removePropertyChangeListener(this); } } final BCalque parent = (BCalque) _e.getContainer(); if (parent != null) { /* final Integer integer = ((Integer) c.getClientProperty("oldIndice")); if (integer == null) { */ refresh(); /* } else { fireTreeModelEventRemoved(new TreeModelEvent(this, new TreePath(getPath(parent)), new int[] { integer .intValue() }, new Object[] { c })); } */ setSelectionCalque(parent); } fireObservableChanged("removed"); }
@Override public void componentRemoved(ContainerEvent event) { List<GraphCanvas> graphCanvases = engine.getGUI().getGraphCanvases(); for (GraphCanvas graphCanvas : graphCanvases) { if (graphCanvas.getSwingComponent() == event.getComponent()) { if (graphCanvas.isWorkflowChanged()) { setFocus(graphCanvas); if (JOptionPane.showConfirmDialog(null, "The workflow '" + graphCanvas.getWorkflow().getName() + "' has been modified. Save changes?", "Save Workflow", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) { graphFiler.saveWorkflow(graphCanvas); } } break; } } }
@Override public void componentRemoved(ContainerEvent e) { Component cmpt = e.getChild(); } });