Lines Matching defs:Container

91 public class Container extends Component {
93 private static final PlatformLogger log = PlatformLogger.getLogger("java.awt.Container");
94 private static final PlatformLogger eventLog = PlatformLogger.getLogger("java.awt.event.Container");
123 * Container's children, if this Container is a focus cycle root. If the
124 * value is null, this Container inherits its policy from its focus-cycle-
125 * root ancestor. If all such ancestors of this Container have null
131 * If this Container is not a focus cycle root, the value will be
133 * Containers until this Container is made a focus cycle root.
145 * Normal traversal is limited to this Container, and all of this
146 * Container's descendants that are not descendants of inferior focus cycle
186 * the method can return the Container on which it is originally called
209 private static final PlatformLogger mixingLog = PlatformLogger.getLogger("java.awt.mixing.Container");
225 * Maximum size of this Container.
230 * Normal traversal is limited to this Container, and all of this
231 * Container's descendants that are not descendants of inferior focus cycle
234 * Container Serial Data Version.
258 public void validateUnconditionally(Container cont) {
271 * Constructs a new Container. Containers can be extended directly,
276 public Container() {
469 if (comp instanceof Container) {
470 for (Container cn = this; cn != null; cn=cn.parent) {
534 private boolean removeDelicately(Component comp, Container newParent, int newIndex) {
643 Container getHeavyweightContainer() {
659 private static boolean isRemoveNotifyNeeded(Component comp, Container oldContainer, Container newContainer) {
667 // Component has peer but new Container doesn't - call removeNotify
671 // If component is lightweight non-Container or lightweight Container with all but heavyweight
674 boolean isContainer = comp instanceof Container;
676 if (!isContainer || (isContainer && !((Container)comp).hasHeavyweightDescendants())) {
684 Container newNativeContainer = oldContainer.getHeavyweightContainer();
685 Container oldNativeContainer = newContainer.getHeavyweightContainer();
711 * <code>java.awt.Container.add(Component, int)</code> is that this method
719 * non-<code>Container</code> components.
753 Container curParent = comp.parent;
784 private void reparentTraverse(ContainerPeer parentPeer, Container child) {
792 if (comp instanceof Container) {
793 reparentTraverse(parentPeer, (Container)comp);
804 * Container must be heavyweight.
814 if (comp instanceof Container) {
816 reparentTraverse((ContainerPeer)getPeer(), (Container)comp);
828 private void addDelicately(Component comp, Container curParent, int index) {
859 Container newNativeContainer = getHeavyweightContainer();
860 Container oldNativeContainer = curParent.getHeavyweightContainer();
899 } else if (comp instanceof Container) {
1158 * Checks that all Components that this Container contains are on
1159 * the same GraphicsDevice as this Container. If not, throws an
1428 Container changedParent, long changeFlags, boolean enabledOnToolkit)
1563 * the {@link LayoutManager2#invalidateLayout(Container)} method is invoked
1564 * on it supplying this {@code Container} as the argument.
1600 * If this {@code Container} is not valid, this method invokes
1601 * the {@code validateTree} method and marks this {@code Container}
1606 * @see Container#isValidateRoot
1692 if ( (comp instanceof Container)
1697 ((Container)comp).validateTree();
1717 if (comp instanceof Container) {
1718 ((Container)comp).invalidateTree();
1754 * and this {@code Container} has a {@code non-null} {@link LayoutManager},
1755 * then {@link LayoutManager#preferredLayoutSize(Container)}
1762 * be queried after the {@code Container} becomes invalid.
1769 * @see LayoutManager#preferredLayoutSize(Container)
1805 * and this {@code Container} has a {@code non-null} {@link LayoutManager},
1806 * then {@link LayoutManager#minimumLayoutSize(Container)}
1813 * be queried after the {@code Container} becomes invalid.
1820 * @see LayoutManager#minimumLayoutSize(Container)
1857 * and the {@link LayoutManager} installed on this {@code Container}
1859 * {@link LayoutManager2#maximumLayoutSize(Container)}
1866 * be queried after the {@code Container} becomes invalid.
1873 * @see LayoutManager2#maximumLayoutSize(Container)
2157 * upon this <code>Container</code>.
2166 * <code>Container</code> <code>c</code>
2241 * <li>Container events are enabled via <code>enableEvents</code>
2269 * may not be enabled for this Container.
2403 if (comp instanceof Container) {
2404 Container child = (Container) comp;
2580 * Returns the position of the mouse pointer in this <code>Container</code>'s
2581 * coordinate space if the <code>Container</code> is under the mouse pointer,
2584 * that it can take the <code>Container</code>'s children into account.
2586 * a non-null value only if the mouse pointer is above the <code>Container</code>
2589 * a non-null value if the mouse pointer is above <code>Container</code> or any
2626 * component is a Container, this method will continue searching for
2631 * that getComponentAt only searches the Container's immediate
2632 * children; if the containing component is a Container,
2680 if (comp instanceof Container) {
2681 comp = ((Container)comp).findComponentAtImpl(x - comp.x,
2698 if (comp instanceof Container) {
2699 comp = ((Container)comp).findComponentAtImpl(x - comp.x,
2720 * component is a Container, this method will continue searching for
2725 * that getComponentAt only searches the Container's immediate
2726 * children; if the containing component is a Container,
2744 * Makes this Container displayable by connecting it to
2775 * Makes this Container undisplayable by removing its connection
2829 Container p;
2875 final Container nativeContainer;
2897 }, Container.this);
2940 Container nativeContainer = getHeavyweightContainer();
2971 * Returns a string representing the state of this <code>Container</code>.
3044 * Container.
3046 * The default values for a Container's focus traversal keys are
3052 * <table border=1 summary="Recommended default values for a Container's focus traversal keys">
3088 * to any Container. It is a runtime error to specify a KEY_TYPED event as
3092 * If a value of null is specified for the Set, this Container inherits the
3093 * Set from its parent. If all ancestors of this Container have null
3115 * operation for this Container
3134 * for this Container. (See
3138 * Container, then this Container's parent's Set is returned. If no Set
3139 * has been explicitly defined for any of this Container's ancestors, then
3173 * traversal operation has been explicitly defined for this Container. If
3174 * this method returns <code>false</code>, this Container is inheriting the
3200 * Returns whether the specified Container is the focus cycle root of this
3201 * Container's focus traversal cycle. Each focus traversal cycle has only
3202 * a single focus cycle root and each Container which is not a focus cycle
3204 * are focus cycle roots belong to two cycles: one rooted at the Container
3205 * itself, and one rooted at the Container's nearest focus-cycle-root
3209 * @param container the Container to be tested
3210 * @return <code>true</code> if the specified Container is a focus-cycle-
3211 * root of this Container; <code>false</code> otherwise
3215 public boolean isFocusCycleRoot(Container container) {
3223 private Container findTraversalRoot() {
3231 Container currentFocusCycleRoot = KeyboardFocusManager.
3233 Container root;
3300 Container cont = kfm.getCurrentFocusCycleRoot();
3307 final Container getTraversalRoot() {
3317 * this Container's children, if this Container is a focus cycle root. If
3318 * the argument is null, this Container inherits its policy from its focus-
3324 * If this Container is not a focus cycle root, the policy will be
3326 * Containers until this Container is made a focus cycle root.
3328 * @param policy the new focus traversal policy for this Container
3347 * of this Container's children, or null if this Container is not a focus
3349 * Container, then this Container's focus-cycle-root ancestor's policy is
3352 * @return this Container's focus traversal policy, or null if this
3353 * Container is not a focus cycle root.
3369 Container rootAncestor = getFocusCycleRootAncestor();
3380 * this Container. If this method returns <code>false</code>, this
3381 * Container will inherit its focus traversal policy from an ancestor.
3384 * explicitly set for this Container; <code>false</code> otherwise.
3392 * Sets whether this Container is the root of a focus traversal cycle. Once
3395 * traversal is limited to this Container, and all of this Container's
3401 * The alternative way to specify the traversal order of this Container's
3402 * children is to make this Container a
3405 * @param focusCycleRoot indicates whether this Container is the root of a
3427 * Returns whether this Container is the root of a focus traversal cycle.
3430 * Normal traversal is limited to this Container, and all of this
3431 * Container's descendants that are not descendants of inferior focus
3436 * @return whether this Container is the root of a focus traversal cycle
3449 * traversal policy. Container with this property as
3493 * Transfers the focus down one focus traversal cycle. If this Container is
3494 * a focus cycle root, then the focus owner is set to this Container's
3496 * this Container. If this Container is not a focus cycle root, then no
3517 Container parent = this.parent;
3524 Container parent = this.parent;
3564 * <li>this Container's font ("font")</li>
3565 * <li>this Container's background color ("background")</li>
3566 * <li>this Container's foreground color ("foreground")</li>
3567 * <li>this Container's focusability ("focusable")</li>
3568 * <li>this Container's focus traversal keys enabled state
3570 * <li>this Container's Set of FORWARD_TRAVERSAL_KEYS
3572 * <li>this Container's Set of BACKWARD_TRAVERSAL_KEYS
3574 * <li>this Container's Set of UP_CYCLE_TRAVERSAL_KEYS
3576 * <li>this Container's Set of DOWN_CYCLE_TRAVERSAL_KEYS
3578 * <li>this Container's focus traversal policy ("focusTraversalPolicy")
3580 * <li>this Container's focus-cycle-root state ("focusCycleRoot")</li>
3582 * Note that if this Container is inheriting a bound property, then no
3601 * <li>this Container's font ("font")</li>
3602 * <li>this Container's background color ("background")</li>
3603 * <li>this Container's foreground color ("foreground")</li>
3604 * <li>this Container's focusability ("focusable")</li>
3605 * <li>this Container's focus traversal keys enabled state
3607 * <li>this Container's Set of FORWARD_TRAVERSAL_KEYS
3609 * <li>this Container's Set of BACKWARD_TRAVERSAL_KEYS
3611 * <li>this Container's Set of UP_CYCLE_TRAVERSAL_KEYS
3613 * <li>this Container's Set of DOWN_CYCLE_TRAVERSAL_KEYS
3615 * <li>this Container's focus traversal policy ("focusTraversalPolicy")
3617 * <li>this Container's focus-cycle-root state ("focusCycleRoot")</li>
3618 * <li>this Container's focus-traversal-policy-provider state("focusTraversalPolicyProvider")</li>
3619 * <li>this Container's focus-traversal-policy-provider state("focusTraversalPolicyProvider")</li>
3621 * Note that if this Container is inheriting a bound property, then no
3637 // Serialization support. A Container is responsible for restoring the
3641 * Container Serial Data Version.
3646 * Serializes this <code>Container</code> to the specified
3653 * <li>Write this Container's FocusTraversalPolicy if and only if it
3664 * the <code>Container</code>'s <code>FocusTraversalPolicy</code>,
3668 * @see Container#containerListenerK
3694 * Deserializes this <code>Container</code> from the specified
3700 * <li>Reads this Container's FocusTraversalPolicy, which may be null,
3773 * Inner class of Container used to provide default support for
3798 return Container.this.getAccessibleChildrenCount();
3808 return Container.this.getAccessibleChild(i);
3822 return Container.this.getAccessibleAt(p);
3860 Container.this.addContainerListener(accessibleContainerHandler);
3986 if (c instanceof Container) {
3987 addLW = ((Container)c).numOfLWComponents;
3988 addHW = ((Container)c).numOfHWComponents;
3996 for (Container cont = this; cont != null; cont = cont.getContainer()) {
4014 if (c instanceof Container) {
4015 subLW = ((Container)c).numOfLWComponents;
4016 subHW = ((Container)c).numOfHWComponents;
4024 for (Container cont = this; cont != null; cont = cont.getContainer()) {
4099 } else if (comp instanceof Container &&
4100 ((Container)comp).hasHeavyweightDescendants() && comp.isShowing()) {
4101 ((Container)comp).recursiveSubtractAndApplyShape(shape);
4134 if (comp instanceof Container &&
4135 ((Container)comp).hasHeavyweightDescendants()) {
4136 ((Container)comp).recursiveApplyCurrentShape();
4148 if (comp instanceof Container) {
4149 ((Container)comp).recursiveShowHeavyweightChildren();
4169 if (comp instanceof Container) {
4170 ((Container)comp).recursiveHideHeavyweightChildren();
4187 if (comp instanceof Container &&
4188 ((Container)comp).hasHeavyweightDescendants())
4192 ((Container)comp).recursiveRelocateHeavyweightChildren(newOrigin);
4219 for (Container cont = this;
4280 for (Container cont = getContainer();
4376 LightweightDispatcher(Container nativeContainer) {
4384 * should be called from Container.removeNotify
4472 Container.INCLUDE_SELF);
4557 Container.INCLUDE_SELF);
4733 Container.INCLUDE_SELF);
4753 Container.INCLUDE_SELF);
4821 ((Container)target).dispatchEventToSelf(retargeted);
4826 if (((Container)nativeContainer.modalComp).isAncestorOf(target)) {
4850 private Container nativeContainer;