ItemPropertyDoubleSpinForSWT.java
Go to the documentation of this file.
1 
2 package com.generalrobotix.ui.util;
3 
4 import org.eclipse.swt.widgets.Composite;
5 
8 
9 
10 //SEDouble型の値を設定するSWT用スピナーを提供するクラス
11 
13 
14  private GrxBaseItem item_;
15  private String key_;
16 
17  public ItemPropertyDoubleSpinForSWT(Composite parent,int style,double min,double max,double step){
18  super(parent, style, min, max, step);
19  }
20 
21  protected void updateValue()
22  {
24  }
25 
26  public void updateProperty(double v) {
27  if (isOk(v)) {
28  if (item_ != null && key_ != null){
29  item_.setDbl(key_, v);
30  }
31  }
32  }
33 
34  public void setItem(GrxBaseItem item) {
35  item_ = item;
36  }
37 
38  public void setKey(String key){
39  key_ = key;
40  }
41 }
#define null
our own NULL pointer
Definition: IceTypes.h:57
static int min(int a, int b)
final void setDbl(String key, double value)
associate double value to key
ItemPropertyDoubleSpinForSWT(Composite parent, int style, double min, double max, double step)
org
static int max(int a, int b)


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Sat Apr 13 2019 02:14:23