org.freehep.jas.plugin.web
Class JasView
java.lang.Object
javax.swing.text.View
javax.swing.text.ComponentView
org.freehep.jas.plugin.web.JasView
- All Implemented Interfaces:
- SwingConstants
public class JasView
- extends ComponentView
A ComponentView for displaying an arbitrary JComponent embedded within
a web page.
- Version:
- $Id: JasView.java 13876 2011-09-20 00:52:21Z tonyj $
- Author:
- serbo
Field Summary |
protected org.freehep.application.studio.Studio |
app
|
protected URL |
baseURL
|
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 |
Constructor Summary |
JasView(Element elem,
URL baseURL,
org.freehep.application.studio.Studio studio)
Creates a new instance of JasView |
Methods inherited from class javax.swing.text.View |
append, breakView, changedUpdate, createFragment, 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 |
baseURL
protected URL baseURL
app
protected org.freehep.application.studio.Studio app
JasView
public JasView(Element elem,
URL baseURL,
org.freehep.application.studio.Studio studio)
- Creates a new instance of JasView
createComponent
protected Component createComponent()
- Create the component. The classid is used
as a specification of the classname, which
we try to load.
- Overrides:
createComponent
in class ComponentView
getUnloadableRepresentation
protected Component getUnloadableRepresentation(Throwable t)
- Fetch a component that can be used to represent the
object if it can't be created.
lookupAndCreateComponent
protected Component lookupAndCreateComponent(String classID,
Map map)
throws Exception
- Throws:
Exception
Copyright © 2013. All Rights Reserved.