Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
SVEmptyMenuItem.java
Go to the documentation of this file.
1
// Copyright 2007 Google Inc. All Rights Reserved.
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License"); You may not
4
// use this file except in compliance with the License. You may obtain a copy of
5
// the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by
6
// applicable law or agreed to in writing, software distributed under the
7
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
8
// OF ANY KIND, either express or implied. See the License for the specific
9
// language governing permissions and limitations under the License.
10
11
package
com.google.scrollview.ui;
12
22
import
com
.
google
.
scrollview
.
ScrollView
;
23
import
com
.
google
.
scrollview
.
events
.
SVEvent
;
24
import
com
.
google
.
scrollview
.
events
.
SVEventType
;
25
26
import
javax.swing.JMenuItem;
27
33
class
SVEmptyMenuItem
extends
SVAbstractMenuItem {
34
SVEmptyMenuItem(
int
id
, String
name
) {
35
super(
id
, name,
new
JMenuItem(name));
36
}
38
@Override
39
public
void
performAction(SVWindow window,
SVEventType
eventType) {
40
// Send an event indicating that someone clicked on an entry.
41
// Value will be null here.
42
SVEvent
svme =
43
new
SVEvent
(eventType, window,
id
, getValue());
44
ScrollView
.addMessage(svme);
45
}
46
}
47
48
com.google
SVEvent
Definition:
scrollview.h:61
SVEventType
SVEventType
Definition:
scrollview.h:45
com.google.scrollview.events.SVEventType
Definition:
SVEventType.java:20
name
name_table name
Definition:
GlyphLessFont.c:308
com.google.scrollview.events.SVEvent
Definition:
SVEvent.java:21
com.google.scrollview.events
Definition:
SVEvent.java:11
com.google.scrollview.ScrollView
Definition:
ScrollView.java:32
com.google.scrollview
ScrollView
Definition:
scrollview.h:102
com
java
com
google
scrollview
ui
SVEmptyMenuItem.java
Generated on Mon Jul 20 2015 18:37:54 by
1.8.8