public interface Expander
ExpanderBasedStructureBean. Expander implementations should be
agnostic about which StructureBean instance is using it, the main
reason being that the expanders are shared between instances upon
cloning and navigation. Plus, the expanders always have access to the current
StructureBean in the methods defined in this interface. If a
particular Expander is coupled with a particular
StructureBean instance you need to take special precausions to avoid
undesired behavior upon cloning and navigation from that instance.| Modifier and Type | Interface and Description |
|---|---|
static interface |
Expander.ExpandCtx
Provides contextual information to the
Expander when expanding
and collapsing nodes. |
static class |
Expander.FilterMode
Instances represents different filter modes.
|
| Modifier and Type | Field and Description |
|---|---|
static Expander.FilterMode |
COMBINABLE
Filters can be changed, you can combine multiple filters.
|
static Expander.FilterMode |
FIXED
Filters can't be changed.
|
static Expander.FilterMode |
SINGLE
Filters can be changed, but only one can be used at the time.
|
| Modifier and Type | Method and Description |
|---|---|
void |
collapseNode(Expander.ExpandCtx ctx,
StructureBeanNode node)
Collapses a node.
|
void |
expandNode(Expander.ExpandCtx ctx,
StructureBeanNode node,
int levels)
Expands a node.
|
Expander.FilterMode |
getFilterMode(ExpanderBasedStructureBean structure)
Returns the filter mode.
|
boolean |
isFullExpandSupported(ExpanderBasedStructureBean structure)
Returns true if this expander allows full expand
|
boolean |
isMultiLevelExpandSupported(ExpanderBasedStructureBean structure)
Returns true if this expander allows multi-level expands.
|
static final Expander.FilterMode FIXED
static final Expander.FilterMode SINGLE
static final Expander.FilterMode COMBINABLE
boolean isFullExpandSupported(ExpanderBasedStructureBean structure)
structure - The ExpanderBasedStructureBean.boolean isMultiLevelExpandSupported(ExpanderBasedStructureBean structure)
structure - The ExpanderBasedStructureBean.Expander.FilterMode getFilterMode(ExpanderBasedStructureBean structure)
structure - The current structurevoid expandNode(Expander.ExpandCtx ctx, StructureBeanNode node, int levels) throws TVCException
ctx - The contextnode - The node to expand.levels - The number of levels to expand the node, zero for full
expansion.TVCException - If unable to expand the node.void collapseNode(Expander.ExpandCtx ctx, StructureBeanNode node)
ctx - The context.node - The node to collapse.Copyright ? Technia AB. All Rights Reserved.