简体   繁体   English

如何在不同的外壳/显示器之间获取值-SWT

[英]How to get values between differents Shells/Displays - SWT

I'm beginner in SWT and I have a question about get values between differents Sheels/Displays. 我是SWT的初学者,我对在不同Sheels / Displays之间获取值有疑问。

I have 2 screens, one to sell and other to products' search. 我有2个屏幕,一个用于销售,另一个用于产品搜索。

When I open a sale's screen, and found the product in search's screen, I need send to sale's screen, the result of search. 当我打开销售屏幕时,在搜索屏幕中找到产品时,我需要将搜索结果发送到销售屏幕。

The search's results are opened in a table, the row selected is loaded in sale's screen. 搜索结果在一个表中打开,所选行加载到销售屏幕中。

I don't know how to access sale's screen to load this values. 我不知道如何访问销售屏幕来加载此值。 Or through search's screen, to access fields in sale's screen and define values respective in fields the sale screen. 或通过搜索屏幕访问销售屏幕中的字段并定义销售屏幕中各个字段的值。

I would register sale's screen as a selection listener on search's screen table. 我会将销售的屏幕注册为搜索屏幕表上的选择侦听器。 Once record is selected on search screen sale's screen will get notified and can handle selection event as needed. 在搜索屏幕上选择记录后,销售屏幕将得到通知,并可以根据需要处理选择事件。 You can pass values from search screen to sale's screen in Event object. 您可以在事件对象中将值从搜索屏幕传递到销售屏幕。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM