Class PageObjectContextImpl
java.lang.Object
ru.cg.webbpm.studio.subsystems.page_designer.designer.impl.context.PageObjectParentContextImpl
ru.cg.webbpm.studio.subsystems.page_designer.designer.impl.context.PageObjectContextImpl
- All Implemented Interfaces:
PageObjectContext
,PageObjectParentContext
- Author:
- Abdulin Ildar
-
Property Summary
Properties -
Field Summary
Fields inherited from class ru.cg.webbpm.studio.subsystems.page_designer.designer.impl.context.PageObjectParentContextImpl
children, rootContext, unmodifiableChildren
-
Constructor Summary
ConstructorsConstructorDescriptionPageObjectContextImpl
(PageObject target, PageObjectParentContext parent, PageObjectParentContext rootContext) -
Method Summary
Modifier and TypeMethodDescriptionaddChild
(int idx, PageObject object) void
addScript
(ClassMetadata classMetadata) javafx.beans.property.Property<Boolean>
javafx.beans.property.Property<Boolean>
findRelativeContext
(String objectId) Finds object in current hierarchy that either has specified id or inherits page object with specified idgetId()
Returns parent context (page object, page etc)javafx.collections.ObservableList<ScriptContext>
boolean
isChildOf
(PageObjectContext parentContext) Check that this context is a child (direct or indirect) of parentContextjavafx.beans.property.StringProperty
void
navigate()
void
removeChild
(PageObjectContext pageObjectContext) void
removeScript
(ScriptContext scriptContext) void
setNavigateFunction
(Runnable function) void
setParentContext
(PageObjectParentContext parentContext) Methods inherited from class ru.cg.webbpm.studio.subsystems.page_designer.designer.impl.context.PageObjectParentContextImpl
addChild, addChildFromPrototype, equals, findInChildren, getChildren, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ru.cg.webbpm.studio.subsystems.page_designer.designer.api.context.PageObjectContext
getName, getPrototypeId, isContainer
Methods inherited from interface ru.cg.webbpm.studio.subsystems.page_designer.designer.api.context.PageObjectParentContext
addChild, addChild, addChild, addChildFromPrototype, addChildFromPrototype, findInChildren, getChildren
-
Property Details
-
name
public javafx.beans.property.StringProperty nameProperty- Specified by:
nameProperty
in interfacePageObjectContext
- See Also:
-
container
- Specified by:
containerProperty
in interfacePageObjectContext
-
expanded
- Specified by:
expandedProperty
in interfacePageObjectContext
-
-
Constructor Details
-
PageObjectContextImpl
public PageObjectContextImpl(PageObject target, PageObjectParentContext parent, PageObjectParentContext rootContext)
-
-
Method Details
-
getRootContext
- Specified by:
getRootContext
in interfacePageObjectContext
-
getParent
Description copied from interface:PageObjectContext
Returns parent context (page object, page etc)- Specified by:
getParent
in interfacePageObjectContext
- Returns:
- parent context (not null)
-
setParentContext
-
isChildOf
Description copied from interface:PageObjectContext
Check that this context is a child (direct or indirect) of parentContext- Specified by:
isChildOf
in interfacePageObjectContext
- Returns:
- true if parentContext is an ancestor of this context
-
getObject
- Specified by:
getObject
in interfacePageObjectContext
-
findRelativeContext
Description copied from interface:PageObjectContext
Finds object in current hierarchy that either has specified id or inherits page object with specified id- Specified by:
findRelativeContext
in interfacePageObjectContext
- Parameters:
objectId
- object id or prototype id- Returns:
- object if found, or else null
-
removeChild
- Specified by:
removeChild
in interfacePageObjectParentContext
-
addChild
- Specified by:
addChild
in interfacePageObjectParentContext
-
getId
- Specified by:
getId
in interfacePageObjectParentContext
-
nameProperty
public javafx.beans.property.StringProperty nameProperty()- Specified by:
nameProperty
in interfacePageObjectContext
- See Also:
-
containerProperty
- Specified by:
containerProperty
in interfacePageObjectContext
-
addScript
- Specified by:
addScript
in interfacePageObjectContext
-
removeScript
- Specified by:
removeScript
in interfacePageObjectContext
-
getScripts
- Specified by:
getScripts
in interfacePageObjectContext
-
expandedProperty
- Specified by:
expandedProperty
in interfacePageObjectContext
-