首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >jide oss 3.1.1,缺少checkboxlistselectionmodel?

jide oss 3.1.1,缺少checkboxlistselectionmodel?
EN

Stack Overflow用户
提问于 2012-02-01 05:36:35
回答 1查看 132关注 0票数 0

我使用的是Jide OSS 3.1.1

在使用CheckBoxList时,我发现它缺少getCheckBoxListSectionModel?它在文档中,但是点运算符显示没有这样的东西。我想知道这是不是只有付费版本才有??

getSelectionModel(),但是使用它不会触发所选的事件。

代码语言:javascript
复制
    Object[] options = {"This Element","Similar Elements"};
            CheckBoxListWithSelectable checkboxlist = new CheckBoxListWithSelectable(options);
            int result = JOptionPane.showConfirmDialog(rootPane, checkboxlist, 
                       "Please Select Action(s) For This Element", JOptionPane.OK_CANCEL_OPTION);

            checkboxlist.getSelectionModel().addListSelectionListener(new ListSelectionListener() {

                @Override
                public void valueChanged(ListSelectionEvent e) {
                    // TODO Auto-generated method stub
                    System.out.println("selected");
                }
            });
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-02-01 05:59:54

我在老版本(2.10.*)中使用这种方法很好。但是看一下3.1.1的仓库,它就在source中。

另外,你在问题中把它拼错了。我希望你是在找getCheckBoxListSelectionModel()

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/9087314

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档