标签样式 : 标签 « SWT « Java 教程

En
Java 教程
1. 语言基础
2. 数据类型
3. 操作符
4. 流程控制
5. 类定义
6. 开发相关
7. 反射
8. 正则表达式
9. 集合
10. 线
11. 文件
12. 泛型
13. 本土化
14. Swing
15. Swing事件
16. 二维图形
17. SWT
18. SWT 二维图形
19. 网络
20. 数据库
21. Hibernate
22. JPA
23. JSP
24. JSTL
25. Servlet
26. Web服务SOA
27. EJB3
28. Spring
29. PDF
30. 电子邮件
31. 基于J2ME
32. J2EE应用
33. XML
34. 设计模式
35. 日志
36. 安全
37. Apache工具
38. 蚂蚁编译
39. JUnit单元测试
Java
Java 教程 » SWT » 标签 
17. 13. 2. 标签样式
  1. You can combine them using the bitwise OR operator,
  2. You can specify only one alignment constant (SWT.LEFT, SWT.CENTER, or SWT.RIGHT).
  3. Many of the styles have an effect only when creating separators
StyleDescription
SWT.SEPARATORCreates a visual divider.
SWT.HORIZONTALUsed with SWT.SEPARATOR to create a horizontal separator.
SWT.VERTICALUsed with SWT.SEPARATOR to create a vertical separator. This is the default.
SWT.SHADOW_INUsed with SWT.SEPARATOR to draw a separator that appears recessed.
SWT.SHADOW_OUTUsed with SWT.SEPARATOR to draw a separator that appears extruded.
SWT.SHADOW_NONEUsed with SWT.SEPARATOR to draw a separator that appears unshadowed.
SWT.CENTEROrients the text or image in the center of this Label.
SWT.LEFTOrients the text or image to the left of this Label.
SWT.RIGHTOrients the text or image to the right of this Label.
SWT.WRAPCreates a Label that can wrap. Support for wrapped labels depends on the layout manager and is spotty.


17. 13. 标签
17. 13. 1. 标签
17. 13. 2. 标签样式
17. 13. 3. 添加标签到窗口添加标签到窗口
17. 13. 4. 使用标签作为分隔符使用标签作为分隔符
17. 13. 5. 标签与边界标签与边界
17. 13. 6. 水平分离器标签水平分离器标签
17. 13. 7. 添加图片标签添加图片标签
17. 13. 8. 标签WRAP风格标签WRAP风格
17. 13. 9. SHADOW_IN, SHADOW_OUT, SHADOW_NONE: These three styles specify the shadow behavior of labels with the SEPARATOR style.SHADOW_IN, SHADOW_OUT, SHADOW_NONE: These three styles specify the shadow behavior of labels with the SEPARATOR style.
17. 13. 10. LEFT, RIGHT, CENTER: These styles specify the text/image alignment in labels.LEFT, RIGHT, CENTER: These styles specify the text/image alignment in labels.
17. 13. 11. 标签边界( SWT.BORDER )标签边界( SWT.BORDER )
www.java2java.com | Contact Us
Copyright 2010 - 2030 Java Source and Support. All rights reserved.
All other trademarks are property of their respective owners.