Constructor and Description |
---|
ConformInput() |
Modifier and Type | Method and Description |
---|---|
void |
addMappingsByName()
Adds in the mappings between
ExistingItemModel and
TargetItemModel instances by name. |
org.eclipse.swt.widgets.Canvas |
buildControl(InputContext context)
Builds the
Control . |
String[] |
getInheritedTargetItemNames()
Obtains the listing of
TargetItemModel names that are flagged to
inherit. |
Map<String,String> |
getTargetItemToExistingItemMapping()
|
Object |
getValue(org.eclipse.swt.widgets.Canvas control,
InputContext context)
Obtains the value from the input
Control . |
void |
setConform(ConformModel conform)
Specifies the (or change of)
ConformModel . |
void |
setConform(String[] existingItemNames,
String[] targetItemNames,
String... inheritableTargetItemNames)
Convenience method to load the
ConformModel based on the names
and provide default mappings. |
public void setConform(String[] existingItemNames, String[] targetItemNames, String... inheritableTargetItemNames)
ConformModel
based on the names
and provide default mappings.existingItemNames
- Names for the ExistingItemModel
instances.targetItemNames
- Names for the TargetItemModel
instances.inheritableTargetItemNames
- TargetItemModel
names that may inherit their
configuration.public Map<String,String> getTargetItemToExistingItemMapping()
TargetItemModel
name to
ExistingItemModel
name.public String[] getInheritedTargetItemNames()
TargetItemModel
names that are flagged to
inherit.TargetItemModel
names that are flagged to
inherit.public void setConform(ConformModel conform)
ConformModel
.conform
- ConformModel
.public void addMappingsByName()
ExistingItemModel
and
TargetItemModel
instances by name.public org.eclipse.swt.widgets.Canvas buildControl(InputContext context)
Input
Control
.buildControl
in interface Input<org.eclipse.swt.widgets.Canvas>
context
- InputContext
.Control
to input the value.public Object getValue(org.eclipse.swt.widgets.Canvas control, InputContext context)
Input
Obtains the value from the input Control
.
The input Control
will be the one created by
Input.buildControl(InputContext)
.
getValue
in interface Input<org.eclipse.swt.widgets.Canvas>
control
- Control
.context
- InputContext
.Copyright © 2005–2016. All rights reserved.