@Override public void componentRemoved(ContainerEvent e) { registerKeyAction(e.getChild()); }
@Override public void componentAdded(ContainerEvent e) { registerKeyAction(e.getChild()); }
@Override public void componentAdded(ContainerEvent e) { Component child = e.getChild(); // if (child instanceof JBTable) { // myEmptyText = ((ComponentWithEmptyText)child).getEmptyText(); // myEmptyText.attachTo(JBViewport.this, child); // } }
@Override public void componentRemoved(ContainerEvent e) { Component child = e.getChild(); // if (child instanceof JBTable) { // ((ComponentWithEmptyText)child).getEmptyText().attachTo(child); // myEmptyText = null; // } } });
public void componentRemoved( ContainerEvent e ) { if( DEBUG ) System.out.println( "componentRemoved from " +e.getContainer().getClass().getName() + "(" + e.getContainer().hashCode() + ") : " + e.getChild().getClass().getName() + "(" + e.getChild().hashCode() + ") "); removeComponent( e.getChild() ); }
@Override public void componentRemoved( final ContainerEvent e ) { detachFrom( e.getChild() ); }
public void componentRemoved(ContainerEvent e) { Component c = e.getChild(); if (c instanceof AbstractButton) { restoreButtonBorder((AbstractButton) c); } } }
public void eventDispatched(AWTEvent e) { if (e.getID() == ContainerEvent.COMPONENT_ADDED && SwingUtilities.isDescendingFrom(((ContainerEvent)e).getChild(), this)) { Component child = ((ContainerEvent)e).getChild(); NativeWindowUtils.this.setDoubleBuffered(child, false); } } public void paint(Graphics gr) {
public void componentAdded (@Nonnull final ContainerEvent event) { final Component child = (Component)event.getChild(); if (isAvailabilityCheckbox(child)) { availabilityCheckboxes.add((JCheckBox)child); } else if (child instanceof Container) { ((Container)child).addContainerListener(availabilityCheckBoxTracker); } }
public void componentAdded(ContainerEvent e) { Component c= e.getChild(); if (c instanceof JMenu) ((JMenu) c).getModel().addChangeListener(changeListener); } public void componentRemoved(ContainerEvent e)
public void componentRemoved(ContainerEvent e) { Component c= e.getChild(); if (toolBarFocusListener != null) { c.removeFocusListener(toolBarFocusListener); } // Revert the button border setBorderToNormal(c); }
public void componentRemoved(ContainerEvent e) { JComponent c = (JComponent) e.getChild(); if (c instanceof JButton || c instanceof JToggleButton) { ((AbstractButton) c).setUI((ButtonUI) UIManager.getUI(c)); } } }
@Override public void componentRemoved(ContainerEvent e) { // same for add and remove Component comp = e.getChild(); if (comp instanceof FormComponent) { // tell child that next invocation of getParentWindow() should walk up the tree again ((FormComponent)comp).invalidateParentInfo(); } else { FormUtilities.getInstance().invalidateParentInfo(comp); } }
@Override public void componentAdded(ContainerEvent evt) { Component c = evt.getChild(); if (toolBarFocusListener != null) { c.addFocusListener(toolBarFocusListener); } if (isRolloverBorders()) { setBorderToRollover(c); } else { setBorderToNonRollover(c); } }