http://www.eteks.com

com.eteks.awt
Class PJAMenuComponentPeer

java.lang.Object
  extended bycom.eteks.awt.PJAMenuComponentPeer
All Implemented Interfaces:
java.awt.peer.CheckboxMenuItemPeer, java.awt.peer.MenuBarPeer, java.awt.peer.MenuComponentPeer, java.awt.peer.MenuItemPeer, java.awt.peer.MenuPeer, java.awt.peer.PopupMenuPeer

public class PJAMenuComponentPeer
extends java.lang.Object
implements java.awt.peer.MenuBarPeer, java.awt.peer.MenuComponentPeer, java.awt.peer.MenuItemPeer, java.awt.peer.MenuPeer, java.awt.peer.PopupMenuPeer, java.awt.peer.CheckboxMenuItemPeer

Pure Java AWT Menu Component Peer. This implementation enables to create dummy menu components. It was added because menu peer interfaces don't belong to component peer interfaces hierarchy.

Since:
PJA1.2
Version:
2.1
Author:
Emmanuel Puybaret
See Also:
PJAToolkit

Constructor Summary
PJAMenuComponentPeer(java.awt.MenuComponent menuComponent)
           
 
Method Summary
 void addHelpMenu(java.awt.Menu m)
           
 void addItem(java.awt.MenuItem item)
           
 void addMenu(java.awt.Menu m)
           
 void addSeparator()
           
 void delItem(int index)
           
 void delMenu(int index)
           
 void disable()
           
 void dispose()
           
 void enable()
           
 void setEnabled(boolean b)
           
 void setLabel(java.lang.String label)
           
 void setState(boolean state)
           
 void show(java.awt.Event e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PJAMenuComponentPeer

public PJAMenuComponentPeer(java.awt.MenuComponent menuComponent)
Method Detail

dispose

public void dispose()
Specified by:
dispose in interface java.awt.peer.MenuComponentPeer

addMenu

public void addMenu(java.awt.Menu m)
Specified by:
addMenu in interface java.awt.peer.MenuBarPeer

delMenu

public void delMenu(int index)
Specified by:
delMenu in interface java.awt.peer.MenuBarPeer

addHelpMenu

public void addHelpMenu(java.awt.Menu m)
Specified by:
addHelpMenu in interface java.awt.peer.MenuBarPeer

addSeparator

public void addSeparator()
Specified by:
addSeparator in interface java.awt.peer.MenuPeer

addItem

public void addItem(java.awt.MenuItem item)
Specified by:
addItem in interface java.awt.peer.MenuPeer

delItem

public void delItem(int index)
Specified by:
delItem in interface java.awt.peer.MenuPeer

enable

public void enable()
Specified by:
enable in interface java.awt.peer.MenuItemPeer

disable

public void disable()
Specified by:
disable in interface java.awt.peer.MenuItemPeer

setEnabled

public void setEnabled(boolean b)
Specified by:
setEnabled in interface java.awt.peer.MenuItemPeer

setLabel

public void setLabel(java.lang.String label)
Specified by:
setLabel in interface java.awt.peer.MenuItemPeer

show

public void show(java.awt.Event e)
Specified by:
show in interface java.awt.peer.PopupMenuPeer

setState

public void setState(boolean state)
Specified by:
setState in interface java.awt.peer.CheckboxMenuItemPeer

© 1997-2003 eTeks - All rights reserved