tesseract  3.03
/usr/local/google/home/jbreiden/tesseract-ocr-read-only/java/com/google/scrollview/ui/SVEmptyMenuItem.java
Go to the documentation of this file.
00001 // Copyright 2007 Google Inc. All Rights Reserved.
00002 //
00003 // Licensed under the Apache License, Version 2.0 (the "License"); You may not
00004 // use this file except in compliance with the License. You may obtain a copy of
00005 // the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by
00006 // applicable law or agreed to in writing, software distributed under the
00007 // License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
00008 // OF ANY KIND, either express or implied. See the License for the specific
00009 // language governing permissions and limitations under the License.
00010 
00011 package com.google.scrollview.ui;
00012 
00022 import com.google.scrollview.ScrollView;
00023 import com.google.scrollview.events.SVEvent;
00024 import com.google.scrollview.events.SVEventType;
00025 
00026 import javax.swing.JMenuItem;
00027 
00033 class SVEmptyMenuItem extends SVAbstractMenuItem {
00034   SVEmptyMenuItem(int id, String name) {
00035     super(id, name, new JMenuItem(name));
00036   }
00038   @Override
00039   public void performAction(SVWindow window, SVEventType eventType) {
00040   // Send an event indicating that someone clicked on an entry.
00041   // Value will be null here.
00042     SVEvent svme =
00043         new SVEvent(eventType, window, id, getValue());
00044     ScrollView.addMessage(svme);
00045   }
00046 }
00047 
00048 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines