Save This Page
Home » openjdk-7 » javax » swing » text » html » [javadoc | source]
javax.swing.text.html
class: FrameView [javadoc | source]
java.lang.Object
   javax.swing.text.View
      javax.swing.text.ComponentView
         javax.swing.text.html.FrameView

All Implemented Interfaces:
    HyperlinkListener, SwingConstants

Implements a FrameView, intended to support the HTML <FRAME> tag. Supports the frameborder, scrolling, marginwidth and marginheight attributes.
Nested Class Summary:
class  FrameView.FrameEditorPane  Editor pane rendering frame of HTML document It uses the same editor kits classes as outermost JEditorPane 
Field Summary
 JEditorPane htmlPane     
 JScrollPane scroller     
 boolean editable     
 float width     
 float height     
 URL src     
Fields inherited from javax.swing.text.View:
BadBreakWeight,  GoodBreakWeight,  ExcellentBreakWeight,  ForcedBreakWeight,  X_AXIS,  Y_AXIS,  sharedBiasReturn
Constructor:
 public FrameView(Element elem) 
    Creates a new Frame.
    Parameters:
    elem - the element to represent.
Method from javax.swing.text.html.FrameView Summary:
changedUpdate,   createComponent,   getHostPane,   getMaximumSpan,   getMinimumSpan,   getOutermostJEditorPane,   hyperlinkUpdate,   paint,   setParent
Methods from javax.swing.text.ComponentView:
createComponent,   getAlignment,   getComponent,   getMaximumSpan,   getMinimumSpan,   getPreferredSpan,   modelToView,   paint,   setComponentParent,   setParent,   viewToModel
Methods from javax.swing.text.View:
append,   breakView,   changedUpdate,   createFragment,   forwardUpdate,   forwardUpdateToView,   getAlignment,   getAttributes,   getBreakWeight,   getChildAllocation,   getContainer,   getDocument,   getElement,   getEndOffset,   getGraphics,   getMaximumSpan,   getMinimumSpan,   getNextVisualPositionFrom,   getParent,   getPreferredSpan,   getResizeWeight,   getStartOffset,   getToolTipText,   getView,   getViewCount,   getViewFactory,   getViewIndex,   getViewIndex,   insert,   insertUpdate,   isVisible,   modelToView,   modelToView,   modelToView,   paint,   preferenceChanged,   remove,   removeAll,   removeUpdate,   replace,   setParent,   setSize,   updateChildren,   updateLayout,   viewToModel,   viewToModel
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.text.html.FrameView Detail:
 public  void changedUpdate(DocumentEvent e,
    Shape a,
    ViewFactory f) 
    Gives notification from the document that attributes were changed in a location that this view is responsible for. Currently this view handles changes to its SRC attribute.
 protected Component createComponent() 
 JEditorPane getHostPane() 
 public float getMaximumSpan(int axis) 
    Determines the maximum span for this view along an axis.
 public float getMinimumSpan(int axis) 
    Determines the minimum span for this view along an axis.
 JEditorPane getOutermostJEditorPane() 
    Finds the outermost FrameSetView. It then returns that FrameSetView's container.
 public  void hyperlinkUpdate(HyperlinkEvent evt) 
    Notification of a change relative to a hyperlink. This method searches for the outermost JEditorPane, and then fires an HTMLFrameHyperlinkEvent to that frame. In addition, if the target is _parent, and there is not nested framesets then the target is reset to _top. If the target is _top, in addition to firing the event to the outermost JEditorPane, this method also invokes the setPage() method and explicitly replaces the current document with the destination url.
 public  void paint(Graphics g,
    Shape allocation) 
    Also determines if the FrameView should be editable or not based on whether the JTextComponent that contains it is editable. And then proceeds to call the superclass to do the paint().
 public  void setParent(View parent) 
    Sets the parent view for the FrameView. Also determines if the FrameView should be editable or not based on whether the JTextComponent that contains it is editable.