Example Explanation: Developing Swing XML Frame (2)

zhaozj2021-02-16  44

How to implement concurrent processing

In this program developed using the framework, the developer of the panel can experience the flow of how to express information without worrying about the flow of user interfaces. Once the XML stream is defined, many developers can work simultaneously on each of the different panels of the application.

How to coordinate more relaxed development methods

An important feature of this framework is that the new panel will be able to add a process at any time. The output of the existing panel can also change only by modifying XML.

In our program, if the logged in user is an administrator, we need to provide another User Option to view the manager's task panel through the primary directory. This only needs to be added to the extra code below.

The following code should be added to Xfspanels:

The following code should be added to XfspanelFlow:

This framework works on XML flow, and when it is modified, the flow is automatically modified. It can be noted that once the XML stream changes, the developer can focus on the development manager's task panel to modify the main directory. And don't worry about the flow of the panel because it is concerned by the controller of the frame.

in conclusion

The need for Ui applications is often changing, and this framework can help you easily deal with these changes. Although Java is based on a framework, this model disclosed in this article can be applied in any language and development environment. The Swing Application Framework only explains the mode in the GUI application.

Translated by caiyi0903 (Willpower), 2004.5.23

转载请注明原文地址:https://www.9cbs.com/read-24910.html

New Post(0)