|
|
@ -36,7 +36,7 @@ BI.NumberInterval = BI.inherit(BI.Single, { |
|
|
|
BI.NumberInterval.superclass._init.apply(this, arguments); |
|
|
|
BI.NumberInterval.superclass._init.apply(this, arguments); |
|
|
|
this.smallEditor = BI.createWidget({ |
|
|
|
this.smallEditor = BI.createWidget({ |
|
|
|
type: "bi.number_interval_single_editor", |
|
|
|
type: "bi.number_interval_single_editor", |
|
|
|
height: o.height - 2, |
|
|
|
height: o.height - (o.simple ? 1 : 2), |
|
|
|
watermark: o.watermark, |
|
|
|
watermark: o.watermark, |
|
|
|
allowBlank: o.allowBlank, |
|
|
|
allowBlank: o.allowBlank, |
|
|
|
value: o.min, |
|
|
|
value: o.min, |
|
|
@ -55,13 +55,13 @@ BI.NumberInterval = BI.inherit(BI.Single, { |
|
|
|
} |
|
|
|
} |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
}, |
|
|
|
}, |
|
|
|
cls: "number-interval-small-editor bi-border" |
|
|
|
cls: "number-interval-small-editor " + (o.simple ? "bi-border-bottom" : "bi-border") |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.smallTip = BI.createWidget({ |
|
|
|
this.smallTip = BI.createWidget({ |
|
|
|
type: "bi.label", |
|
|
|
type: "bi.label", |
|
|
|
text: o.numTip, |
|
|
|
text: o.numTip, |
|
|
|
height: o.height - 2, |
|
|
|
height: o.height - (o.simple ? 1 : 2), |
|
|
|
invisible: true |
|
|
|
invisible: true |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.createWidget({ |
|
|
|
BI.createWidget({ |
|
|
@ -76,7 +76,7 @@ BI.NumberInterval = BI.inherit(BI.Single, { |
|
|
|
|
|
|
|
|
|
|
|
this.bigEditor = BI.createWidget({ |
|
|
|
this.bigEditor = BI.createWidget({ |
|
|
|
type: "bi.number_interval_single_editor", |
|
|
|
type: "bi.number_interval_single_editor", |
|
|
|
height: o.height - 2, |
|
|
|
height: o.height - (o.simple ? 1 : 2), |
|
|
|
watermark: o.watermark, |
|
|
|
watermark: o.watermark, |
|
|
|
allowBlank: o.allowBlank, |
|
|
|
allowBlank: o.allowBlank, |
|
|
|
value: o.max, |
|
|
|
value: o.max, |
|
|
@ -93,13 +93,13 @@ BI.NumberInterval = BI.inherit(BI.Single, { |
|
|
|
} |
|
|
|
} |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
}, |
|
|
|
}, |
|
|
|
cls: "number-interval-big-editor bi-border" |
|
|
|
cls: "number-interval-big-editor" + (o.simple ? " bi-border-bottom" : " bi-border") |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.bigTip = BI.createWidget({ |
|
|
|
this.bigTip = BI.createWidget({ |
|
|
|
type: "bi.label", |
|
|
|
type: "bi.label", |
|
|
|
text: o.numTip, |
|
|
|
text: o.numTip, |
|
|
|
height: o.height - 2, |
|
|
|
height: o.height - (o.simple ? 1 : 2), |
|
|
|
invisible: true |
|
|
|
invisible: true |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.createWidget({ |
|
|
|
BI.createWidget({ |
|
|
@ -113,8 +113,8 @@ BI.NumberInterval = BI.inherit(BI.Single, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.smallCombo = BI.createWidget({ |
|
|
|
this.smallCombo = BI.createWidget({ |
|
|
|
type: "bi.icon_combo", |
|
|
|
type: "bi.icon_combo", |
|
|
|
cls: "number-interval-small-combo bi-border-top bi-border-bottom bi-border-right", |
|
|
|
cls: "number-interval-small-combo" + (o.simple ? "" : " bi-border-top bi-border-bottom bi-border-right"), |
|
|
|
height: o.height - 2, |
|
|
|
height: o.height - (o.simple ? 0 : 2), |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
text: "(" + BI.i18nText("BI-Less_Than") + ")", |
|
|
|
text: "(" + BI.i18nText("BI-Less_Than") + ")", |
|
|
|
iconCls: "less-font", |
|
|
|
iconCls: "less-font", |
|
|
@ -132,8 +132,8 @@ BI.NumberInterval = BI.inherit(BI.Single, { |
|
|
|
} |
|
|
|
} |
|
|
|
this.bigCombo = BI.createWidget({ |
|
|
|
this.bigCombo = BI.createWidget({ |
|
|
|
type: "bi.icon_combo", |
|
|
|
type: "bi.icon_combo", |
|
|
|
cls: "number-interval-big-combo bi-border-top bi-border-bottom bi-border-left", |
|
|
|
cls: "number-interval-big-combo" + (o.simple ? "" : " bi-border-top bi-border-bottom bi-border-left"), |
|
|
|
height: o.height - 2, |
|
|
|
height: o.height - (o.simple ? 0 : 2), |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
text: "(" + BI.i18nText("BI-Less_Than") + ")", |
|
|
|
text: "(" + BI.i18nText("BI-Less_Than") + ")", |
|
|
|
iconCls: "less-font", |
|
|
|
iconCls: "less-font", |
|
|
@ -152,9 +152,9 @@ BI.NumberInterval = BI.inherit(BI.Single, { |
|
|
|
this.label = BI.createWidget({ |
|
|
|
this.label = BI.createWidget({ |
|
|
|
type: "bi.label", |
|
|
|
type: "bi.label", |
|
|
|
text: BI.i18nText("BI-Basic_Value"), |
|
|
|
text: BI.i18nText("BI-Basic_Value"), |
|
|
|
textHeight: o.height - c.border * 2, |
|
|
|
textHeight: o.height - (o.simple ? 0 : c.border * 2), |
|
|
|
width: c.width - c.border * 2, |
|
|
|
width: c.width - (o.simple ? 0 : c.border * 2), |
|
|
|
height: o.height - c.border * 2, |
|
|
|
height: o.height - (o.simple ? 0 : c.border * 2), |
|
|
|
level: "warning", |
|
|
|
level: "warning", |
|
|
|
tipType: "warning" |
|
|
|
tipType: "warning" |
|
|
|
}); |
|
|
|
}); |
|
|
|