Search in sources :

Example 1 with VariableFeature

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

the class VariableFeatureRightPart method getModelSpecificChildren.

protected List<IEntity> getModelSpecificChildren() {
    VariableFeature entity = getModelEntity();
    List<IEntity> list = new ArrayList<IEntity>(1);
    list.add(entity.getFeature());
    return list;
}
Also used : VariableFeature(org.whole.lang.frames.model.VariableFeature) IEntity(org.whole.lang.model.IEntity) ArrayList(java.util.ArrayList)

Example 2 with VariableFeature

use of org.whole.lang.frames.model.VariableFeature 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 3 with VariableFeature

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

the class VariableFeatureDownPart method getModelSpecificChildren.

protected List<IEntity> getModelSpecificChildren() {
    VariableFeature entity = getModelEntity();
    List<IEntity> list = new ArrayList<IEntity>(1);
    list.add(entity.getFeature());
    return list;
}
Also used : VariableFeature(org.whole.lang.frames.model.VariableFeature) IEntity(org.whole.lang.model.IEntity) ArrayList(java.util.ArrayList)

Example 4 with VariableFeature

use of org.whole.lang.frames.model.VariableFeature 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)4 ArrayList (java.util.ArrayList)2 VariableValue (org.whole.lang.frames.model.VariableValue)2 IEntity (org.whole.lang.model.IEntity)2 VariableFeatureDownFigure (org.whole.lang.features.ui.figures.VariableFeatureDownFigure)1 VariableFeatureRightFigure (org.whole.lang.features.ui.figures.VariableFeatureRightFigure)1