جیفیس
جیفیس (به انگلیسی: JFace) توسط پروژهٔ اکلیپس «به عنوان یک بستهٔ ابزار واسط کاربر که کلاسهای کمککننده جهت توسعهٔ قابلیتهای واسط کاربر که پیادهسازی آنها میتواند خستهکننده باشد ارائه میکند» تعریف شد.
محیط توسعهٔ یکپارچهٔ اکلیپس، یک اپلیکیشن بر پایهٔ جیفیس | |
توسعهدهنده(ها) | بنیاد اکلیپس |
---|---|
انتشار پایدار | ۳٫۹٫۱
۲۵ ژوئیه ۲۰۱۳ |
مخزن | |
سیستمعامل | چندسکویی |
در دسترس به | چند زبانه |
گونه | ابزار ویجت برای سکوی جاوا |
پروانه | پروانه عمومی اکلیپس |
وبگاه |
ساختار
نمونه
برنامهٔ زیر یک برنامهٔ سادهٔ سلام دنیا است که از جیفیس استفاده میکند.
import org.eclipse.jface.window.ApplicationWindow;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.*;
public class HelloWorld extends ApplicationWindow {
public static void main(String[] args) {
new HelloWorld().run();
}
public HelloWorld() {
super(null);
}
public void run() {
setBlockOnOpen(true);
open();
Display.getCurrent().dispose();
}
protected Control createContents(Composite parent) {
Label label = new Label(parent, SWT.CENTER);
label.setText("Hello, World");
return label;
}
}
منابع
کتابشناسی
- Scarpino, Matthew; Holder, Stephen; Ng, Stanford; Mihalkovic, Laurent (November 28, 2004), SWT/JFace in Action: GUI Design with Eclipse 3.0 (1st ed.), Manning Publications, p. 496, ISBN 1-932394-27-3
- Li Guojie, Jackwind (February 11, 2005), Professional Java Native Interfaces with SWT/JFace (1st ed.), Wrox Press, p. 528, ISBN 0-470-09459-1, archived from the original on 26 December 2014, retrieved 26 December 2014
- Harris, Robert; Warner, Rob (June 21, 2004), The Definitive Guide to SWT and JFACE (1st ed.), Apress, p. 684, ISBN 1-59059-325-1, archived from the original on 31 July 2009, retrieved 26 December 2014
پیوند به بیرون
- Wiki JFace
- Rich clients with the SWT and JFace
- Using the Eclipse GUI outside the Eclipse Workbench, Part 1: Using JFace and SWT in stand-alone mode, by Adrian Emmenis
- Using the Eclipse GUI outside the Eclipse Workbench, Part 2: Using the JFace image registry, by Adrian Emmenis