Java Code Examples for java.awt.Container#isDisplayable()
The following examples show how to use
java.awt.Container#isDisplayable() .
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: SortingFocusTraversalPolicy.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
private void enumerateCycle(Container container, List<Component> cycle) { if (!(container.isVisible() && container.isDisplayable())) { return; } cycle.add(container); Component[] components = container.getComponents(); for (Component comp : components) { if (comp instanceof Container) { Container cont = (Container)comp; if (!cont.isFocusCycleRoot() && !cont.isFocusTraversalPolicyProvider() && !((cont instanceof JComponent) && ((JComponent)cont).isManagingFocus())) { enumerateCycle(cont, cycle); continue; } } cycle.add(comp); } }
Example 2
Source File: SortingFocusTraversalPolicy.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
private void enumerateCycle(Container container, List<Component> cycle) { if (!(container.isVisible() && container.isDisplayable())) { return; } cycle.add(container); Component[] components = container.getComponents(); for (Component comp : components) { if (comp instanceof Container) { Container cont = (Container)comp; if (!cont.isFocusCycleRoot() && !cont.isFocusTraversalPolicyProvider() && !((cont instanceof JComponent) && ((JComponent)cont).isManagingFocus())) { enumerateCycle(cont, cycle); continue; } } cycle.add(comp); } }
Example 3
Source File: SortingFocusTraversalPolicy.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
private void enumerateCycle(Container container, List<Component> cycle) { if (!(container.isVisible() && container.isDisplayable())) { return; } cycle.add(container); Component[] components = container.getComponents(); for (Component comp : components) { if (comp instanceof Container) { Container cont = (Container)comp; if (!cont.isFocusCycleRoot() && !cont.isFocusTraversalPolicyProvider() && !((cont instanceof JComponent) && ((JComponent)cont).isManagingFocus())) { enumerateCycle(cont, cycle); continue; } } cycle.add(comp); } }
Example 4
Source File: SortingFocusTraversalPolicy.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
private void enumerateCycle(Container container, List<Component> cycle) { if (!(container.isVisible() && container.isDisplayable())) { return; } cycle.add(container); Component[] components = container.getComponents(); for (Component comp : components) { if (comp instanceof Container) { Container cont = (Container)comp; if (!cont.isFocusCycleRoot() && !cont.isFocusTraversalPolicyProvider() && !((cont instanceof JComponent) && ((JComponent)cont).isManagingFocus())) { enumerateCycle(cont, cycle); continue; } } cycle.add(comp); } }
Example 5
Source File: SortingFocusTraversalPolicy.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
private void enumerateCycle(Container container, List<Component> cycle) { if (!(container.isVisible() && container.isDisplayable())) { return; } cycle.add(container); Component[] components = container.getComponents(); for (Component comp : components) { if (comp instanceof Container) { Container cont = (Container)comp; if (!cont.isFocusCycleRoot() && !cont.isFocusTraversalPolicyProvider() && !((cont instanceof JComponent) && ((JComponent)cont).isManagingFocus())) { enumerateCycle(cont, cycle); continue; } } cycle.add(comp); } }
Example 6
Source File: SortingFocusTraversalPolicy.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
private void enumerateCycle(Container container, List<Component> cycle) { if (!(container.isVisible() && container.isDisplayable())) { return; } cycle.add(container); Component[] components = container.getComponents(); for (Component comp : components) { if (comp instanceof Container) { Container cont = (Container)comp; if (!cont.isFocusCycleRoot() && !cont.isFocusTraversalPolicyProvider() && !((cont instanceof JComponent) && ((JComponent)cont).isManagingFocus())) { enumerateCycle(cont, cycle); continue; } } cycle.add(comp); } }
Example 7
Source File: SortingFocusTraversalPolicy.java From hottub with GNU General Public License v2.0 | 6 votes |
private void enumerateCycle(Container container, List<Component> cycle) { if (!(container.isVisible() && container.isDisplayable())) { return; } cycle.add(container); Component[] components = container.getComponents(); for (Component comp : components) { if (comp instanceof Container) { Container cont = (Container)comp; if (!cont.isFocusCycleRoot() && !cont.isFocusTraversalPolicyProvider() && !((cont instanceof JComponent) && ((JComponent)cont).isManagingFocus())) { enumerateCycle(cont, cycle); continue; } } cycle.add(comp); } }
Example 8
Source File: SortingFocusTraversalPolicy.java From Java8CN with Apache License 2.0 | 6 votes |
private void enumerateCycle(Container container, List<Component> cycle) { if (!(container.isVisible() && container.isDisplayable())) { return; } cycle.add(container); Component[] components = container.getComponents(); for (Component comp : components) { if (comp instanceof Container) { Container cont = (Container)comp; if (!cont.isFocusCycleRoot() && !cont.isFocusTraversalPolicyProvider() && !((cont instanceof JComponent) && ((JComponent)cont).isManagingFocus())) { enumerateCycle(cont, cycle); continue; } } cycle.add(comp); } }
Example 9
Source File: SortingFocusTraversalPolicy.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
private void enumerateCycle(Container container, List<Component> cycle) { if (!(container.isVisible() && container.isDisplayable())) { return; } cycle.add(container); Component[] components = container.getComponents(); for (Component comp : components) { if (comp instanceof Container) { Container cont = (Container)comp; if (!cont.isFocusCycleRoot() && !cont.isFocusTraversalPolicyProvider() && !((cont instanceof JComponent) && ((JComponent)cont).isManagingFocus())) { enumerateCycle(cont, cycle); continue; } } cycle.add(comp); } }
Example 10
Source File: SortingFocusTraversalPolicy.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
@SuppressWarnings("deprecation") private void enumerateCycle(Container container, List<Component> cycle) { if (!(container.isVisible() && container.isDisplayable())) { return; } cycle.add(container); Component[] components = container.getComponents(); for (Component comp : components) { if (comp instanceof Container) { Container cont = (Container)comp; if (!cont.isFocusCycleRoot() && !cont.isFocusTraversalPolicyProvider() && !((cont instanceof JComponent) && ((JComponent)cont).isManagingFocus())) { enumerateCycle(cont, cycle); continue; } } cycle.add(comp); } }
Example 11
Source File: SortingFocusTraversalPolicy.java From Bytecoder with Apache License 2.0 | 6 votes |
@SuppressWarnings("deprecation") private void enumerateCycle(Container container, List<Component> cycle) { if (!(container.isVisible() && container.isDisplayable())) { return; } cycle.add(container); Component[] components = container.getComponents(); for (Component comp : components) { if (comp instanceof Container) { Container cont = (Container)comp; if (!cont.isFocusCycleRoot() && !cont.isFocusTraversalPolicyProvider() && !((cont instanceof JComponent) && ((JComponent)cont).isManagingFocus())) { enumerateCycle(cont, cycle); continue; } } cycle.add(comp); } }
Example 12
Source File: SortingFocusTraversalPolicy.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
private void enumerateCycle(Container container, List<Component> cycle) { if (!(container.isVisible() && container.isDisplayable())) { return; } cycle.add(container); Component[] components = container.getComponents(); for (Component comp : components) { if (comp instanceof Container) { Container cont = (Container)comp; if (!cont.isFocusCycleRoot() && !cont.isFocusTraversalPolicyProvider() && !((cont instanceof JComponent) && ((JComponent)cont).isManagingFocus())) { enumerateCycle(cont, cycle); continue; } } cycle.add(comp); } }
Example 13
Source File: SortingFocusTraversalPolicy.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
private void enumerateCycle(Container container, List<Component> cycle) { if (!(container.isVisible() && container.isDisplayable())) { return; } cycle.add(container); Component[] components = container.getComponents(); for (Component comp : components) { if (comp instanceof Container) { Container cont = (Container)comp; if (!cont.isFocusCycleRoot() && !cont.isFocusTraversalPolicyProvider() && !((cont instanceof JComponent) && ((JComponent)cont).isManagingFocus())) { enumerateCycle(cont, cycle); continue; } } cycle.add(comp); } }
Example 14
Source File: SortingFocusTraversalPolicy.java From JDKSourceCode1.8 with MIT License | 6 votes |
private void enumerateCycle(Container container, List<Component> cycle) { if (!(container.isVisible() && container.isDisplayable())) { return; } cycle.add(container); Component[] components = container.getComponents(); for (Component comp : components) { if (comp instanceof Container) { Container cont = (Container)comp; if (!cont.isFocusCycleRoot() && !cont.isFocusTraversalPolicyProvider() && !((cont instanceof JComponent) && ((JComponent)cont).isManagingFocus())) { enumerateCycle(cont, cycle); continue; } } cycle.add(comp); } }
Example 15
Source File: SortingFocusTraversalPolicy.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
private void enumerateCycle(Container container, List<Component> cycle) { if (!(container.isVisible() && container.isDisplayable())) { return; } cycle.add(container); Component[] components = container.getComponents(); for (Component comp : components) { if (comp instanceof Container) { Container cont = (Container)comp; if (!cont.isFocusCycleRoot() && !cont.isFocusTraversalPolicyProvider() && !((cont instanceof JComponent) && ((JComponent)cont).isManagingFocus())) { enumerateCycle(cont, cycle); continue; } } cycle.add(comp); } }
Example 16
Source File: SortingFocusTraversalPolicy.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
private void enumerateCycle(Container container, List<Component> cycle) { if (!(container.isVisible() && container.isDisplayable())) { return; } cycle.add(container); Component[] components = container.getComponents(); for (Component comp : components) { if (comp instanceof Container) { Container cont = (Container)comp; if (!cont.isFocusCycleRoot() && !cont.isFocusTraversalPolicyProvider() && !((cont instanceof JComponent) && ((JComponent)cont).isManagingFocus())) { enumerateCycle(cont, cycle); continue; } } cycle.add(comp); } }
Example 17
Source File: SortingFocusTraversalPolicy.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
private void enumerateCycle(Container container, List<Component> cycle) { if (!(container.isVisible() && container.isDisplayable())) { return; } cycle.add(container); Component[] components = container.getComponents(); for (Component comp : components) { if (comp instanceof Container) { Container cont = (Container)comp; if (!cont.isFocusCycleRoot() && !cont.isFocusTraversalPolicyProvider() && !((cont instanceof JComponent) && ((JComponent)cont).isManagingFocus())) { enumerateCycle(cont, cycle); continue; } } cycle.add(comp); } }
Example 18
Source File: WPageDialog.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@Override public void addNotify() { synchronized(getTreeLock()) { Container parent = getParent(); if (parent != null && !parent.isDisplayable()) { parent.addNotify(); } if (!isDisplayable()) { ComponentPeer peer = ((WToolkit)Toolkit.getDefaultToolkit()). createWPageDialog(this); setPeer(peer); } super.addNotify(); } }