src/solaris/classes/sun/awt/X11/XToolkit.java

Print this page




1044     public WindowPeer createWindow(Window target) {
1045         WindowPeer peer = new XWindowPeer(target);
1046         targetCreatedPeer(target, peer);
1047         return peer;
1048     }
1049 
1050     public DialogPeer createDialog(Dialog target) {
1051         DialogPeer peer = new XDialogPeer(target);
1052         targetCreatedPeer(target, peer);
1053         return peer;
1054     }
1055 
1056     public FileDialogPeer createFileDialog(FileDialog target) {
1057         // The current GtkFileChooser is available from GTK+ 2.4
1058         FileDialogPeer peer = checkGtkVersion(2, 4, 0) ? new GtkFileDialogPeer(
1059                 target) : new XFileDialogPeer(target);
1060         targetCreatedPeer(target, peer);
1061         return peer;
1062     }
1063 








1064     public MenuBarPeer createMenuBar(MenuBar target) {
1065         XMenuBarPeer peer = new XMenuBarPeer(target);
1066         targetCreatedPeer(target, peer);
1067         return peer;
1068     }
1069 
1070     public MenuPeer createMenu(Menu target) {
1071         XMenuPeer peer = new XMenuPeer(target);
1072         //vb157120: looks like we don't need to map menu items
1073         //in new menus implementation
1074         //targetCreatedPeer(target, peer);
1075         return peer;
1076     }
1077 
1078     public PopupMenuPeer createPopupMenu(PopupMenu target) {
1079         XPopupMenuPeer peer = new XPopupMenuPeer(target);
1080         targetCreatedPeer(target, peer);
1081         return peer;
1082     }
1083 




1044     public WindowPeer createWindow(Window target) {
1045         WindowPeer peer = new XWindowPeer(target);
1046         targetCreatedPeer(target, peer);
1047         return peer;
1048     }
1049 
1050     public DialogPeer createDialog(Dialog target) {
1051         DialogPeer peer = new XDialogPeer(target);
1052         targetCreatedPeer(target, peer);
1053         return peer;
1054     }
1055 
1056     public FileDialogPeer createFileDialog(FileDialog target) {
1057         // The current GtkFileChooser is available from GTK+ 2.4
1058         FileDialogPeer peer = checkGtkVersion(2, 4, 0) ? new GtkFileDialogPeer(
1059                 target) : new XFileDialogPeer(target);
1060         targetCreatedPeer(target, peer);
1061         return peer;
1062     }
1063     
1064     public DirectoryDialogPeer createDirectoryDialog(DirectoryDialog target) {
1065         DirectoryDialogPeer peer = checkGtkVersion(2, 4, 0) ? 
1066                 new GtkDirectoryDialogPeer(target)
1067                 : new XDirectoryDialogPeer(target);
1068         targetCreatedPeer(target, peer);
1069         return peer;
1070     }
1071 
1072     public MenuBarPeer createMenuBar(MenuBar target) {
1073         XMenuBarPeer peer = new XMenuBarPeer(target);
1074         targetCreatedPeer(target, peer);
1075         return peer;
1076     }
1077 
1078     public MenuPeer createMenu(Menu target) {
1079         XMenuPeer peer = new XMenuPeer(target);
1080         //vb157120: looks like we don't need to map menu items
1081         //in new menus implementation
1082         //targetCreatedPeer(target, peer);
1083         return peer;
1084     }
1085 
1086     public PopupMenuPeer createPopupMenu(PopupMenu target) {
1087         XPopupMenuPeer peer = new XPopupMenuPeer(target);
1088         targetCreatedPeer(target, peer);
1089         return peer;
1090     }
1091