Search in sources :

Example 1 with VariableValue

use of org.whole.lang.frames.model.VariableValue in project whole by wholeplatform.

the class VariableFeatureDownPart method refreshVisuals.

@Override
protected void refreshVisuals() {
    VariableFeature entity = getModelEntity();
    VariableValue value = entity.getValue();
    ((VariableFeatureDownFigure) getFigure()).setVariableValue(DataTypeUtils.getDataKind(value).isEnumValue() && value.wEnumValue().equals(VariableValueEnum.SELECTED));
}
Also used : VariableFeature(org.whole.lang.frames.model.VariableFeature) VariableValue(org.whole.lang.frames.model.VariableValue) VariableFeatureDownFigure(org.whole.lang.features.ui.figures.VariableFeatureDownFigure)

Example 2 with VariableValue

use of org.whole.lang.frames.model.VariableValue in project whole by wholeplatform.

the class VariableFeatureRightPart method refreshVisuals.

@Override
protected void refreshVisuals() {
    VariableFeature entity = getModelEntity();
    VariableValue value = entity.getValue();
    ((VariableFeatureRightFigure) getFigure()).setVariableValue(DataTypeUtils.getDataKind(value).isEnumValue() && value.wEnumValue().equals(VariableValueEnum.SELECTED));
}
Also used : VariableFeature(org.whole.lang.frames.model.VariableFeature) VariableValue(org.whole.lang.frames.model.VariableValue) VariableFeatureRightFigure(org.whole.lang.features.ui.figures.VariableFeatureRightFigure)

Aggregations

VariableFeature (org.whole.lang.frames.model.VariableFeature)2 VariableValue (org.whole.lang.frames.model.VariableValue)2 VariableFeatureDownFigure (org.whole.lang.features.ui.figures.VariableFeatureDownFigure)1 VariableFeatureRightFigure (org.whole.lang.features.ui.figures.VariableFeatureRightFigure)1