Interface Behaviour
-
public interface Behaviour
TheBehaviour
interface encapsulates the options to control lazy tree behaviour in different cases.All options are per
Element
, i.e. the behaviour may be different for different elements of the tree.The choice of a particular behaviour is up to the browser implementation.
- Since:
- 7.0
- Author:
- Maxim Podkolzine (maxim.podkolzine@jetbrains.com)
- See Also:
Element
-
-
Field Summary
Fields Modifier and Type Field Description static Behaviour
DEFAULT_BEHAVIOUR
Holds the options that are applicable in most cases.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isOpenWhenOnlyChild(Element element)
Returns whether the element should be opened automatically if it is the only child.
-
-
-
Field Detail
-
DEFAULT_BEHAVIOUR
static final Behaviour DEFAULT_BEHAVIOUR
Holds the options that are applicable in most cases.
-
-
Method Detail
-
isOpenWhenOnlyChild
boolean isOpenWhenOnlyChild(@NotNull Element element)
Returns whether the element should be opened automatically if it is the only child.Example:
node A node B node C node D
The value of this option affects whether the nodeB
should be opened when one opens nodeA
.- Returns:
- whether the element should be opened automatically if it is the only child
-
-