2362N/A * Copyright (c) 1998, 2006, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * Implements a FrameView, intended to support the HTML 0N/A * <FRAME> tag. Supports the frameborder, scrolling, 0N/A * marginwidth and marginheight attributes. 0N/A * @author Sunita Mani 0N/A /** Set to true when the component has been created. */ 0N/A * Creates a new Frame. 0N/A * @param elem the element to represent. 0N/A * Sets the parent view for the FrameView. 0N/A * Also determines if the FrameView should be editable 0N/A * or not based on whether the JTextComponent that 0N/A * contains it is editable. 0N/A * @param parent View 0N/A * Also determines if the FrameView should be editable 0N/A * or not based on whether the JTextComponent that 0N/A * contains it is editable. And then proceeds to call 0N/A * the superclass to do the paint(). 0N/A * @param parent View 0N/A * @see text.ComponentView#paint 0N/A * If the marginwidth or marginheight attributes have been specified, 0N/A * then the JEditorPane's margin's are set to the new values. 0N/A * If the frameborder attribute has been specified, either in the frame, 0N/A * or by the frames enclosing frameset, the JScrollPane's setBorder() 0N/A * method is invoked to achieve the desired look. 0N/A // make invisible borders. 0N/A * This method creates the JScrollPane. The scrollbar policy is determined by 0N/A * the scrolling attribute. If not defined, the default is "auto" which 0N/A * maps to the scrollbar's being displayed as needed. 0N/A // scrollbars will be displayed if needed 0N/A * Finds the outermost FrameSetView. It then 0N/A * returns that FrameSetView's container. 0N/A * Returns true if this frame is contained within 0N/A * a nested frameset. 0N/A * Notification of a change relative to a 0N/A * hyperlink. This method searches for the outermost 0N/A * JEditorPane, and then fires an HTMLFrameHyperlinkEvent 0N/A * to that frame. In addition, if the target is _parent, 0N/A * and there is not nested framesets then the target is 0N/A * reset to _top. If the target is _top, in addition to 0N/A * firing the event to the outermost JEditorPane, this 0N/A * method also invokes the setPage() method and explicitly 0N/A * replaces the current document with the destination url. 0N/A * @param HyperlinkEvent 0N/A // Need a way to handle exceptions 0N/A // Need a way to handle exceptions 0N/A // ex.printStackTrace(); 0N/A * Gives notification from the document that attributes were changed 0N/A * in a location that this view is responsible for. Currently this view 0N/A * handles changes to its SRC attribute. 0N/A * @param e the change information from the associated document 0N/A * @param a the current allocation of the view 0N/A * @param f the factory to use to rebuild if the view has children 0N/A // Need a way to handle exceptions 0N/A //e1.printStackTrace(); 0N/A // Need a way to handle exceptions 0N/A //e2.printStackTrace(); 0N/A * Move POST data from temporary storage into the target document property. 0N/A * @return the POST data or null if no data found 0N/A * Determines the minimum span for this view along an 0N/A * @param axis may be either <code>View.X_AXIS</code> or 0N/A * <code>View.Y_AXIS</code> 0N/A * @return the preferred span; given that we do not 0N/A * support resizing of frames, the minimum span returned 0N/A * is the same as the preferred span 0N/A * Determines the maximum span for this view along an 0N/A * @param axis may be either <code>View.X_AXIS</code> or 0N/A * <code>View.Y_AXIS</code> 0N/A * @return the preferred span; given that we do not 0N/A * support resizing of frames, the maximum span returned 0N/A * is the same as the preferred span 0N/A /** Editor pane rendering frame of HTML document 0N/A * It uses the same editor kits classes as outermost JEditorPane