1 package org.simantics.sysdyn.ui.properties.widgets.expressions;
\r
3 import java.util.Collections;
\r
4 import java.util.List;
\r
5 import java.util.Map;
\r
7 import org.eclipse.jface.layout.GridLayoutFactory;
\r
8 import org.eclipse.swt.SWT;
\r
9 import org.eclipse.swt.events.FocusListener;
\r
10 import org.eclipse.swt.events.KeyListener;
\r
11 import org.eclipse.swt.events.ModifyListener;
\r
12 import org.eclipse.swt.widgets.Composite;
\r
13 import org.eclipse.swt.widgets.Label;
\r
14 import org.simantics.db.Resource;
\r
16 public class InputExpression implements IExpression {
\r
19 public void createExpressionFields(Composite parent, Map<String, Object> data) {
\r
20 GridLayoutFactory.fillDefaults().applyTo(parent);
\r
21 Label label = new Label(parent, SWT.NONE);
\r
22 label.setText("Input");
\r
26 public void readData(Resource variable, Map<String, Object> data) {
\r
27 // TODO Auto-generated method stub
\r
32 public void save(Resource variable, Map<String, Object> data) {
\r
33 // TODO Auto-generated method stub
\r
38 public void focus() {
\r
39 // TODO Auto-generated method stub
\r
44 public void replaceSelection(String var) {
\r
45 // TODO Auto-generated method stub
\r
50 public void updateData(Map<String, Object> data) {
\r
51 // TODO Auto-generated method stub
\r
55 @SuppressWarnings("unchecked")
\r
57 public List<ExpressionField> getExpressionFields() {
\r
58 // TODO Auto-generated method stub
\r
59 return Collections.EMPTY_LIST;
\r
63 public void addModifyListener(ModifyListener listener) {
\r
64 // TODO Auto-generated method stub
\r
69 public void addKeyListener(KeyListener listener) {
\r
70 // TODO Auto-generated method stub
\r
75 public void addFocusListener(FocusListener listener) {
\r
76 // TODO Auto-generated method stub
\r