603 void setPData(Cursor cursor, long pData);
604
605 /**
606 * Return type of the Cursor class
607 */
608 int getType(Cursor cursor);
609 }
610
611 /**
612 * An accessor for the MenuBar class
613 */
614 public interface MenuBarAccessor {
615 /**
616 * Returns help menu
617 */
618 Menu getHelpMenu(MenuBar menuBar);
619
620 /**
621 * Returns menus
622 */
623 Vector getMenus(MenuBar menuBar);
624 }
625
626 /**
627 * An accessor for the MenuItem class
628 */
629 public interface MenuItemAccessor {
630 /**
631 * Returns whether menu item is enabled
632 */
633 boolean isEnabled(MenuItem item);
634
635 /**
636 * Gets the command name of the action event that is fired
637 * by this menu item.
638 */
639 String getActionCommandImpl(MenuItem item);
640
641 /**
642 * Returns true if the item and all its ancestors are
643 * enabled, false otherwise
645 boolean isItemEnabled(MenuItem item);
646
647 /**
648 * Returns label
649 */
650 String getLabel(MenuItem item);
651
652 /**
653 * Returns shortcut
654 */
655 MenuShortcut getShortcut(MenuItem item);
656 }
657
658 /**
659 * An accessor for the Menu class
660 */
661 public interface MenuAccessor {
662 /**
663 * Returns vector of the items that are part of the Menu
664 */
665 Vector getItems(Menu menu);
666 }
667
668 /**
669 * An accessor for the KeyEvent class
670 */
671 public interface KeyEventAccessor {
672 /**
673 * Sets rawCode field for KeyEvent
674 */
675 void setRawCode(KeyEvent ev, long rawCode);
676
677 /**
678 * Sets primaryLevelUnicode field for KeyEvent
679 */
680 void setPrimaryLevelUnicode(KeyEvent ev, long primaryLevelUnicode);
681
682 /**
683 * Sets extendedKeyCode field for KeyEvent
684 */
685 void setExtendedKeyCode(KeyEvent ev, long extendedKeyCode);
|
603 void setPData(Cursor cursor, long pData);
604
605 /**
606 * Return type of the Cursor class
607 */
608 int getType(Cursor cursor);
609 }
610
611 /**
612 * An accessor for the MenuBar class
613 */
614 public interface MenuBarAccessor {
615 /**
616 * Returns help menu
617 */
618 Menu getHelpMenu(MenuBar menuBar);
619
620 /**
621 * Returns menus
622 */
623 Vector<Menu> getMenus(MenuBar menuBar);
624 }
625
626 /**
627 * An accessor for the MenuItem class
628 */
629 public interface MenuItemAccessor {
630 /**
631 * Returns whether menu item is enabled
632 */
633 boolean isEnabled(MenuItem item);
634
635 /**
636 * Gets the command name of the action event that is fired
637 * by this menu item.
638 */
639 String getActionCommandImpl(MenuItem item);
640
641 /**
642 * Returns true if the item and all its ancestors are
643 * enabled, false otherwise
645 boolean isItemEnabled(MenuItem item);
646
647 /**
648 * Returns label
649 */
650 String getLabel(MenuItem item);
651
652 /**
653 * Returns shortcut
654 */
655 MenuShortcut getShortcut(MenuItem item);
656 }
657
658 /**
659 * An accessor for the Menu class
660 */
661 public interface MenuAccessor {
662 /**
663 * Returns vector of the items that are part of the Menu
664 */
665 Vector<MenuItem> getItems(Menu menu);
666 }
667
668 /**
669 * An accessor for the KeyEvent class
670 */
671 public interface KeyEventAccessor {
672 /**
673 * Sets rawCode field for KeyEvent
674 */
675 void setRawCode(KeyEvent ev, long rawCode);
676
677 /**
678 * Sets primaryLevelUnicode field for KeyEvent
679 */
680 void setPrimaryLevelUnicode(KeyEvent ev, long primaryLevelUnicode);
681
682 /**
683 * Sets extendedKeyCode field for KeyEvent
684 */
685 void setExtendedKeyCode(KeyEvent ev, long extendedKeyCode);
|