Class NewSection

  • All Implemented Interfaces:
    adams.core.AdditionalInformationHandler, adams.core.Destroyable, adams.core.GlobalInfoSupporter, adams.core.logging.LoggingLevelHandler, adams.core.logging.LoggingSupporter, adams.core.option.OptionHandler, adams.core.QuickInfoSupporter, adams.core.SizeOfHandler, CodeGenerator, adams.flow.core.FlowContextHandler, Serializable

    public class NewSection
    extends AbstractCodeGenerator
    Adds a new section to the document with an optional label for cross-referencing.

    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
     
    -no-var-expansion <boolean> (property: noVariableExpansion)
        If enabled, variable expansion gets skipped.
        default: false
     
    -page-action <NONE|NEWPAGE|CLEARPAGE> (property: pageAction)
        The page action to insert.
        default: NONE
     
    -type <PART|CHAPTER|SECTION|SUBSECTION|SUBSUBSECTION|PARAGRAPH|SUBPARAGRAPH> (property: type)
        The type of the section.
        default: SECTION
     
    -title <java.lang.String> (property: title)
        The title of the section.
        default: 
     
    -label <java.lang.String> (property: label)
        The optional label of the section (for cross-referencing).
        default: 
     
    Version:
    $Revision$
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • NewSection

        public NewSection()
    • Method Detail

      • globalInfo

        public String globalInfo()
        Returns a string describing the object.
        Specified by:
        globalInfo in interface adams.core.GlobalInfoSupporter
        Specified by:
        globalInfo in class adams.core.option.AbstractOptionHandler
        Returns:
        a description suitable for displaying in the gui
      • defineOptions

        public void defineOptions()
        Adds options to the internal list of options.
        Specified by:
        defineOptions in interface adams.core.option.OptionHandler
        Overrides:
        defineOptions in class AbstractCodeGenerator
      • setPageAction

        public void setPageAction​(NewSection.PageAction value)
        Sets the page action.
        Parameters:
        value - the action
      • getPageAction

        public NewSection.PageAction getPageAction()
        Returns the page action.
        Returns:
        the action
      • pageActionTipText

        public String pageActionTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • typeTipText

        public String typeTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setTitle

        public void setTitle​(String value)
        Sets the title.
        Parameters:
        value - the title
      • getTitle

        public String getTitle()
        Returns the title.
        Returns:
        the title
      • titleTipText

        public String titleTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setLabel

        public void setLabel​(String value)
        Sets the label.
        Parameters:
        value - the label
      • getLabel

        public String getLabel()
        Returns the label.
        Returns:
        the label
      • labelTipText

        public String labelTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • getQuickInfo

        public String getQuickInfo()
        Returns a quick info about the object, which can be displayed in the GUI.
        Specified by:
        getQuickInfo in interface CodeGenerator
        Specified by:
        getQuickInfo in interface adams.core.QuickInfoSupporter
        Overrides:
        getQuickInfo in class AbstractCodeGenerator
        Returns:
        null if no info available, otherwise short string