Download qooxdoo Documentation

Transcript
qooxdoo Documentation, Release 1.3.1
Here’s an example. We create a default progress bar (value is 0, and the maximum value is 100). We then listen to
change event and complete event. The change event is fired every time the % complete is changed, so we can see the
new value. If the process is 100% complete the complete event is fired.
var pb = new qx.ui.indicator.ProgressBar();
this.getRoot().add(pb, { left : 20, top: 20});
pb.addListener("change", function(e) {
this.debug(e.getData()); // % complete
this.debug(pb.getValue()); // absolute value
});
pb.addListener("complete", function(e) {
this.debug("complete");
});
//set a value
pb.setValue(20);
Demos Here are some links that demonstrate the usage of the widget:
• Simple example for the ProgressBar widget
API Here is a link to the API of the widget:
qx.ui.indicator.ProgressBar
RepeatButton The RepeatButton is a special button, which fires an event, while the mouse button is pressed on the
button.
Preview Image
Features
• Contain text and/or icon.
• Mouse support.
• Ellipsis: If the label does not fit into the widget bounds an ellipsis (”...”) is rendered at the end of the label.
• Event interval is adjustable.
Description The RepeatButton is a special button, which fires an event, while the mouse button is pressed on the
button. The interval time for the RepeatButton event can be configured by the developer.
Demos Here are some links that demonstrate the usage of the widget:
• Button demo with all supported buttons
• Form showcase demo
11.2. GUI Toolkit
325