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