javax.swing.text.html
Class ObjectView
java.lang.Object
javax.swing.text.View
javax.swing.text.ComponentView
javax.swing.text.html.ObjectView
All Implemented Interfaces: SwingConstants
public class ObjectView extends ComponentView
A view for HTML <object>
tags.
This is a ComponentView
that creates special components depending
on the object specification. If the object tag has a classid attribute, then
this view will try to load the class specified by this attribute using the
classloader that loaded the associated document. If the class could be
loaded, an instance is created and the type narrowed to Component
.
It is also possible to set bean properties on the created component using
nested <param>
tags. For example:
Fields inherited from interface javax.swing.SwingConstants
BOTTOM , CENTER , EAST , HORIZONTAL , LEADING , LEFT , NEXT , NORTH , NORTH_EAST , NORTH_WEST , PREVIOUS , RIGHT , SOUTH , SOUTH_EAST , SOUTH_WEST , TOP , TRAILING , VERTICAL , WEST
Method Summary
protected Component
createComponent ()
Creates a component based on the specification in the element of this
view.
Methods inherited from class javax.swing.text.View
append , breakView , changedUpdate , createFragment , dump , forwardUpdate , forwardUpdateToView , getAttributes , getBreakWeight , getChildAllocation , getContainer , getDocument , getElement , getEndOffset , getGraphics , getNextVisualPositionFrom , getParent , getResizeWeight , getStartOffset , getToolTipText , getView , getViewCount , getViewFactory , getViewIndex , getViewIndex , insert , insertUpdate , isVisible , modelToView , modelToView , preferenceChanged , remove , removeAll , removeUpdate , replace , setSize , updateChildren , updateLayout , viewToModel
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
ObjectView
public ObjectView (Element el)
Creates a new ObjectView
.
Parameters: el
- the element for which to create a view
createComponent
protected Component createComponent ()
Creates a component based on the specification in the element of this
view. See the class description for details.
Overrides: createComponent
in class ComponentView
Returns: the component that is rendered