public interface Behaviour
Behaviour 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.
Element| Modifier and Type | Field and Description |
|---|---|
static Behaviour |
DEFAULT_BEHAVIOUR
Holds the options that are applicable in most cases.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isOpenWhenOnlyChild(Element element)
Returns whether the element should be opened automatically if it is the only child.
|
static final Behaviour DEFAULT_BEHAVIOUR
boolean isOpenWhenOnlyChild(@NotNull
Element element)
Example:
node A
node B
node C
node D
The value of this option affects whether the node B should be opened when
one opens node A.