package org.tizen.device.battery.page;
import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.events.SelectionListener;
+//import org.eclipse.swt.events.SelectionListener;
+import org.eclipse.swt.events.MouseListener;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
gd.widthHint = 24;
sliderText.setLayoutData(gd);
sendData = slider.getSelection();
+ /*
slider.addSelectionListener(new SelectionListener() {
@Override
public void widgetDefaultSelected(SelectionEvent e) {
sendMessage(sendData, sensorOn);
}
});
-
+ */
+ slider.addMouseListener(new MouseListener() {
+ @Override
+ public void mouseDoubleClick(MouseEvent e) {
+ }
+ @Override
+ public void mouseDown(MouseEvent e) {
+ }
+ @Override
+ public void mouseUp(MouseEvent e) {
+ sendData = slider.getSelection();
+ sliderText.setText(Integer.toString(sendData));
+ sendMessage(sendData, sensorOn);
+ }
+ });
+
Composite secondComposite = formUtil.createComposite(parent, 5);
formUtil.createLabel(secondComposite, batteryCharger);
radioButton = new Button[2];
package org.tizen.device.rssi.page;
import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.events.SelectionListener;
+import org.eclipse.swt.events.MouseEvent;
+//import org.eclipse.swt.events.SelectionEvent;
+//import org.eclipse.swt.events.SelectionListener;
+import org.eclipse.swt.events.MouseListener;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Slider;
gd.widthHint = 10;
sliderText.setLayoutData(gd);
sendData = slider.getSelection();
+ /*
slider.addSelectionListener(new SelectionListener() {
@Override
public void widgetDefaultSelected(SelectionEvent e) {
sendLevelMessage(sendData);
}
});
+ */
+ slider.addMouseListener(new MouseListener() {
+ @Override
+ public void mouseDoubleClick(MouseEvent e) {
+ }
+ @Override
+ public void mouseDown(MouseEvent e) {
+ }
+ @Override
+ public void mouseUp(MouseEvent e) {
+ sendData = slider.getSelection();
+ sliderText.setText(Integer.toString(sendData));
+ sendLevelMessage(sendData);
+ }
+ });
boolean connected = checkDeviceConnectedAlready();
if (connected == true) {
package org.tizen.sensor.proximity.page;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.events.SelectionListener;
+import org.eclipse.swt.events.MouseEvent;
+//import org.eclipse.swt.events.SelectionEvent;
+//import org.eclipse.swt.events.SelectionListener;
+import org.eclipse.swt.events.MouseListener;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Composite;
gd.widthHint = 20;
sliderText.setLayoutData(gd);
sendData = slider.getSelection();
-
+ /*
slider.addSelectionListener(new SelectionListener() {
@Override
public void widgetDefaultSelected(SelectionEvent e) {
sendMessage(sendData);
}
});
+ */
+ slider.addMouseListener(new MouseListener() {
+ @Override
+ public void mouseDoubleClick(MouseEvent e) {
+ }
+ @Override
+ public void mouseDown(MouseEvent e) {
+ }
+ @Override
+ public void mouseUp(MouseEvent e) {
+ sendData = slider.getSelection();
+ sliderText.setText(Integer.toString(sendData));
+ sendMessage(sendData);
+ }
+ });
boolean connected = checkDeviceConnectedAlready();
if (connected == true) {
Package:eventinjector-eplugin
-Version:0.2.7
+Version:0.2.8
OS:linux
Build-host-os:linux
Maintainer:yeongkyoon Lee <yeongkyoon.lee@samsung.com>, sungmin Ha <sungmin82.ha@samsung.com>
Source:eventinjector-eplugin
Package:eventinjector-eplugin
-Version:0.2.7
+Version:0.2.8
OS:windows
Build-host-os:linux
Maintainer:yeongkyoon Lee <yeongkyoon.lee@samsung.com>, sungmin Ha <sungmin82.ha@samsung.com>