java.awt.event.ContainerListener Java Examples
The following examples show how to use
java.awt.event.ContainerListener.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ContainerOperator.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Maps {@code Container.addContainerListener(ContainerListener)} * through queue */ public void addContainerListener(final ContainerListener containerListener) { runMapping(new MapVoidAction("addContainerListener") { @Override public void map() { ((Container) getSource()).addContainerListener(containerListener); } }); }
Example #2
Source File: ContainerOperator.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Maps {@code Container.removeContainerListener(ContainerListener)} * through queue */ public void removeContainerListener(final ContainerListener containerListener) { runMapping(new MapVoidAction("removeContainerListener") { @Override public void map() { ((Container) getSource()).removeContainerListener(containerListener); } }); }
Example #3
Source File: AnimatedLayout.java From pumpernickel with MIT License | 5 votes |
@Override protected void uninstall(JComponent parent) { super.uninstall(parent); ContainerListener l = (ContainerListener) parent .getClientProperty(PROPERTY_CONTAINER_LISTENER); parent.putClientProperty(PROPERTY_CONTAINER_LISTENER, null); parent.removeContainerListener(l); for (Component c : parent.getComponents()) { ((JComponent) c).putClientProperty( "animatedLayout.propertyListener", null); ((JComponent) c).removePropertyChangeListener( PROPERTY_DESTINATION, destinationListener); } }
Example #4
Source File: MnemonicContainerListener.java From consulo with Apache License 2.0 | 5 votes |
private boolean isAddedTo(Container container) { for (ContainerListener listener : container.getContainerListeners()) { if (listener == this) { return true; } } return false; }
Example #5
Source File: BasicLizziePaneUI.java From lizzie with GNU General Public License v3.0 | 4 votes |
protected ContainerListener createLizziePaneContListener() { return getHandler(); }
Example #6
Source File: RendererFactory.java From netbeans with Apache License 2.0 | 4 votes |
/** Overridden to do nothing */ public void addContainerListener(ContainerListener cl) { }
Example #7
Source File: RendererFactory.java From netbeans with Apache License 2.0 | 4 votes |
/** Overridden to do nothing */ public void addContainerListener(ContainerListener cl) { }
Example #8
Source File: AbstractTabCellRenderer.java From netbeans with Apache License 2.0 | 4 votes |
/** Overridden to be a no-op for performance reasons */ @Override public final void addContainerListener(ContainerListener cl) { //do nothing }
Example #9
Source File: BasicOutlookBarUI.java From CodenameOne with GNU General Public License v2.0 | 4 votes |
protected ContainerListener createTabListener() { return new ContainerTabHandler(); }
Example #10
Source File: BEToolBarUI.java From beautyeye with Apache License 2.0 | 2 votes |
/** * 重写父类方法实现自已的容器监听器. * 自定义的目的就是为了把加入到其中的组件设置为透明,因为BE LNF的工具栏是有背景,否则 * 因有子组件的背景存在而使得整体很难看. * * @return the container listener */ @Override protected ContainerListener createToolBarContListener( ) { return new ToolBarContListenerJb2011(); }