Package open.dolphin.helper

Examples of open.dolphin.helper.ReflectAction


        this.setMinimumSize(dim);
        this.setMaximumSize(dim);
       
        // Embed popup menu
        appointMenu = new MyJPopupMenu();
        ReflectAction cancelAction = new ReflectAction("取り消し", this, "appointCancel");
        JMenuItem item = new JMenuItem(cancelAction);
        appointMenu.add(item);
                       
        // Table を DragTarget, 自身をリスナに設定する
        dragSource = new DragSource();
View Full Code Here


                Object obj = laboListTable.getTableModel().getObject(row);
                int selected = laboListTable.getTable().getSelectedRow();
               
                if (row == selected && obj != null) {
                    String pop1 = ClientContext.getString("watingList.popup.openKarte");
                    contextMenu.add(new JMenuItem(new ReflectAction(pop1, LaboTestImporter.this, "openKarte")));
                    contextMenu.show(e.getComponent(), e.getX(), e.getY());
                }
            }
        }
View Full Code Here

                String pop5 = "年齢表示";

                if (canOpen()) {
                    String pop1 = ClientContext.getString("watingList.popup.openKarte");
                    String pop2 = ClientContext.getString("watingList.popup.cancelVisit");
                    JMenuItem openKarte = new JMenuItem(new ReflectAction(pop1, WatingListImpl.this, "openKarte"));
                    JMenuItem cancelVisit = new JMenuItem(new ReflectAction(pop2, WatingListImpl.this, "cancelVisit"));
                    openKarte.setIconTextGap(8);
                    cancelVisit.setIconTextGap(8);
                    contextMenu.add(openKarte);
                    contextMenu.add(cancelVisit);
                    contextMenu.addSeparator();
                }

                JRadioButtonMenuItem oddEven = new JRadioButtonMenuItem(new ReflectAction(pop3, WatingListImpl.this, "switchRenderere"));
                JRadioButtonMenuItem sex = new JRadioButtonMenuItem(new ReflectAction(pop4, WatingListImpl.this, "switchRenderere"));
                ButtonGroup bg = new ButtonGroup();
                bg.add(oddEven);
                bg.add(sex);
                contextMenu.add(oddEven);
                contextMenu.add(sex);
View Full Code Here

                contextMenu.removeAll();

                if (canOpen()) {
                    String pop1 = ClientContext.getString("watingList.popup.openKarte");
                    JMenuItem openKarte = new JMenuItem(new ReflectAction(pop1, PatientSearchImpl.this, "openKarte"));
                    JMenuItem addAsPvt = new JMenuItem(new ReflectAction("受付登録", PatientSearchImpl.this, "addAsPvt"));
                    openKarte.setIconTextGap(8);
                    addAsPvt.setIconTextGap(8);
                    contextMenu.add(openKarte);
                    contextMenu.add(addAsPvt);
                }

                JCheckBoxMenuItem item = new JCheckBoxMenuItem("年齢表示");
                item.setIconTextGap(12);
                contextMenu.add(item);
                item.setSelected(ageDisplay);
                item.addActionListener(EventHandler.create(ActionListener.class, PatientSearchImpl.this, "switchAgeDisplay"));

                // 検索結果をファイル保存
                int selectedRowCount = view.getTable().getSelectedRowCount();
                if (selectedRowCount > 0) {
                    JMenuItem export = new JMenuItem(new ReflectAction("選択された " + selectedRowCount + " 件をファイル保存", PatientSearchImpl.this, "exportSearchResult"));
                    export.setIconTextGap(8);
                    contextMenu.add(export);
                }

                contextMenu.show(e.getComponent(), e.getX(), e.getY());
View Full Code Here

TOP

Related Classes of open.dolphin.helper.ReflectAction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.