Interface ClientTag

    • Method Detail

      • transferState

        void transferState​(ClientTag otherTag)
        Transfers listeners and values to another tag. Used when tag root is changed. Should transfer recursively - that is, transfer direct listeners, and then go through children, see if this tag has the same child, and transfer those listeners too
      • notifyTagDeleted

        void notifyTagDeleted()
        Called when this tag is removed. Should notify all subscribers that it no longer exists
      • hasPermission

        boolean hasPermission​(boolean write)
      • applyDiff

        void applyDiff​(TagDiff diff)
        Applies the given tag diff
      • addChild

        void addChild​(Tag child)
        Adds a child tag to this tag folder. Will throw an UnsupportedOperationException on anything but a folder tag
      • removeChild

        Tag removeChild​(java.lang.String tagName)
        Removes the child with the given name (case insensitive). Will throw an UnsupportedOperationException on anything but a folder tag. Returns the tag removed, or null if no tag by the given name was found.
      • findChild

        ClientTag findChild​(java.lang.String tagName)
        Attempts to find a tag with the given name (case insensitive).
      • stopBinding

        void stopBinding()
        Stops any binding activities for this tag