public interface RevealStep
Modifier and Type | Field and Description |
---|---|
static RevealStep |
FAILED
The step indicating failure to reveal the object.
|
Modifier and Type | Method and Description |
---|---|
RevealStep |
drillDown()
Drills down into me to reveal the next step in the nested reveal.
|
static RevealStep |
drillDown(VElement viewModel,
org.eclipse.emf.ecore.EObject domainModel,
RevealStep nextStep)
Create an intermediate step that drills down into another step.
|
static RevealStep |
drillDown(VElement viewModel,
org.eclipse.emf.ecore.EObject domainModel,
RevealStep nextStep,
Runnable revealAction)
Create an intermediate step that reveals some kind of container and drills
down into another step.
|
static RevealStep |
fail()
Obtain a reveal failure step that signals absence of any UI element that can be
activated to reveal the object.
|
org.eclipse.emf.ecore.EObject |
getDomainModel()
Query the domain object that I reveal in my view model element.
|
org.eclipse.emf.ecore.EStructuralFeature |
getFeature()
Query the feature that I reveal, if any.
|
RevealStepKind |
getType()
Query the type of reveal step that I am.
|
VElement |
getViewModel()
Query the view model element in which I reveal my domain model.
|
default void |
ifPresent(Consumer<? super RevealStep> action)
Invoke an
action on me if I am not failed. |
static Predicate<RevealStep> |
is(RevealStepKind type)
Obtain a predicate that matches reveal steps of a particular
type . |
default boolean |
isDone()
Query whether I am a non-intermediate reveal step.
|
default boolean |
isFailed()
Query whether I am a failed reveal step.
|
static Comparator<RevealStep> |
preferredOrdering()
Obtain a comparator that sorts reveal steps in preferential order by
type , with the RevealStepKind.TERMINAL the most
preferred and RevealStepKind.FAILED the least preferred. |
void |
reveal()
Reveal my domain object in my
view model element.
|
static RevealStep |
reveal(VElement viewModel,
org.eclipse.emf.ecore.EObject domainModel,
org.eclipse.emf.ecore.EStructuralFeature feature,
Runnable revealAction)
Create a terminal step that reveals a
feature of the object in the editor UI. |
static RevealStep |
reveal(VElement viewModel,
org.eclipse.emf.ecore.EObject domainModel,
Runnable revealAction)
Create a terminal step that reveals the object in the editor UI.
|
static final RevealStep FAILED
RevealStepKind.FAILED
,
fail()
RevealStepKind getType()
default boolean isFailed()
default boolean isDone()
true
if there is no further progress to be made in revealing;
false
, otherwiseVElement getViewModel()
null
if I am failedorg.eclipse.emf.ecore.EObject getDomainModel()
null
if I am failedorg.eclipse.emf.ecore.EStructuralFeature getFeature()
terminal step
,
then I should not reveal any feature.null
if none or if I am failedRevealStep drillDown()
null
if I am the
terminal stepIllegalStateException
- if I am failedvoid reveal()
IllegalStateException
- if I am faileddefault void ifPresent(Consumer<? super RevealStep> action)
action
on me if I am not failed.action
- an action to invokestatic RevealStep drillDown(VElement viewModel, org.eclipse.emf.ecore.EObject domainModel, RevealStep nextStep)
viewModel
- the view model element that is rendered and revealeddomainModel
- the domain model object that is revealed in that viewnextStep
- the next step to drill down into in the reveal operationstatic RevealStep drillDown(VElement viewModel, org.eclipse.emf.ecore.EObject domainModel, RevealStep nextStep, Runnable revealAction)
viewModel
- the view model element that is rendered and revealeddomainModel
- the domain model object that is revealed in that viewnextStep
- the next step to drill down into in the reveal operationrevealAction
- a rendering-specific action that actually reveals the rendered
container element in the UIstatic RevealStep reveal(VElement viewModel, org.eclipse.emf.ecore.EObject domainModel, Runnable revealAction)
viewModel
- the view model element that is rendered and revealeddomainModel
- the domain model object that is revealed in that viewrevealAction
- a rendering-specific action that actually reveals the rendered
element that presents the object in the UIstatic RevealStep reveal(VElement viewModel, org.eclipse.emf.ecore.EObject domainModel, org.eclipse.emf.ecore.EStructuralFeature feature, Runnable revealAction)
feature
of the object in the editor UI.viewModel
- the view model element that is rendered and revealeddomainModel
- the domain model object that is revealed in that viewfeature
- the feature of the domain model object that I specfically revealedrevealAction
- a rendering-specific action that actually reveals the rendered
element that presents the object in the UIstatic RevealStep fail()
FAILED
static Predicate<RevealStep> is(RevealStepKind type)
type
.type
- the type of step to matchgetType()
static Comparator<RevealStep> preferredOrdering()
type
, with the RevealStepKind.TERMINAL
the most
preferred and RevealStepKind.FAILED
the least preferred.getType()
Copyright © 2019. All rights reserved.