org.freehep.jas.plugin.web
Class JasView

java.lang.Object
  extended by javax.swing.text.View
      extended by javax.swing.text.ComponentView
          extended by 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 class javax.swing.text.View
BadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXIS
 
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
 
Method Summary
protected  Component createComponent()
          Create the component.
protected  Component getUnloadableRepresentation(Throwable t)
          Fetch a component that can be used to represent the object if it can't be created.
protected  Component lookupAndCreateComponent(String classID, Map map)
           
 
Methods inherited from class javax.swing.text.ComponentView
getAlignment, getComponent, getMaximumSpan, getMinimumSpan, getPreferredSpan, modelToView, paint, setParent, viewToModel
 
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
 

Field Detail

baseURL

protected URL baseURL

app

protected org.freehep.application.studio.Studio app
Constructor Detail

JasView

public JasView(Element elem,
               URL baseURL,
               org.freehep.application.studio.Studio studio)
Creates a new instance of JasView

Method Detail

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.