Class DefaultTitle

    • Field Detail

      • instancesOf

        public StringParameter instancesOf
        If non-empty (the default), specifies a class name. Only entities or attributes (depending on include) implementing the specified class will be assigned the title defined by this DefaultTitle parameter.
      • include

        public StringParameter include
        Specification of whether to provide the title for Attributes, Entities, or both. This is either "Entities" (the default), "Attributes", "All", or "None".
      • showTitleInHTML

        public Parameter showTitleInHTML
        If set to true, then the title given by this parameter will be shown in the HTML prior to the image of the model (as well as in the image of the model, if it is visible when the export to web occurs). This is a boolean that defaults to true.
    • Method Detail

      • getMimeType

        public java.lang.String getMimeType()
        A title is of type text/html.
        Specified by:
        getMimeType in interface WebExportable
        Returns:
        The string text/html
      • isOverwriteable

        public boolean isOverwriteable()
        Return true, since new title content should overwrite old title content.
        Specified by:
        isOverwriteable in interface WebExportable
        Returns:
        True, since new title content should overwrite old title content.
      • _provideAttributes

        protected void _provideAttributes​(WebExporter exporter)
                                   throws IllegalActionException
        Provide content to the specified web exporter to be included in a web page. This class provides a default title for the web page and for each object as specified by include and instancesOf.
        Overrides:
        _provideAttributes in class WebContent
        Parameters:
        exporter - The web exporter to which to write content.
        Throws:
        IllegalActionException - If something is wrong with the web content or the object already has an attribute with the same name as the the created WebAttribute