| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | FrameView.
Editor pane rendering frame of HTML document It uses the same editor kits classes as outermost JEditorPane |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | createdComponent
Set to true when the component has been created. |
| pack-priv boolean | |
| pack-priv float | |
| pack-priv JEditorPane | |
| pack-priv JScrollPane | |
| pack-priv URL | |
| pack-priv float |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | changedUpdate(DocumentEvent
the change information from the associated document e, Shape the current allocation of the view a, ViewFactory the factory to use to rebuild if the view has children f)Overrides javax. Gives notification from the document that attributes were changed in a location that this view is responsible for. |
| protected Component | createComponent()
Overrides javax. Create the component that is associated with this view. |
| private void | |
| pack-priv JEditorPane | |
| public float | Returns: the preferred span; given that we do not support resizing of frames, the maximum span returned is the same as the preferred spanmay be either axis)View.X_AXIS or
View.Y_AXISOverrides javax. Determines the maximum span for this view along an axis. |
| public float | Returns: the preferred span; given that we do not support resizing of frames, the minimum span returned is the same as the preferred spanmay be either axis)View.X_AXIS or
View.Y_AXISOverrides javax. Determines the minimum span for this view along an axis. |
| pack-priv JEditorPane | |
| public void | hyperlinkUpdate(HyperlinkEvent evt)
Implements javax. Notification of a change relative to a hyperlink. |
| private boolean | |
| private Object | Returns: the POST data or null if no data foundMove POST data from temporary storage into the target document property. |
| public void | paint(Graphics g, Shape allocation)
Overrides javax. Also determines if the FrameView should be editable or not based on whether the JTextComponent that contains it is editable. |
| private void | setBorder()
If the frameborder attribute has been specified, either in the frame, or by the frames enclosing frameset, the JScrollPane's setBorder() method is invoked to achieve the desired look. |
| private void | setMargin()
If the marginwidth or marginheight attributes have been specified, then the JEditorPane's margin's are set to the new values. |
| public void | setParent(View
View parent)Overrides javax. Sets the parent view for the FrameView. |
| createdComponent | back to summary |
|---|---|
| private boolean createdComponent Set to true when the component has been created. | |
| editable | back to summary |
|---|---|
| pack-priv boolean editable | |
| height | back to summary |
|---|---|
| pack-priv float height | |
| htmlPane | back to summary |
|---|---|
| pack-priv JEditorPane htmlPane | |
| scroller | back to summary |
|---|---|
| pack-priv JScrollPane scroller | |
| src | back to summary |
|---|---|
| pack-priv URL src | |
| width | back to summary |
|---|---|
| pack-priv float width | |
| FrameView | back to summary |
|---|---|
| public FrameView(Element elem) Creates a new Frame.
| |
| changedUpdate | back to summary |
|---|---|
| public void changedUpdate(DocumentEvent e, Shape a, ViewFactory f) Overrides javax. 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.
| |
| createComponent | back to summary |
|---|---|
| protected Component createComponent() Overrides javax. Doc from javax. Create the component that is associated with this view. This will be called when it has been determined that a new component is needed. This would result from a call to setParent or as a result of being notified that attributes have changed. | |
| createScrollPane | back to summary |
|---|---|
| private void createScrollPane() This method creates the JScrollPane. The scrollbar policy is determined by the scrolling attribute. If not defined, the default is "auto" which maps to the scrollbar's being displayed as needed.
| |
| getHostPane | back to summary |
|---|---|
| pack-priv JEditorPane getHostPane() | |
| getMaximumSpan | back to summary |
|---|---|
| public float getMaximumSpan(int axis) Overrides javax. Determines the maximum span for this view along an axis.
| |
| getMinimumSpan | back to summary |
|---|---|
| public float getMinimumSpan(int axis) Overrides javax. Determines the minimum span for this view along an axis.
| |
| getOutermostJEditorPane | back to summary |
|---|---|
| pack-priv JEditorPane getOutermostJEditorPane() Finds the outermost FrameSetView. It then returns that FrameSetView's container. | |
| hyperlinkUpdate | back to summary |
|---|---|
| public void hyperlinkUpdate(HyperlinkEvent evt) Implements javax. 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. | |
| inNestedFrameSet | back to summary |
|---|---|
| private boolean inNestedFrameSet() Returns true if this frame is contained within a nested frameset. | |
| movePostData | back to summary |
|---|---|
| private Object movePostData(JEditorPane targetPane, String frameName) Move POST data from temporary storage into the target document property.
| |
| paint | back to summary |
|---|---|
| public void paint(Graphics g, Shape allocation) Overrides javax. 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().
| |
| setBorder | back to summary |
|---|---|
| private void setBorder() If the frameborder attribute has been specified, either in the frame, or by the frames enclosing frameset, the JScrollPane's setBorder() method is invoked to achieve the desired look. | |
| setMargin | back to summary |
|---|---|
| private void setMargin() If the marginwidth or marginheight attributes have been specified, then the JEditorPane's margin's are set to the new values. | |
| setParent | back to summary |
|---|---|
| public void setParent(View parent) Overrides javax. 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.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public EditorKit | getEditorKitForContentType(String type)
Overrides javax. Fetches the editor kit to use for the given type of content. |
| pack-priv FrameView |
| FrameEditorPane | back to summary |
|---|---|
| pack-priv FrameEditorPane() | |
| getEditorKitForContentType | back to summary |
|---|---|
| public EditorKit getEditorKitForContentType(String type) Overrides javax. Doc from javax. Fetches the editor kit to use for the given type
of content. This is called when a type is requested
that doesn't match the currently installed type.
If the component doesn't have an This method can be reimplemented to use some other kind of type registry. This can be reimplemented to use the Java Activation Framework, for example. | |
| getFrameView | back to summary |
|---|---|
| pack-priv FrameView getFrameView() | |