private ListBox createRankingListBox()
{
final ListBox box = new ListBox();
for (WCRankingAlgo algo : WCRankingAlgoRegistry.list())
box.addItem(algo.getDescription(), algo.getId());
box.setSelectedIndex(findIndex(box, setting.getRankingAlgorithm().getId()));
box.addChangeHandler(new ChangeHandler()
{
public void onChange(ChangeEvent event)
{
WCRankingAlgo value = WCRankingAlgoRegistry.getById(box.getValue(box.getSelectedIndex()));
setting.setRankingAlgorithm(value);
}
});
box.setTitle("Ranking method for computing word importance, which determines font size of each word");
return box;
}
SettingsPanel.java 文件源码
java
阅读 40
收藏 0
点赞 0
评论 0
项目:swcv
作者:
评论列表
文章目录