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