Source code: com/virtuosotechnologies/lib/basiccommand/BasicToggleItemCommandNode.java
1 /*
2 ================================================================================
3
4 FILE: BasicToggleItemCommandNode.java
5
6 PROJECT:
7
8 Virtuoso Utilities
9
10 CONTENTS:
11
12 A node representing a toggle action. Normally, you do not implement
13 commandInvoked for these types of command nodes, but instead listen
14 for changes to the SELECTION_STATE_PROPERTY property.
15
16 PROGRAMMERS:
17
18 Daniel Azuma (DA) <dazuma@kagi.com>
19
20 COPYRIGHT:
21
22 Copyright (C) 2003 Daniel Azuma (dazuma@kagi.com)
23
24 This program is free software; you can redistribute it and/or
25 modify it under the terms of the GNU General Public License as
26 published by the Free Software Foundation; either version 2
27 of the License, or (at your option) any later version.
28
29 This program is distributed in the hope that it will be useful,
30 but WITHOUT ANY WARRANTY; without even the implied warranty of
31 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32 GNU General Public License for more details.
33
34 You should have received a copy of the GNU General Public
35 License along with this program; if not, write to
36 Free Software Foundation, Inc.
37 59 Temple Place, Suite 330
38 Boston, MA 02111-1307 USA
39
40 ================================================================================
41 */
42
43
44 package com.virtuosotechnologies.lib.basiccommand;
45
46
47 import com.virtuosotechnologies.lib.command.CommandNodeFlavor;
48 import com.virtuosotechnologies.lib.command.CommandEvent;
49
50
51 /**
52 * A node representing a toggle action. Normally, you do not implement
53 * commandInvoked for these types of command nodes, but instead listen
54 * for changes to the SELECTION_STATE_PROPERTY property.
55 */
56 public class BasicToggleItemCommandNode
57 extends BasicCommandNode
58 {
59 /**
60 * Constructor.
61 */
62 public BasicToggleItemCommandNode()
63 {
64 }
65
66
67 /**
68 * Get the flavor of CommandNode
69 */
70 public CommandNodeFlavor getFlavor()
71 {
72 return TOGGLEITEM_FLAVOR;
73 }
74
75
76 /**
77 * Invoke the command
78 */
79 public void commandInvoked(
80 CommandEvent ev)
81 {
82 }
83 }