Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
GrxUIonEclipse-project-0.9.8
src
com
generalrobotix
ui
view
graph
SEBoolean.java
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2008, AIST, the University of Tokyo and General Robotix Inc.
3
* All rights reserved. This program is made available under the terms of the
4
* Eclipse Public License v1.0 which accompanies this distribution, and is
5
* available at http://www.eclipse.org/legal/epl-v10.html
6
* Contributors:
7
* General Robotix Inc.
8
* National Institute of Advanced Industrial Science and Technology (AIST)
9
*/
17
package
com.generalrobotix.ui.view.graph;
18
19
public
class
SEBoolean
extends
SEEnumeration
{
20
Boolean value_;
21
static
String[] __s = {
"false"
,
"true"
};
22
23
24
public
SEBoolean
(String s) {
25
super(__s, 0);
26
fromString
(s);
27
};
28
29
public
SEBoolean
() {
30
super(__s, 0);
31
value_ =
new
Boolean(
false
);
32
};
33
39
public
SEBoolean
(
boolean
value
) {
40
super(__s,
_getSelect
(value));
41
value_ =
new
Boolean(value);
42
};
43
44
45
private
static
int
_getSelect
(
boolean
b
) {
46
return
b ? 1 : 0;
47
}
48
54
public
String
toString
() {
55
return
value_.toString();
56
}
57
64
public
Object
fromString
(String str) {
65
value_ = Boolean.valueOf(str);
66
selection_ =
_getSelect
(value_.booleanValue());
67
return
(Object)value_;
68
}
69
75
public
void
setValue
(Object
value
) {
76
value_ = (Boolean)value;
77
selection_ =
_getSelect
(value_.booleanValue());
78
}
79
85
public
void
setValue
(String str) {
86
value_ = Boolean.valueOf(str);
87
selection_ =
_getSelect
(value_.booleanValue());
88
}
89
95
public
Object
getValue
() {
96
return
(Object)value_;
97
}
98
104
public
boolean
booleanValue
() {
105
return
value_.booleanValue();
106
}
107
};
com.generalrobotix.ui.view.graph.SEBoolean.SEBoolean
SEBoolean(boolean value)
Definition:
SEBoolean.java:39
com.generalrobotix.ui.view.graph.SEBoolean._getSelect
static int _getSelect(boolean b)
Definition:
SEBoolean.java:45
com.generalrobotix.ui.view.graph.SEBoolean.fromString
Object fromString(String str)
Definition:
SEBoolean.java:64
value
png_voidp int value
Definition:
png.h:2113
com.generalrobotix.ui.view.graph.SEBoolean.setValue
void setValue(String str)
Definition:
SEBoolean.java:85
com.generalrobotix.ui.view.graph.SEBoolean
Definition:
SEBoolean.java:19
b
long b
Definition:
jpegint.h:371
com.generalrobotix.ui.view.graph.SEBoolean.booleanValue
boolean booleanValue()
Definition:
SEBoolean.java:104
com.generalrobotix.ui.view.graph.SEEnumeration
Definition:
SEEnumeration.java:21
com.generalrobotix.ui.view.graph.SEBoolean.getValue
Object getValue()
Definition:
SEBoolean.java:95
com.generalrobotix.ui.view.graph.SEBoolean.SEBoolean
SEBoolean(String s)
Definition:
SEBoolean.java:24
com.generalrobotix.ui.view.graph.SEBoolean.toString
String toString()
Definition:
SEBoolean.java:54
com.generalrobotix.ui.view.graph.SEBoolean.SEBoolean
SEBoolean()
Definition:
SEBoolean.java:29
com.generalrobotix.ui.view.graph.SEBoolean.setValue
void setValue(Object value)
Definition:
SEBoolean.java:75
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:25