Lines Matching defs:component

68  * A generic Abstract Window Toolkit(AWT) container object is a component
74 * component to a container, it will be added to the end of the list
103 private java.util.List<Component> component = new java.util.ArrayList<Component>();
163 // keeps track of the threads that are printing this component
165 // True if there is at least one thread that's printing this component
215 * @serialField component Component[]
240 new ObjectStreamField("component", Component[].class),
273 * somewhere higher up in the component tree that is native.
306 return component.size();
310 * Gets the nth component in this container.
314 * @param n the index of the component to get.
315 * @return the n<sup>th</sup> component in this container.
325 return component.get(n);
351 return component.toArray(EMPTY_ARRAY);
393 * Appends the specified component to the end of this container.
397 * invalidates the component hierarchy. If the container has already been
399 * display the added component.
401 * @param comp the component to be added
407 * @return the component argument
415 * Adds the specified component to this container.
422 * invalidates the component hierarchy. If the container has already been
424 * display the added component.
436 * Adds the specified component to this container at the given
441 * invalidates the component hierarchy. If the container has already been
443 * display the added component.
446 * @param comp the component to be added
447 * @param index the position at which to insert the component,
448 * or <code>-1</code> to append the component to the end
452 * @return the component <code>comp</code>
465 * Checks that the component
479 * Checks that the component is not a Window instance.
488 * Checks that the component comp can be added to this container
503 if (index > component.size() || index < 0) {
504 throw new IllegalArgumentException("illegal component position");
507 if (index == component.size()) {
508 throw new IllegalArgumentException("illegal component position " +
509 index + " should be less then " + component.size());
518 throw new IllegalArgumentException("component and container should be in the same top-level window");
526 * Removes component comp from this container without making unneccessary changes
556 component.remove(index);
560 // We should remove component and then
565 component.remove(index);
566 component.add(newIndex, comp);
589 * Checks whether this container can contain component which is focus owner.
591 * its FTP allows component to be focus owner
639 * Returns closest heavyweight component to this container. If this container is heavyweight
654 * removeNotify on the component. Since removeNotify destroys native window this might (not)
671 // If component is lightweight non-Container or lightweight Container with all but heavyweight
701 * Moves the specified component to the specified z-order index in
703 * are painted; the component with the highest z-order paints first
704 * and the component with the lowest z-order paints last.
705 * Where components overlap, the component with the lower
706 * z-order paints over the component with the higher z-order.
708 * If the component is a child of some other container, it is
712 * doesn't call <code>removeNotify</code> on the component while
715 * component has the keyboard focus, it maintains the focus when
722 * invalidates the component hierarchy.
730 * @param comp the component to be moved
732 * insert the component, where <code>getComponentCount()</code>
766 // If the oldZindex == -1, the component gets inserted,
780 * Traverses the tree of components and reparents children heavyweight component
803 * Reparents child component peer to this container peer.
813 // If component is lightweight container we need to reparent all its explicit heavyweight children
815 // Traverse component's tree till depth-first until encountering heavyweight component
824 * Adds component to this container. Tries to minimize side effects of this adding -
835 component.add(comp);
837 component.add(index, comp);
848 if (index < component.size()) {
849 component.set(index, comp);
868 // If component is heavyweight and one of the containers is lightweight
869 // the location of the component should be fixed.
875 /* Notify the layout manager of the added component. */
895 // If component is focus owner or parent container of focus owner check that after reparenting
917 * Returns the z-order index of the component inside the container.
918 * The higher a component is in the z-order hierarchy, the lower
919 * its index. The component with the lowest z-order index is
922 * @param comp the component being queried
923 * @return the z-order index of the component; otherwise
924 * returns -1 if the component is <code>null</code>
934 // Quick check - container should be immediate parent of the component
938 return component.indexOf(comp);
943 * Adds the specified component to the end of this container.
944 * Also notifies the layout manager to add the component to
949 * invalidates the component hierarchy. If the container has already been
951 * display the added component.
954 * @param comp the component to be added
956 * layout contraints for this component
970 * Adds the specified component to this container with the specified
972 * manager to add the component to the this container's layout using
977 * invalidates the component hierarchy. If the container has already been
979 * display the added component.
982 * @param comp the component to be added
985 * the component; <code>-1</code> means insert at the end
986 * component
1002 * Adds the specified component to this container at the specified
1004 * the component to this container's layout using the specified
1026 * If the component is not an ancestor of this container and has a non-null
1040 * invalidates the component hierarchy. If the container has already been
1042 * display the added component.
1044 * @param comp the component to be added
1046 * for this component
1048 * insert the component, where <code>-1</code>
1052 * range is {@code [-1, getComponentCount()-1]}; if component is
1079 if (index > component.size() || (index < 0 && index != -1)) {
1081 "illegal component position");
1089 /* Reparent the component and tidy up the tree's state. */
1092 if (index > component.size()) {
1093 throw new IllegalArgumentException("illegal component position");
1099 component.add(comp);
1101 component.add(index, comp);
1117 /* Notify the layout manager of the added component. */
1149 for (Component comp : component) {
1163 for (Component comp : component) {
1171 * Removes the component, specified by <code>index</code>,
1174 * component from this container's layout via the
1178 * invalidates the component hierarchy. If the container has already been
1183 * @param index the index of the component to be removed
1194 if (index < 0 || index >= component.size()) {
1197 Component comp = component.get(index);
1212 component.remove(index);
1235 * Removes the specified component from this container.
1237 * component from this container's layout via the
1241 * invalidates the component hierarchy. If the container has already been
1245 * @param comp the component to be removed
1255 int index = component.indexOf(comp);
1270 * invalidates the component hierarchy. If the container has already been
1286 while (!component.isEmpty()) {
1287 Component comp = component.remove(component.size()-1);
1326 for (Component comp : component) {
1338 for (Component comp : component) {
1401 for (Component comp : component) {
1434 count -= component.get(i).createHierarchyEvents(id, changed,
1446 if (component.isEmpty()) {
1452 count -= component.get(i).createHierarchyEvents(id, this, parent,
1470 * invalidates the component hierarchy.
1513 * component hierarchy when the method encounters a validate root. However,
1518 * If a component hierarchy contains validate roots and the new optimized
1521 * component to restore the validity of the hierarchy later. Otherwise,
1524 * component hierarchy.
1587 * Layout-related changes, such as setting the bounds of a component, or
1588 * adding a component to the container, invalidate the container
1653 * Unconditionally validate the component hierarchy.
1690 for (int i = 0; i < component.size(); i++) {
1691 Component comp = component.get(i);
1715 for (int i = 0; i < component.size(); i++) {
1716 Component comp = component.get(i);
1732 * invalidates the component hierarchy.
1902 * the component would like to be aligned relative to other
1922 * the component would like to be aligned relative to other
1944 * components are properly rendered. If a child component is entirely
1976 * components are properly rendered. If a child component is entirely
1996 * components are properly rendered. If a child component is entirely
2236 * are enabled for this component; this happens when one of the
2265 * Dispatches an event to this component or one of its sub components.
2274 // event was sent to a lightweight component. The
2306 * Dispatches an event to this component, without trying to forward
2315 * Fetchs the top-most (deepest) lightweight component that is interested
2325 * Fetches the top-most (deepest) component to receive SunDropTargetEvents.
2341 * given component is a valid target for this event.
2375 * selected component is a valid target for this event.
2392 for (int i = 0; i < component.size(); i++) {
2393 Component comp = component.get(i);
2401 // found a component that intersects the point, see if there
2416 // there isn't a deeper target, but this component
2430 // didn't find a child target, return this component if it's
2475 * the lightweight component that has enabled them.
2512 * Locates the component that contains the x,y position. The
2513 * top-most child component is returned in the case where there
2515 * the component closest to the index 0 that claims to contain
2522 * @return null if the component does not contain the position.
2523 * If there is no child component at the requested point and the
2544 for (int i = 0; i < component.size(); i++) {
2545 Component comp = component.get(i);
2553 for (int i = 0; i < component.size(); i++) {
2554 Component comp = component.get(i);
2567 * Gets the component that contains the specified point.
2569 * @return returns the component that contains the point,
2570 * or <code>null</code> if the component does
2623 * Locates the visible child component that contains the specified
2624 * position. The top-most child component is returned in the case
2626 * component is a Container, this method will continue searching for
2627 * the deepest nested child component. Components which are not
2632 * children; if the containing component is a Container,
2633 * findComponentAt will search that child to find a nested component.
2637 * @return null if the component does not contain the position.
2638 * If there is no child component at the requested point and the
2676 for (int i = 0; i < component.size(); i++) {
2677 Component comp = component.get(i);
2694 for (int i = 0; i < component.size(); i++) {
2695 Component comp = component.get(i);
2717 * Locates the visible child component that contains the specified
2718 * point. The top-most child component is returned in the case
2720 * component is a Container, this method will continue searching for
2721 * the deepest nested child component. Components which are not
2726 * children; if the containing component is a Container,
2727 * findComponentAt will search that child to find a nested component.
2730 * @return null if the component does not contain the position.
2731 * If there is no child component at the requested point and the
2766 // instead of particular component so always affect
2767 // collection of component if menu is becoming shown or hidden.
2768 for (int i = 0; i < component.size(); i++) {
2769 component.get(i).addNotify();
2788 // instead of particular component so always affect
2789 // collection of component if menu is becoming shown or hidden.
2790 for (int i = component.size()-1 ; i >= 0 ; i--) {
2791 Component comp = component.get(i);
2795 // of the focused component. But because of focus
2797 // on every component in case it receives native focus
2805 // Auto-transfer focus to the next (or previous) component if auto-transfer
2821 * Checks if the component is contained in the component hierarchy of
2823 * @param c the component
2847 * The native container of the LW component has this field set
2849 * children except for the modal component.
2852 * modal component in the new modal components value of modalComp;
2859 // Store the app context on which this component is being shown.
3006 for (int i = 0; i < component.size(); i++) {
3007 Component comp = component.get(i);
3033 for (int i = 0; i < component.size(); i++) {
3034 Component comp = component.get(i);
3258 * Check if this component is the child of this container or its children.
3261 * @param comp a component in test, must not be null
3539 * invalidates the component hierarchy.
3541 * @param o the new component orientation of this container and
3552 for (int i = 0; i < component.size(); i++) {
3553 Component comp = component.get(i);
3638 // parent fields of its component children.
3673 f.put("ncomponents", component.size());
3674 f.put("component", getComponentsSync());
3713 Component [] tmpComponent = (Component[])f.get("component", EMPTY_ARRAY);
3715 component = new java.util.ArrayList<Component>(ncomponents);
3717 component.add(tmpComponent[i]);
3728 java.util.List<Component> component = this.component;
3729 for(Component comp : component) {
4400 * Dispatches an event to a sub-component if necessary, and
4402 * sub-component.
4463 * component. It tries to avoid doing any unnecessary probes down
4464 * into the component tree to minimize the overhead of determining
4586 // This can happen if a lightweight component which initiated the
4684 // component may have disappeared since drag event posted
4702 // we are being dragged over from another hw component
4760 * the mouse event target is still in the component tree, the
4767 return; // mouse is over another hw component or target is disabled
4771 Component component;
4773 for(component = target;
4774 component != null && component != nativeContainer;
4775 component = component.getParent()) {
4776 x -= component.x;
4777 y -= component.y;
4780 if (component != null) {
4859 * component that has events being forwarded to it. If this
4866 * The last component entered
4885 * the mask of the windowed component itself.