盾怪网教程:是一个免费提供流行杀毒软件教程、在线学习分享的学习平台!

开发Eclipse下的自定义控件

时间:2024/12/31作者:未知来源:盾怪网教程人气:

[摘要]index < 0) return; oldRowSel = rowSel; rowSel = index; selectionChanged(); public int getS...
index < 0)
   return;
  oldRowSel = rowSel;
  rowSel = index;
  selectionChanged();
}
public int getSelectionIndex() {
  return rowSel;
}
public int getItemHeight() {
  return lineHeight;
}
public void setItemHeight(int height) {
  lineHeight = height;
}
public int getItemCount() {
  return colors.size();
}
public void add(int colorIndex, String colorName) {
  colorNames.add(colorName);
  colors.add(new Integer(colorIndex));
}
  


我们开发的控件的使用也是非常简单的。


CustomList customlist = new CustomList( parent, SWT.V_SCROLL

关键词:开发Eclipse下的自定义控件




Copyright © 2012-2018 盾怪网教程(http://www.dunguai.com) .All Rights Reserved 网站地图 友情链接

免责声明:本站资源均来自互联网收集 如有侵犯到您利益的地方请及时联系管理删除,敬请见谅!

QQ:1006262270   邮箱:kfyvi376850063@126.com   手机版