All Superinterfaces:
PageObjectParentContext
All Known Implementing Classes:
PageObjectContextImpl

public interface PageObjectContext extends PageObjectParentContext
Author:
Abdulin Ildar
  • Property Details

    • name

      javafx.beans.property.StringProperty nameProperty
      See Also:
    • container

      javafx.beans.property.Property<Boolean> containerProperty
    • expanded

      javafx.beans.property.Property<Boolean> expandedProperty
  • Method Details

    • getRootContext

      PageObjectParentContext getRootContext()
    • getParent

      Returns parent context (page object, page etc)
      Returns:
      parent context (not null)
    • isChildOf

      boolean isChildOf(PageObjectContext parentContext)
      Check that this context is a child (direct or indirect) of parentContext
      Parameters:
      parentContext -
      Returns:
      true if parentContext is an ancestor of this context
    • getObject

      PageObject getObject()
    • findRelativeContext

      PageObjectContext findRelativeContext(String objectId)
      Finds object in current hierarchy that either has specified id or inherits page object with specified id
      Parameters:
      objectId - object id or prototype id
      Returns:
      object if found, or else null
    • setNavigateFunction

      void setNavigateFunction(Runnable function)
    • getName

      default String getName()
      Gets the value of the property name.
      Property description:
    • nameProperty

      javafx.beans.property.StringProperty nameProperty()
      See Also:
    • getPrototypeId

      default String getPrototypeId()
    • containerProperty

      javafx.beans.property.Property<Boolean> containerProperty()
    • isContainer

      default boolean isContainer()
    • addScript

      void addScript(ClassMetadata classMetadata)
    • removeScript

      void removeScript(ScriptContext scriptContext)
    • getScripts

      javafx.collections.ObservableList<ScriptContext> getScripts()
    • expandedProperty

      javafx.beans.property.Property<Boolean> expandedProperty()