Commit 63fdad62 authored by Grand Francois's avatar Grand Francois
Browse files

#44 suppression de certains contrôles (trop contraignants au niveau de l'UI)

Showing with 0 additions and 33 deletions
+0 -33
......@@ -213,34 +213,6 @@ export class ParamValues {
public set valueMode(m: ParamValueMode) {
this._valueMode = m;
switch (m) {
case ParamValueMode.SINGLE:
this._minValue = undefined;
this._maxValue = undefined;
this._stepValue = undefined;
this._valueList = undefined;
break;
case ParamValueMode.LISTE:
this._singleValue.undefine();
this._minValue = undefined;
this._maxValue = undefined;
this._stepValue = undefined;
break;
case ParamValueMode.MINMAX:
this._singleValue.undefine();
this._valueList = undefined;
break;
case ParamValueMode.CALCUL:
this._singleValue.undefine();
this._minValue = undefined;
this._maxValue = undefined;
this._stepValue = undefined;
this._valueList = undefined;
break;
}
}
private checkValueMode(expected: ParamValueMode) {
......@@ -249,12 +221,10 @@ export class ParamValues {
}
public get singleValue() {
this.checkValueMode(ParamValueMode.SINGLE);
return this._singleValue.value;
}
public get uncheckedValue() {
this.checkValueMode(ParamValueMode.SINGLE);
return this._singleValue.uncheckedValue;
}
......@@ -264,12 +234,10 @@ export class ParamValues {
}
public get isDefined() {
this.checkValueMode(ParamValueMode.SINGLE);
return this._singleValue.isDefined;
}
public get min() {
this.checkValueMode(ParamValueMode.MINMAX);
return this._minValue;
}
......@@ -279,7 +247,6 @@ export class ParamValues {
}
public get max() {
this.checkValueMode(ParamValueMode.MINMAX);
return this._maxValue;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment