Synthia
Generic and flexible data structure generator
ChooseAction.java
Go to the documentation of this file.
1
/*
2
Synthia, a data structure generator
3
Copyright (C) 2019-2021 Laboratoire d'informatique formelle
4
Université du Québec à Chicoutimi, Canada
5
6
This program is free software: you can redistribute it and/or modify
7
it under the terms of the GNU Lesser General Public License as published
8
by the Free Software Foundation, either version 3 of the License, or
9
(at your option) any later version.
10
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU Lesser General Public License for more details.
15
16
You should have received a copy of the GNU Lesser General Public License
17
along with this program. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
package
ca.uqac.lif.synthia.widget;
20
21
import
java.awt.event.ActionEvent;
22
import
java.util.Set;
23
24
import
ca
.
uqac
.
lif
.
synthia
.
Picker
;
25
import
ca
.
uqac
.
lif
.
synthia
.
Reactive
;
26
27
public
class
ChooseAction
implements
Reactive
<Set<Object>,ActionEvent>
28
{
29
/**
30
* The set of objects on which actions can be made.
31
*/
32
Set<Object> m_contents;
33
34
@Override
35
public
void
reset
()
36
{
37
// TODO Auto-generated method stub
38
39
}
40
41
@Override
42
public
ActionEvent
pick
()
43
{
44
// TODO Auto-generated method stub
45
return
null
;
46
}
47
48
@Override
49
public
ChooseAction
duplicate
(
boolean
with_state)
50
{
51
return
new
ChooseAction
();
52
}
53
54
@Override
55
public
void
tell
(Set<Object> objects)
56
{
57
m_contents = objects;
58
}
59
}
ca.uqac.lif.synthia.Picker
Picks an object.
Definition:
Picker.java:36
ca.uqac.lif.synthia.widget.ChooseAction
Definition:
ChooseAction.java:27
ca.uqac.lif.synthia.Reactive
Interface implemented by pickers whose picking of objects can be altered by external information.
Definition:
Reactive.java:43
ca.uqac
ca.uqac.lif.synthia
Definition:
Bounded.java:19
ca.uqac.lif.synthia.widget.ChooseAction.duplicate
ChooseAction duplicate(boolean with_state)
Creates a copy of the picker.
Definition:
ChooseAction.java:49
ca.uqac.lif.synthia.widget.ChooseAction.tell
void tell(Set< Object > objects)
Definition:
ChooseAction.java:55
ca.uqac.lif
ca
ca.uqac.lif.synthia.widget.ChooseAction.reset
void reset()
Puts the picker back into its initial state.
Definition:
ChooseAction.java:35
ca.uqac.lif.synthia.widget.ChooseAction.pick
ActionEvent pick()
Picks an object.
Definition:
ChooseAction.java:42
Source
Widget
src
ca
uqac
lif
synthia
widget
ChooseAction.java
Generated by
1.8.17