public class ObjectView extends ComponentView
<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:
BadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXISBOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST| Constructor and Description |
|---|
ObjectView(Element el)
Creates a new
ObjectView. |
| Modifier and Type | Method and Description |
|---|---|
protected Component |
createComponent()
Creates a component based on the specification in the element of this
view.
|
getAlignment, getComponent, getMaximumSpan, getMinimumSpan, getPreferredSpan, modelToView, paint, setParent, viewToModelappend, 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, viewToModelpublic ObjectView(Element el)
ObjectView.el - the element for which to create a viewprotected Component createComponent()
createComponent in class ComponentView