private Widget createAspectRatioListBox()
{
final ListBox box = new ListBox();
for (WCAspectRatio algo : WCAspectRatioRegistry.list())
box.addItem(algo.getDescription(), algo.getId());
box.setSelectedIndex(findIndex(box, setting.getAspectRatio().getId()));
box.addChangeHandler(new ChangeHandler()
{
public void onChange(ChangeEvent event)
{
WCAspectRatio value = WCAspectRatioRegistry.getById(box.getValue(box.getSelectedIndex()));
setting.setAspectRatio(value);
}
});
box.setTitle("Desired aspect ratio of the drawing");
return box;
}
SettingsPanel.java 文件源码
java
阅读 31
收藏 0
点赞 0
评论 0
项目:swcv
作者:
评论列表
文章目录