tesseract  3.03
/usr/local/google/home/jbreiden/tesseract-ocr-read-only/java/com/google/scrollview/ui/SVSubMenuItem.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 javax.swing.JMenu;
00023 
00025 class SVSubMenuItem extends SVAbstractMenuItem {
00026   public SVSubMenuItem(String name, JMenu jli) {
00027     super(-1, name, jli);
00028   }
00030   @Override
00031   public void add(SVAbstractMenuItem mli) {
00032     mi.add(mli.mi);
00033   }
00035   @Override
00036   public void add(JMenu jli) {
00037     mi.add(jli);
00038   }
00039 }
00040 
00041 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines