Note: When Using jigloo, I encountered many difficulties and gained a lot. When using jigloo, I can only use the original English document, so I was eager to translate this document, A little bit of the limelight of "newborn calf! This article is written by the author from the help documentation of jigloo, and I hope to help you.
Introduction to the author: A junior who is fond of Java. If the translation is incorrect or incorrect, I hope you will kindly advise me. Thank you!
Please refer to the author's blog for reprinting.
Jigloo GUI user manual
Introduction
Jigloo is an Eclipse plug-in developed by cloudgarden. It allows you to use sun's swing and eclipse's SWT toolkit to create and manage graphical user interfaces. This plug-in can be used for non-commercial development for free, but for commercial purposes, you need to purchase professional certification, you can visit the official website: www.cloudgarden.com.
Jigloo creates and manages almost all gui components, including processing events and GUI components that can be displayed during compilation, allows you to experience complex GUI component features such as swing gridbaglayou or SWT formlayout, which provides both advanced and efficientCodeGeneration feature-precisely controls code generation and decomposition, as well as explicit inheritance and custom controls.
With jigloo, you can save a lot of time when developing and maintaining the GUI, and because the jigloo GUI generation tool is integrated in eclipse, the excellent code management functions of eclipse are also used by the code generated by jigloo.
With jigloo, you can manage the Java classes created previously by some IDES (integrated development tools) such as JBuilder and netbeans. It can handle a lot of constructed GUI code in the same way, although it cannot handle exceptions, you can view the descriptions in the help documentation for these restrictions.
Jigloo supports explicit inheritance (visual inheritance)-It can compile classes extended by other visual classes (for example: A common shopframe class is extended from the jfame class and has a common label and a container for customization. A flowershop class extends from the shopframe class and customizes the inherited common components). jigloo can be used to design various class libraries, these class libraries can be extended from any other visual class ------- even abstract or non-public class libraries, but some small changes need to be made to the Code.
Specifically, the jigloo GUI compiler provides the following features:
Basic features:
1. compile a complete Java class for GUI components in SWT or swing using an easy-to-use, visible editor.
2. Bidirectional Java code editing ------ modifications made by the designer are modified in the code box, and modifications made in the Code box are also reflected in the designer.
3. Ability to organize and manage code generated by other methods such as manual or other IDES (such as netbeans, JBuilder, VEP, etc.
4. Explicit inheritance is supported. It can be used to edit and extend the class from other customizable visual classes.
5. An optional component Panel can be used to add components or set the layout.
6. You canSource codeIt is easy to browse with the designer-the selections made in the designer can be located in the code box, and vice versa.
7. You can select multiple components ------ To set attributes, layout parameters, and copy, cut, paste, and delete operations.
8. Right-click the menu option to add components and set the layout.
9. Create event processing-you can process all component events.
10. You can quickly use a simple create dialog box to create components, initialize text, images, and layout items.
11. For basic editing commands, "Move up/down" can be used to organize various components like copy/CUT/paste/delet.
12. Unlimited restoration/Redo, which can accommodate various operations (such as setting attributes, layout, layout constraints, cut, paste, add, delete, and move ).
13. You can drag and drop the GUI editor and outline view within and between components.
14. The Java code and GUI Component view is in a single Editor-either a panel with a scroll bar or an optional label layout.
15. micromodules are generated for some components (such as jtable, jspinner, and jlist) and can be split into modules from the code.
Code processing:
1. There are many ways to customize Java code snippets.
@ During GUI compilation, the code block of indirect link can be hidden from jigloo by annotator,
@ During Code Decomposition, classes that will be inherited by jigloo can be controlled at a good level.
Code generated by jigloo can also be customized:
@ Can follow the conventions of existing code (for example, JBuilder uses getter mothods to initialize its components, while jigloo can discover and use this format)
@ You can use braces, empty rows, or user-defined comments.
Layout:
1. process all swing and SWT layouts (including gridbag, form, and absolute layouts ).
2. The Delphi/Visual Studio layout management module can be used for SWT formlayou (and swing anchorlayout ).
3. Change the grid attribute in swing gridbaglayouts in an intuitive way (with the mouse drag and drop.
4. Snap grid allows you to adjust the size of a widget and a grid of 5 to 20 pixels.
5. In the container, you can drag and drop components with the mouse to relocate and resize them.
Advanced topics:
1. Explicit inheritance
2. custom components (swing or SWT) can be added to the GUI.
3. Non-Visual classes can be added to the GUI and their attributes will be added to the attribute editing area.
4. Some component classes in the GUI can be modified in the context menu options.
5. Some of the GUI classes can be extracted and saved as new classes.
6. It is easy to access the swing, SWT components and javadoc in the layout.
7. You can preview or run the generated Java code from the toolbar button.
8. Convert (bidirectional) in the swing and SWT components ).