Package muntjac :: Package ui :: Module menu_bar
[hide private]
[frames] | no frames]

Source Code for Module muntjac.ui.menu_bar

  1  # Copyright (C) 2012 Vaadin Ltd.  
  2  # Copyright (C) 2012 Richard Lincoln 
  3  #  
  4  # Licensed under the Apache License, Version 2.0 (the "License");  
  5  # you may not use this file except in compliance with the License.  
  6  # You may obtain a copy of the License at  
  7  #  
  8  #     http://www.apache.org/licenses/LICENSE-2.0  
  9  #  
 10  # Unless required by applicable law or agreed to in writing, software  
 11  # distributed under the License is distributed on an "AS IS" BASIS,  
 12  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  
 13  # See the License for the specific language governing permissions and  
 14  # limitations under the License. 
 15   
 16  """Defines a horizontal menu bar.""" 
 17   
 18  from warnings import warn 
 19   
 20  from collections import deque 
 21   
 22  from muntjac.ui.abstract_component import AbstractComponent 
 23   
 24  from muntjac.terminal.gwt.client.ui.v_menu_bar import VMenuBar 
 25   
 26   
373   
374   
375 -class ICommand(object):
376 """This interface contains the layer for menu commands of the L{MenuBar} 377 class. It's method will fire when the user clicks on the containing 378 L{MenuItem}. The selected item is given as an argument. 379 """ 380
381 - def menuSelected(self, selectedItem):
382 raise NotImplementedError
383 384 810