* `gamma` is extended to incomplete gamma integrals.
* `close` is extended to close the help browser, xcos, or the variables browser or editor GUIs.
* `polyint` is introduced to compute polynomial antiderivatives.
+* Listbox uicontrol callback is now triggered by item click in single selection mode. For example, it allows successive execution of a demo in the demonstrations gui.
Help pages:
import java.awt.event.AdjustmentEvent;
import java.awt.event.AdjustmentListener;
import java.io.IOException;
+import java.awt.event.MouseAdapter;
+import java.awt.event.MouseEvent;
import javax.swing.DefaultListModel;
import javax.swing.Icon;
}
GraphicController.getController().setProperty(uid, __GO_UI_VALUE__, scilabIndices);
- if (callback != null) {
+ if (callback != null && getList().getSelectionMode() == ListSelectionModel.MULTIPLE_INTERVAL_SELECTION) {
callback.actionPerformed(null);
}
}
};
getList().addListSelectionListener(listListener);
+ getList().addMouseListener(new MouseAdapter() {
+ public void mouseReleased(MouseEvent evt) {
+ if (callback != null && getList().getSelectionMode() == ListSelectionModel.SINGLE_SELECTION) {
+ callback.actionPerformed(null);
+ }
+ }
+ });
+
adjustmentListener = new AdjustmentListener() {
public void adjustmentValueChanged(AdjustmentEvent arg0) {
int listboxtopValue = getList().getUI().locationToIndex(getList(), getViewport().getViewPosition()) + 1;