Class HtmlContainer


  • public class HtmlContainer
    extends Container
    HtmlContainer renders an HTML Page.

    Note that the form controls back and fore colors are defined by UIColors.htmlContainerControlsFore and UIColors.htmlContainerControlsBack.

    When a link is clicked, a PRESSED event is thrown, with this HtmlContainer as target. The link can then be retrieved with the pressedLink property.

    See Also:
    pressedLink, UIColors.htmlContainerControlsFore, UIColors.htmlContainerControlsBack
    • Field Detail

      • pressedLink

        public java.lang.String pressedLink
    • Constructor Detail

      • HtmlContainer

        public HtmlContainer()
        Constructor
    • Method Detail

      • getDocument

        public Document getDocument()
      • setDocument

        public void setDocument​(Document doc)
        Sets the document to be displayed in this HtmlContainer.
        Parameters:
        doc - document to be rendered.
      • onEvent

        public void onEvent​(Event e)
        Description copied from class: Control
        Called to process key, pen, control and other posted events.
        Overrides:
        onEvent in class Control
        Parameters:
        e - the event to process
        See Also:
        Event, KeyEvent, PenEvent
      • reposition

        public void reposition()
        Description copied from class: Control
        Reposition this control, calling again setRect with the original parameters.
        Overrides:
        reposition in class Control
      • resetWith

        public void resetWith​(java.lang.String url)
        Resets the given form of the current document with the given parameters.
        Parameters:
        url - The url with the parameter and values.