public class WebViewAttribute extends StringAttribute implements Initializable, WebViewable, IOPortEventListener, ActorFiringListener
NamedObj.ContainedObjectsIterator
Settable.Visibility
Modifier and Type | Field and Description |
---|---|
StringParameter |
html |
StringAttribute |
htmlCode |
FileParameter |
htmlFile |
StringParameter |
title |
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
EXPERT, FULL, NONE, NOT_EDITABLE
Constructor and Description |
---|
WebViewAttribute(NamedObj container,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
protected void |
_connectionClosed(java.lang.String id) |
protected void |
_connectionOpened(java.lang.String id) |
protected java.lang.Object |
_convertInputToJson(Token token) |
protected void |
_dataReceived(java.lang.String name,
java.lang.Object value) |
protected void |
_optionReceived(java.lang.String name,
java.lang.Object value) |
protected void |
_registerHandler() |
void |
addInitializable(Initializable initializable)
Add the specified object to the set of objects whose
preinitialize(), initialize(), and wrapup()
methods should be invoked upon invocation of the corresponding
methods of this object.
|
void |
attributeChanged(Attribute attribute)
React to an attribute change.
|
java.lang.Object |
clone(Workspace workspace)
Clone the actor into the specified workspace.
|
void |
firingEvent(FiringEvent event)
Report an actor firing state.
|
java.lang.String |
getHTML() |
Parameter |
getOption(java.lang.String name)
Get a parameter that is an option for the client.
|
java.util.List<Parameter> |
getOptions()
Get a list of parameters to send as options to the client.
|
void |
initialize()
Begin execution of the actor.
|
void |
portEvent(IOPortEvent event)
Report a port activity.
|
void |
preinitialize()
This method should be invoked exactly once per execution
of a model, before any of these other methods are invoked.
|
void |
removeInitializable(Initializable initializable)
Remove the specified object from the set of objects whose
preinitialize(), initialize(), and wrapup()
methods should be invoked upon invocation of the corresponding
methods of this object.
|
void |
setContainer(NamedObj container)
Set the container.
|
void |
unregisterHandler()
Stop listening for events from clients.
|
void |
wrapup()
This method is invoked exactly once per execution
of an application.
|
_propagateValue, addValueListener, exportMoML, getExpression, getVisibility, removeValueListener, setExpression, setVisibility, validate
getDefaultExpression, getValueAsString
_checkContainer, _getContainedObject, _propagateExistence, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setName, updateContent
_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _containedDecorators, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _description, _executeChangeRequests, _exportMoMLContents, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _notifyHierarchyListenersAfterChange, _notifyHierarchyListenersBeforeChange, _removeAttribute, _splitName, _stripNumericSuffix, _validateSettables, addChangeListener, addDebugListener, addHierarchyListener, attributeDeleted, attributeList, attributeList, attributeTypeChanged, clone, containedObjectsIterator, decorators, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoMLPlain, getAttribute, getAttribute, getAttributes, getChangeListeners, getClassName, getDecoratorAttribute, getDecoratorAttributes, getDerivedLevel, getDerivedList, getDisplayName, getElementName, getFullName, getModelErrorHandler, getName, getName, getPrototypeList, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, lazyContainedObjectsIterator, message, notifyOfNameChange, propagateExistence, propagateValue, propagateValues, removeAttribute, removeChangeListener, removeDebugListener, removeHierarchyListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setDisplayName, setModelErrorHandler, setPersistent, setSource, sortContainedObjects, toplevel, toString, uniqueName, validateSettables, workspace
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAttribute, toplevel
description, getContainer, getDisplayName, getFullName, getName, getName, setName
getDisplayName
public FileParameter htmlFile
public StringParameter html
public StringAttribute htmlCode
public StringParameter title
public WebViewAttribute(NamedObj container, java.lang.String name) throws IllegalActionException, NameDuplicationException
public void addInitializable(Initializable initializable)
Initializable
addInitializable
in interface Initializable
initializable
- The object whose methods should be invoked.Initializable.removeInitializable(Initializable)
public void attributeChanged(Attribute attribute) throws IllegalActionException
attributeChanged
in class NamedObj
attribute
- The attribute that changed.IllegalActionException
- If the change is not acceptable
to this container (not thrown in this base class).public java.lang.Object clone(Workspace workspace) throws java.lang.CloneNotSupportedException
clone
in class StringAttribute
workspace
- The workspace for the new object.java.lang.CloneNotSupportedException
- If a derived class contains
an attribute that cannot be cloned.NamedObj.exportMoML(Writer, int, String)
,
NamedObj.setDeferringChangeRequests(boolean)
public void firingEvent(FiringEvent event)
ActorFiringListener
firingEvent
in interface ActorFiringListener
event
- The event to report.public java.lang.String getHTML() throws java.io.IOException, IllegalActionException
getHTML
in interface WebViewable
java.io.IOException
IllegalActionException
public java.util.List<Parameter> getOptions()
WebViewable
getOptions
in interface WebViewable
public Parameter getOption(java.lang.String name)
WebViewable
getOption
in interface WebViewable
public void initialize() throws IllegalActionException
Initializable
initialize
in interface Initializable
IllegalActionException
- If execution is not permitted.public void portEvent(IOPortEvent event) throws IllegalActionException
IOPortEventListener
portEvent
in interface IOPortEventListener
event
- The event to report.IllegalActionException
- If thrown by the implementation.public void preinitialize() throws IllegalActionException
Initializable
preinitialize
in interface Initializable
IllegalActionException
- If initializing is not permitted.public void removeInitializable(Initializable initializable)
Initializable
removeInitializable
in interface Initializable
initializable
- The object whose methods should no longer be invoked.Initializable.addInitializable(Initializable)
public void setContainer(NamedObj container) throws IllegalActionException, NameDuplicationException
setContainer
in class Attribute
container
- The container to attach this attribute to..IllegalActionException
- If this attribute is not of the
expected class for the container, or it has no name,
or the attribute and container are not in the same workspace, or
the proposed container would result in recursive containment.NameDuplicationException
- If the container already has
an attribute with the name of this attribute.Attribute.getContainer()
public void unregisterHandler()
public void wrapup() throws IllegalActionException
Initializable
wrapup
in interface Initializable
IllegalActionException
- If wrapup is not permitted.protected void _registerHandler() throws IllegalActionException
IllegalActionException
protected void _connectionClosed(java.lang.String id)
protected void _connectionOpened(java.lang.String id) throws IllegalActionException
IllegalActionException
protected void _dataReceived(java.lang.String name, java.lang.Object value)
protected void _optionReceived(java.lang.String name, java.lang.Object value)
protected java.lang.Object _convertInputToJson(Token token) throws IllegalActionException
IllegalActionException