Class AbstractWebPlatform

    • Field Detail

      • DEPICT_ID_STRING_PREFIX

        protected static final java.lang.String DEPICT_ID_STRING_PREFIX
        The prefix used for creating depict ID strings on this platform.
        See Also:
        Constant Field Values
      • DEFAULT_POLL_INTERVAL

        public static final int DEFAULT_POLL_INTERVAL
        The default polling interval in milliseconds.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractWebPlatform

        public AbstractWebPlatform​(GuiseApplication application)
        Application. This version copies the current application environment to a new environment for this platform.
        Parameters:
        application - The Guise application running on this platform.
        Throws:
        java.lang.NullPointerException - if the given application is null.
    • Method Detail

      • getPollInterval

        public int getPollInterval()
        Specified by:
        getPollInterval in interface WebPlatform
        Returns:
        The current polling interval in milliseconds.
      • setPollInterval

        public void setPollInterval​(int newPollInterval)
        Description copied from interface: WebPlatform
        Sets the polling interval in milliseconds.
        Specified by:
        setPollInterval in interface WebPlatform
        Parameters:
        newPollInterval - The polling interval in milliseconds.
      • getDepictIDString

        public java.lang.String getDepictIDString​(long depictID)
        Generates an ID for the given depicted object appropriate for using on the platform.
        Specified by:
        getDepictIDString in interface WebPlatform
        Parameters:
        depictID - The depict ID to be converted to a platform ID.
        Returns:
        The form of the depict ID appropriate for using on the platform.
      • getDepictID

        public long getDepictID​(java.lang.String depictIDString)
        Description copied from interface: WebPlatform
        Returns the depicted object ID represented by the given platform-specific ID string.
        Specified by:
        getDepictID in interface WebPlatform
        Parameters:
        depictIDString - The platform-specific form of the depict ID.
        Returns:
        The depict ID the platform-specific form represents.