Package Name: java.awt.menucomponent

Return to: Package List


with java.lang; use java.lang;
with java.awt.Font; use java.awt.Font;
with java.lang.String; use java.lang.String;
with java.awt.Event; use java.awt.Event;
-- with java.awt.MenuContainer; use java.awt.MenuContainer; -- circular

package java.awt.MenuComponent is
    type MenuComponent_Obj is abstract new Object with null record;

    type MenuComponent_Ptr is access all MenuComponent_Obj'Class;

    function getFont(Obj : access MenuComponent_Obj) return Font_Ptr;
    procedure setFont(Obj : access MenuComponent_Obj;

        f : Font_Ptr);

    procedure removeNotify(Obj : access MenuComponent_Obj);
    function postEvent(Obj : access MenuComponent_Obj;
        evt : Event_Ptr)

      return Boolean;

    function toString(Obj : access MenuComponent_Obj) return String_Ptr;

    procedure init_MenuComponent(Obj : access MenuComponent_Obj'Class);
    pragma Import(Java, removeNotify);
    pragma Import(Java, setFont);
    pragma Import(Java, getFont);
    pragma Import(Java, toString);

    pragma Import(Java, postEvent);

    pragma Import(Java_Constructor, init_MenuComponent);
end java.awt.MenuComponent;