GrxUIonEclipse-project-0.9.8
src
com
generalrobotix
ui
util
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
6
import
com
.
generalrobotix
.
ui
.
GrxBaseItem
;
7
import
com
.
generalrobotix
.
ui
.
view
.
graph
.
SEDoubleTextWithSpinForSWT
;
8
9
10
//SEDouble型の値を設定するSWT用スピナーを提供するクラス
11
12
public
class
ItemPropertyDoubleSpinForSWT
extends
SEDoubleTextWithSpinForSWT
{
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
{
23
updateProperty
(
text2value
());
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
}
com.generalrobotix.ui.view.graph.SEDoubleTextWithSpinForSWT
Definition:
SEDoubleTextWithSpinForSWT.java:23
autoplay.item
item
Definition:
autoplay.py:11
com.generalrobotix.ui.util.ItemPropertyDoubleSpinForSWT.updateValue
void updateValue()
Definition:
ItemPropertyDoubleSpinForSWT.java:21
com.generalrobotix.ui
null
#define null
our own NULL pointer
Definition:
IceTypes.h:57
hrp::min
static int min(int a, int b)
Definition:
MatrixSolvers.cpp:55
com.generalrobotix.ui.view.graph.SEDoubleTextWithSpinForSWT.text2value
double text2value()
Definition:
SEDoubleTextWithSpinForSWT.java:217
com
com.generalrobotix.ui.util.ItemPropertyDoubleSpinForSWT.item_
GrxBaseItem item_
Definition:
ItemPropertyDoubleSpinForSWT.java:14
com.generalrobotix.ui.view
com.generalrobotix.ui.util.GrxConfigBundle.setDbl
final void setDbl(String key, double value)
associate double value to key
Definition:
GrxConfigBundle.java:393
com.generalrobotix.ui.util.ItemPropertyDoubleSpinForSWT
Definition:
ItemPropertyDoubleSpinForSWT.java:12
com.generalrobotix.ui.util.ItemPropertyDoubleSpinForSWT.setItem
void setItem(GrxBaseItem item)
Definition:
ItemPropertyDoubleSpinForSWT.java:34
com.generalrobotix.ui.util.ItemPropertyDoubleSpinForSWT.ItemPropertyDoubleSpinForSWT
ItemPropertyDoubleSpinForSWT(Composite parent, int style, double min, double max, double step)
Definition:
ItemPropertyDoubleSpinForSWT.java:17
com.generalrobotix.ui.util.ItemPropertyDoubleSpinForSWT.updateProperty
void updateProperty(double v)
Definition:
ItemPropertyDoubleSpinForSWT.java:26
com.generalrobotix.ui.util.ItemPropertyDoubleSpinForSWT.setKey
void setKey(String key)
Definition:
ItemPropertyDoubleSpinForSWT.java:38
com.generalrobotix.ui.GrxBaseItem
Definition:
GrxBaseItem.java:35
org
org
com.generalrobotix.ui.view.graph.SEDoubleTextWithSpinForSWT.isOk
boolean isOk(double v)
Definition:
SEDoubleTextWithSpinForSWT.java:248
com.generalrobotix.ui.view.graph
Definition:
AttributeInfo.java:10
hrp::max
static int max(int a, int b)
Definition:
MatrixSolvers.cpp:54
com.generalrobotix.ui.util.ItemPropertyDoubleSpinForSWT.key_
String key_
Definition:
ItemPropertyDoubleSpinForSWT.java:15
com.generalrobotix
openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Thu Sep 8 2022 02:24:04