Package open.dolphin.helper

Examples of open.dolphin.helper.GridBagBuilder


        // 管理者登録ボタン
        registTesterBtn = new JButton(addSuperUserText);

        // サーバ情報パネル
        GridBagBuilder gb = new GridBagBuilder(serverInfoText);
        int row = 0;
        JLabel label = new JLabel(serverStyleText, SwingConstants.RIGHT);
        JPanel panel = GUIFactory.createRadioPanel(new JRadioButton[]{aspMember,facilityUser});
        gb.add(label, 0, row, GridBagConstraints.EAST);
        gb.add(panel, 1, row, GridBagConstraints.WEST);

        row++;
        label = new JLabel(ipAddressText, SwingConstants.RIGHT);
        gb.add(label,            0, row, GridBagConstraints.EAST);
        gb.add(hostAddressField, 1, row, GridBagConstraints.WEST);
        JPanel sip = gb.getProduct();

        // ユーザ情報パネル
        gb = new GridBagBuilder(userInfoText);
        row = 0;
        label = new JLabel(userIdText, SwingConstants.RIGHT);
        gb.add(label,       0, row, GridBagConstraints.EAST);
        gb.add(userIdField, 1, row, GridBagConstraints.WEST);

        row++;
        label = new JLabel(facilityIdText, SwingConstants.RIGHT);
        gb.add(label,           0, row, GridBagConstraints.EAST);
        gb.add(facilityIdField, 1, row, GridBagConstraints.WEST);
        JPanel uip = gb.getProduct();

        // アカウント作成
        gb = new GridBagBuilder(initServerText);
        row = 0;
        label = new JLabel("");
        gb.add(label,           0, row, GridBagConstraints.EAST);
        gb.add(registTesterBtn, 1, row, GridBagConstraints.CENTER);
        JPanel iip = gb.getProduct();

        //masuda   facility user固定にしておく
        aspMember.setEnabled(false);
        model.setUserType(Project.UserType.FACILITY_USER);
        facilityIdField.setEnabled(false);

        // pvt チェック間隔
        JPanel checkIntervalPanel = GUIFactory.createSliderPanel(5, 30, 30);
        checkIntervalSlider = (JSlider) checkIntervalPanel.getComponent(0);
        checkIntervalSpinner = (JSpinner) checkIntervalPanel.getComponent(1);
        checkIntervalBox = new JCheckBox("受付チェック間隔(秒):");
        receivePvtBroadcastBox = new JCheckBox("受付サーバからのブロードキャストを受け取る");       

        gb = new GridBagBuilder("受付チェック間隔");
        row = 0;
        gb.add(checkIntervalBox,   0, row, GridBagConstraints.EAST);
        gb.add(checkIntervalPanel, 1, row, GridBagConstraints.WEST);
        row++;
        gb.add(receivePvtBroadcastBox,   0, row, 2, 1, GridBagConstraints.WEST);
        JPanel intervalPanel = gb.getProduct();

        // 全体レイアウト
        gb = new GridBagBuilder();
        row = 0;
        gb.add(sip, 0, row++, GridBagConstraints.HORIZONTAL, 1.0, 0.0);
        gb.add(uip, 0, row++, GridBagConstraints.HORIZONTAL, 1.0, 0.0);
        gb.add(iip, 0, row++, GridBagConstraints.HORIZONTAL, 1.0, 0.0);
        gb.add(intervalPanel, 0, row++, GridBagConstraints.HORIZONTAL, 1.0, 0.0);
        gb.add(new JLabel(""), 0, row++, GridBagConstraints.BOTH, 1.0, 1.0);
        setUI(gb.getProduct());
    }
View Full Code Here


       
        // 受付受信ボタン
        // useAsPVTServer = GUIFactory.createCheckBox("サーバからの患者受付通知を受信する", null);
       
        // CLAIM(請求)送信情報
        GridBagBuilder gbl = new GridBagBuilder("CLAIM(請求データ)送信");
        int row = 0;
        JLabel label = new JLabel("診療行為送信:");
        JPanel panel = GUIFactory.createRadioPanel(new JRadioButton[]{sendClaimYes,sendClaimNo});
        gbl.add(label, 0, row, GridBagConstraints.EAST);
        gbl.add(panel, 1, row, GridBagConstraints.CENTER);
        JPanel sendClaim = gbl.getProduct();
       
        // レセコン情報
        gbl = new GridBagBuilder("ORCA通信情報");
        //row = 0;
        //label = new JLabel("機種:");
        //gbl.add(label,          0, row, GridBagConstraints.EAST);
        //gbl.add(claimHostCombo, 1, row, GridBagConstraints.WEST);
       
        //row++;
        row = 0;
        //label = new JLabel("バージョン:");
        //JPanel vPanel = GUIFactory.createRadioPanel(new JRadioButton[]{v34,v40});
        label = new JLabel("通信方法:");
        JPanel vPanel = GUIFactory.createRadioPanel(new JRadioButton[]{useOrcaApi, useClaim});
        gbl.add(label,  0, row, GridBagConstraints.EAST);
        gbl.add(vPanel, 1, row, GridBagConstraints.WEST);
       
        //row++;
        //label = new JLabel("CLAIM診療科コード:");
        //gbl.add(label,  0, row, GridBagConstraints.EAST);
        //gbl.add(claim01,1, row, GridBagConstraints.WEST);
       
        row++;
        label = new JLabel("ORCA ログインID:");
        gbl.add(label,  0, row, GridBagConstraints.EAST);
        gbl.add(orcaUserIdField,1, row, GridBagConstraints.WEST);
       
        row++;
        label = new JLabel("ORCA パスワード:");
        gbl.add(label,  0, row, GridBagConstraints.EAST);
        gbl.add(orcaPasswordField,1, row, GridBagConstraints.WEST);
               
        row++;
        label = new JLabel("ORCA 職員コード:");
        JPanel doctorPanel = new JPanel();
        doctorPanel.setLayout(new BoxLayout(doctorPanel, BoxLayout.X_AXIS));
        doctorPanel.add(orcaStaffCodeField);
        doctorPanel.add(orcaStaffCodeButton);
        gbl.add(label,  0, row, GridBagConstraints.EAST);
        gbl.add(doctorPanel,1, row, GridBagConstraints.WEST);
               
        row++;
        label = new JLabel("医療機関ID:  JPN");
        gbl.add(label,      0, row, GridBagConstraints.EAST);
        gbl.add(jmariField, 1, row, GridBagConstraints.WEST);
       
        row++;
        label = new JLabel("IPアドレス:");
        gbl.add(label,             0, row, GridBagConstraints.EAST);
        gbl.add(claimAddressField, 1, row, GridBagConstraints.WEST);
       
        row++;
        label = new JLabel("ポート番号:");
        gbl.add(label,          0, row, GridBagConstraints.EAST);
        gbl.add(claimPortField, 1, row, GridBagConstraints.WEST);
        JPanel port = gbl.getProduct();
       
        // レセコンからの受付受信
        //gbl = new GridBagBuilder("受付情報の受信");
        //gbl.add(useAsPVTServer, 0, 0, GridBagConstraints.CENTER);
        //JPanel pvt = gbl.getProduct();
       
        // 全体レイアウト
        gbl = new GridBagBuilder();
        gbl.add(sendClaim, 0, 0, GridBagConstraints.HORIZONTAL, 1.0, 0.0);
        gbl.add(port,      0, 1, GridBagConstraints.HORIZONTAL, 1.0, 0.0);
        //gbl.add(pvt,       0, 2, GridBagConstraints.HORIZONTAL, 1.0, 0.0);
        gbl.add(new JLabel(""), 0, 3, GridBagConstraints.BOTH,  1.0, 1.0);
        setUI(gbl.getProduct());

        connect();      
    }
View Full Code Here

        JPanel scrP = new JPanel();
        scrP.add(vSc);
        scrP.add(hSc);

        // インスペクタタブ
        GridBagBuilder gbb = new GridBagBuilder("インスペクタ画面");
        int row = 0;
        JLabel label = new JLabel("左側トップ:", SwingConstants.RIGHT);
        gbb.add(label, 0, row, 1, 1, GridBagConstraints.EAST);
//pns   gbb.add(topCompo, 1, row, 1, 1, GridBagConstraints.WEST);
        gbb.add(inspectorCompo[row], 1, row, 1, 1, GridBagConstraints.WEST);
        row++;
        label = new JLabel("2番目:", SwingConstants.RIGHT);
        gbb.add(label, 0, row, 1, 1, GridBagConstraints.EAST);
//pns   gbb.add(secondCompo, 1, row, 1, 1, GridBagConstraints.WEST);
        gbb.add(inspectorCompo[row], 1, row, 1, 1, GridBagConstraints.WEST);
        row++;
        label = new JLabel("3番目:", SwingConstants.RIGHT);
        gbb.add(label, 0, row, 1, 1, GridBagConstraints.EAST);
//pns   gbb.add(thirdCompo, 1, row, 1, 1, GridBagConstraints.WEST);
        gbb.add(inspectorCompo[row], 1, row, 1, 1, GridBagConstraints.WEST);
        row++;
        label = new JLabel("4番目:", SwingConstants.RIGHT);
        gbb.add(label, 0, row, 1, 1, GridBagConstraints.EAST);
//pns   gbb.add(forthCompo, 1, row, 1, 1, GridBagConstraints.WEST);
        gbb.add(inspectorCompo[row], 1, row, 1, 1, GridBagConstraints.WEST);
        row++;
        label = new JLabel("ボトム:", SwingConstants.RIGHT);
        gbb.add(label, 0, row, 1, 1, GridBagConstraints.EAST);
//pns   gbb.add(forthCompo, 1, row, 1, 1, GridBagConstraints.WEST);
        gbb.add(inspectorCompo[row], 1, row, 1, 1, GridBagConstraints.WEST);
        row++;

        label = new JLabel(GUIConst.ICON_INFORMATION_16);
        gbb.add(label, 0, row, 1, 1, GridBagConstraints.EAST);
        gbb.add(infoLabel, 1, row, 1, 1, GridBagConstraints.WEST);

        row++;
        label = new JLabel("画面ロケータ:", SwingConstants.RIGHT);
        gbb.add(label, 0, row, 1, 1, GridBagConstraints.EAST);
        gbb.add(frameLocator, 1, row, 1, 1, GridBagConstraints.WEST);
        JPanel insP = gbb.getProduct();
       
//        gbb = new GridBagBuilder("紹介状等PDFの出力先");
//        row = 0;
//        label = new JLabel("出力先:", SwingConstants.RIGHT);
//        gbb.add(label, 0, row, 1, 1, GridBagConstraints.EAST);
//        JPanel pdfPanel = new JPanel(new FlowLayout(FlowLayout.LEFT, 5, 0));
//        pdfPanel.add(pdfStore);
//        pdfPanel.add(pdfDir);
//        gbb.add(pdfPanel, 1, row, 1, 1, GridBagConstraints.WEST);
//        JPanel pdfP = gbb.getProduct();

        gbb = new GridBagBuilder();
        gbb.add(insP,           0, 0, GridBagConstraints.HORIZONTAL, 1.0, 0.0);
//        gbb.add(pdfP,           0, 1, GridBagConstraints.HORIZONTAL, 1.0, 0.0);
        gbb.add(new JLabel(""), 0, 2, GridBagConstraints.BOTH, 1.0, 1.0);
        JPanel inspectorPanel = gbb.getProduct();

        // 文書関連タブ
        // Karte
        gbb = new GridBagBuilder("カルテ");
        row = 0;

        row++;
        label = new JLabel("文書履歴:", SwingConstants.RIGHT);
        gbb.add(label, 0, row, 1, 1, GridBagConstraints.EAST);
        gbb.add(ascDesc, 1, row, 1, 1, GridBagConstraints.WEST);

        row++;
        label = new JLabel("自動文書取得数:", SwingConstants.RIGHT);
        gbb.add(label, 0, row, 1, 1, GridBagConstraints.EAST);
        gbb.add(spinner, 1, row, 1, 1, GridBagConstraints.WEST);

        row++;
        label = new JLabel("スクロール方向:", SwingConstants.RIGHT);
        gbb.add(label, 0, row, 1, 1, GridBagConstraints.EAST);
        gbb.add(scrP, 1, row, 1, 1, GridBagConstraints.WEST);

        row++;
        label = new JLabel("文書抽出期間:", SwingConstants.RIGHT);
        gbb.add(label, 0, row, 1, 1, GridBagConstraints.EAST);
        gbb.add(periodCombo, 1, row, 1, 1, GridBagConstraints.WEST);
        JPanel kartePanel = gbb.getProduct();

        // Diagnosis
        JPanel diagAscDesc = new JPanel();
        diagAscDesc.add(diagnosisAsc);
        diagAscDesc.add(diagnosisDesc);
        gbb = new GridBagBuilder("傷病名");
        row = 0;
        label = new JLabel("表示順:", SwingConstants.RIGHT);
        gbb.add(label, 0, row, 1, 1, GridBagConstraints.EAST);
        gbb.add(diagAscDesc, 1, row, 1, 1, GridBagConstraints.WEST);

        row++;
        label = new JLabel("抽出期間:", SwingConstants.RIGHT);
        gbb.add(label, 0, row, 1, 1, GridBagConstraints.EAST);
        gbb.add(diagnosisPeriodCombo, 1, row, 1, 1, GridBagConstraints.WEST);

        row++;
        label = new JLabel("転帰入力時:", SwingConstants.RIGHT);
        gbb.add(label, 0, row, 1, 1, GridBagConstraints.EAST);
        gbb.add(autoOutcomeInput, 1, row, 1, 1, GridBagConstraints.WEST);

        row++;
        label = new JLabel("入力する日(前):", SwingConstants.RIGHT);
        gbb.add(label, 0, row, 1, 1, GridBagConstraints.EAST);
        gbb.add(outcomeSpinner, 1, row, 1, 1, GridBagConstraints.WEST);
        JPanel diagnosisPanel = gbb.getProduct();

        // LaboTest
        gbb = new GridBagBuilder("ラボテスト");
        row = 0;
        label = new JLabel("抽出期間:", SwingConstants.RIGHT);
        gbb.add(label, 0, row, 1, 1, GridBagConstraints.EAST);
        gbb.add(laboTestPeriodCombo, 1, row, 1, 1, GridBagConstraints.WEST);
        JPanel laboPanel = gbb.getProduct();

        // Set default button
        JPanel cmd = new JPanel(new FlowLayout(FlowLayout.CENTER, 0, 0));
        cmd.add(restoreDefaultBtn);

        gbb = new GridBagBuilder();
        gbb.add(kartePanel, 0, 0, GridBagConstraints.HORIZONTAL, 1.0, 0.0);
        gbb.add(diagnosisPanel, 0, 1, GridBagConstraints.HORIZONTAL, 1.0, 0.0);
        gbb.add(cmd, 0, 2, GridBagConstraints.HORIZONTAL, 1.0, 0.0);
        gbb.add(new JLabel(""), 0, 3, GridBagConstraints.BOTH, 1.0, 1.0);

        JPanel docPanel = gbb.getProduct();

        ButtonGroup bg = new ButtonGroup();

        bg.add(asc);
        bg.add(desc);

        bg = new ButtonGroup();
        bg.add(diagnosisAsc);
        bg.add(diagnosisDesc);

        bg = new ButtonGroup();
        bg.add(pltform);
        bg.add(prefLoc);

        bg = new ButtonGroup();
        bg.add(vSc);
        bg.add(hSc);

        restoreDefaultBtn.addActionListener(EventHandler.create(ActionListener.class, this, "restoreDefault"));

        // スタンプ動作
        JPanel stampPanel = new JPanel();
        stampPanel.setLayout(new BoxLayout(stampPanel, BoxLayout.Y_AXIS));

        gbb = new GridBagBuilder("スタンプ動作の設定");
        row = 0;
        label = new JLabel("スタンプの上にDnDした場合:", SwingConstants.RIGHT);
        JPanel stmpP = GUIFactory.createRadioPanel(new JRadioButton[]{replaceStamp, showAlert});
        gbb.add(label, 0, row, 1, 1, GridBagConstraints.EAST);
        gbb.add(stmpP, 1, row, 1, 1, GridBagConstraints.WEST);
        row++;
        gbb.add(stampSpace, 0, row, 2, 1, GridBagConstraints.WEST);
        row++;
        gbb.add(laboFold, 0, row, 2, 1, GridBagConstraints.WEST);
        stampPanel.add(gbb.getProduct());
        bg = new ButtonGroup();
        bg.add(replaceStamp);
        bg.add(showAlert);

        gbb = new GridBagBuilder("スタンプエディタのデフォルト数量");
        row = 0;
        label = new JLabel("錠剤の場合:", SwingConstants.RIGHT);
        gbb.add(label, 0, row, 1, 1, GridBagConstraints.EAST);
        gbb.add(createUnitFieldPanel(defaultZyozaiNum, "T"), 1, row, 1, 1, GridBagConstraints.WEST);
        row++;
        label = new JLabel("水薬の場合:", SwingConstants.RIGHT);
        gbb.add(label, 0, row, 1, 1, GridBagConstraints.EAST);
        gbb.add(createUnitFieldPanel(defaultMizuyakuNum, "ml"), 1, row, 1, 1, GridBagConstraints.WEST);
        row++;
        label = new JLabel("散薬の場合:", SwingConstants.RIGHT);
        gbb.add(label, 0, row, 1, 1, GridBagConstraints.EAST);
        gbb.add(createUnitFieldPanel(defaultSanyakuNum, "g"), 1, row, 1, 1, GridBagConstraints.WEST);
        row++;
        label = new JLabel("処方日数:", SwingConstants.RIGHT);
        gbb.add(label, 0, row, 1, 1, GridBagConstraints.EAST);
        gbb.add(createUnitFieldPanel(defaultRpNum, "日/回"), 1, row, 1, 1, GridBagConstraints.WEST);
        stampPanel.add(gbb.getProduct());
        stampPanel.add(Box.createVerticalStrut(400));
        stampPanel.add(Box.createVerticalGlue());

        // CLAIM 送信のデフォルト設定
        JPanel sendPanel = new JPanel();
        sendPanel.setLayout(new BoxLayout(sendPanel, BoxLayout.Y_AXIS));

        gbb = new GridBagBuilder("カルテの保存時に設定するタイトル");
        row = 0;
        gbb.add(useTop15AsTitle, 0, row, 2, 1, GridBagConstraints.WEST);
        row++;
        label = new JLabel("デフォルトのタイトル:", SwingConstants.RIGHT);
        gbb.add(label, 0, row, 1, 1, GridBagConstraints.EAST);
        gbb.add(defaultKarteTitle, 1, row, 1, 1, GridBagConstraints.WEST);
        sendPanel.add(gbb.getProduct());

        gbb = new GridBagBuilder("診療行為送信のデフォルト設定");
        row = 0;
        label = new JLabel("仮保存時:", SwingConstants.RIGHT);
        JPanel p9 = GUIFactory.createRadioPanel(new JRadioButton[]{sendAtTmp, noSendAtTmp});
        gbb.add(label, 0, row, 1, 1, GridBagConstraints.EAST);
        gbb.add(p9, 1, row, 1, 1, GridBagConstraints.WEST);

        row++;
        label = new JLabel("保存時:", SwingConstants.RIGHT);
        p9 = GUIFactory.createRadioPanel(new JRadioButton[]{sendAtSave, noSendAtSave});
        gbb.add(label, 0, row, 1, 1, GridBagConstraints.EAST);
        gbb.add(p9, 1, row, 1, 1, GridBagConstraints.WEST);

        row++;
        label = new JLabel("修正時:", SwingConstants.RIGHT);
        p9 = GUIFactory.createRadioPanel(new JRadioButton[]{sendAtModify, noSendAtModify});
        gbb.add(label, 0, row, 1, 1, GridBagConstraints.EAST);
        gbb.add(p9, 1, row, 1, 1, GridBagConstraints.WEST);

        row++;
        label = new JLabel("傷病名:", SwingConstants.RIGHT);
        p9 = GUIFactory.createRadioPanel(new JRadioButton[]{sendDiagnosis, noSendDiagnosis});
        gbb.add(label, 0, row, 1, 1, GridBagConstraints.EAST);
        gbb.add(p9, 1, row, 1, 1, GridBagConstraints.WEST);

        sendPanel.add(gbb.getProduct());
        sendPanel.add(Box.createVerticalStrut(500));
        sendPanel.add(Box.createVerticalGlue());

        // 新規カルテ作成時と保存時の確認ダイアログオプション
        JPanel confirmPanel = new JPanel();
        confirmPanel.setLayout(new BoxLayout(confirmPanel, BoxLayout.Y_AXIS));
        NumberFormat numFormat = NumberFormat.getNumberInstance();
        printCount = new JFormattedTextField(numFormat);
//pns   printCount.setValue(new Integer(0));
        printCount.setValue(0);

        row = 0;
        gbb = new GridBagBuilder("新規カルテ作成時");
        gbb.add(noConfirmAtNew, 0, row, 2, 1, GridBagConstraints.WEST);

        row += 1;
        label = new JLabel("作成方法:", SwingConstants.RIGHT);
        JPanel p = GUIFactory.createRadioPanel(new JRadioButton[]{copyNew, applyRp, emptyNew});
        gbb.add(label, 0, row, 1, 1, GridBagConstraints.EAST);
        gbb.add(p, 1, row, 1, 1, GridBagConstraints.WEST);

        row += 1;
        label = new JLabel("配置方法:", SwingConstants.RIGHT);
        JPanel p2 = GUIFactory.createRadioPanel(new JRadioButton[]{placeWindow, palceTabbedPane});
        gbb.add(label, 0, row, 1, 1, GridBagConstraints.EAST);
        gbb.add(p2, 1, row, 1, 1, GridBagConstraints.WEST);
        confirmPanel.add(gbb.getProduct());

        gbb = new GridBagBuilder("カルテ保存時");
        row = 0;
        gbb.add(noConfirmAtSave, 0, row, 2, 1, GridBagConstraints.WEST);

        row++;
        label = new JLabel("印刷枚数:", SwingConstants.RIGHT);
        gbb.add(label, 0, row, 1, 1, GridBagConstraints.EAST);
        gbb.add(printCount, 1, row, 1, 1, GridBagConstraints.WEST);

        row++;
        label = new JLabel("動 作:", SwingConstants.RIGHT);
        JPanel p4 = GUIFactory.createRadioPanel(new JRadioButton[]{save, saveTmp});
        gbb.add(label, 0, row, 1, 1, GridBagConstraints.EAST);
        gbb.add(p4, 1, row, 1, 1, GridBagConstraints.WEST);
        confirmPanel.add(gbb.getProduct());

        confirmPanel.add(Box.createVerticalStrut(200));
        confirmPanel.add(Box.createVerticalGlue());

        bg = new ButtonGroup();
        bg.add(copyNew);
        bg.add(applyRp);
        bg.add(emptyNew);

        bg = new ButtonGroup();
        bg.add(placeWindow);
        bg.add(palceTabbedPane);

        bg = new ButtonGroup();
        bg.add(sendAtTmp);
        bg.add(noSendAtTmp);

        bg = new ButtonGroup();
        bg.add(sendAtSave);
        bg.add(noSendAtSave);

        bg = new ButtonGroup();
        bg.add(sendAtModify);
        bg.add(noSendAtModify);

        bg = new ButtonGroup();
        bg.add(sendDiagnosis);
        bg.add(noSendDiagnosis);

        bg = new ButtonGroup();
        bg.add(save);
        bg.add(saveTmp);

//pns^  スクロール速度設定
        JPanel uiPanel = new JPanel();
        uiPanel.setLayout(new BoxLayout(uiPanel, BoxLayout.Y_AXIS));
        row = 0;
        gbb = new GridBagBuilder("スクロール速度");

        // カルテスクロール速度
        label = new JLabel("カルテ :", SwingConstants.RIGHT);
        JPanel slider = GUIFactory.createSliderPanel(1,32, prefs.getInt(Project.SCROLL_UNIT_KARTE, 15));
        scrollUnitKarte = (JSpinner) slider.getComponent(1);
        gbb.add(label, 0, row, 1, 1, GridBagConstraints.EAST);
        gbb.add(slider, 1, row++, 1, 1, GridBagConstraints.WEST);

        // テーブルのスクロール速度
        label = new JLabel("テーブル :", SwingConstants.RIGHT);
        slider = GUIFactory.createSliderPanel(1,32, prefs.getInt(Project.SCROLL_UNIT_TABLE, 15));
        scrollUnitTable = (JSpinner) slider.getComponent(1);
        gbb.add(label, 0, row, 1, 1, GridBagConstraints.EAST);
        gbb.add(slider, 1, row++, 1, 1, GridBagConstraints.WEST);

        // スタンプのスクロール速度
        label = new JLabel("スタンプ :", SwingConstants.RIGHT);
        slider = GUIFactory.createSliderPanel(1,32, prefs.getInt(Project.SCROLL_UNIT_STAMP, 15));
        scrollUnitStamp = (JSpinner) slider.getComponent(1);
        gbb.add(label, 0, row, 1, 1, GridBagConstraints.EAST);
        gbb.add(slider, 1, row++, 1, 1, GridBagConstraints.WEST);

        uiPanel.add(gbb.getProduct());
        uiPanel.add(Box.createVerticalStrut(500));
        uiPanel.add(Box.createVerticalGlue());

//pns$
        JTabbedPane tabbedPane = new JTabbedPane();
View Full Code Here

        orca = new JTextField(5);
       
        //
        // 修飾キー
        //
        GridBagBuilder gbl = new GridBagBuilder("スタンプ箱キーワード入力後に「修飾キー + RETURN」でポップアップが出ます");
       
        gbl.add(new JLabel("修飾キー:")0, 0, GridBagConstraints.EAST);
        gbl.add(GUIFactory.createRadioPanel(new JRadioButton[]{ctrlMask,metaMask}), 1, 0, GridBagConstraints.CENTER);
        JPanel keyBind = gbl.getProduct();
       
        //
        // Stamptree
        //
        gbl = new GridBagBuilder("スタンプ箱のキーワード");
       
        gbl.add(new JLabel("テキスト:"),         0, 0, GridBagConstraints.EAST);
        gbl.add(text,                           1, 0, GridBagConstraints.WEST);
               
        gbl.add(new JLabel("パス:"),            2, 0, GridBagConstraints.EAST);
        gbl.add(path,                           3, 0, GridBagConstraints.WEST);
       
        gbl.add(new JLabel("汎 用:"),           0, 1, GridBagConstraints.EAST);
        gbl.add(general,                        1, 1, GridBagConstraints.WEST);
       
        gbl.add(new JLabel("その他:"),           2, 1, GridBagConstraints.EAST);
        gbl.add(other,                          3, 1, GridBagConstraints.WEST);
       
        gbl.add(new JLabel("処 置:"),            0, 2, GridBagConstraints.EAST);
        gbl.add(treatment,                       1, 2, GridBagConstraints.WEST);
       
        gbl.add(new JLabel("手 術:"),            2, 2, GridBagConstraints.EAST);
        gbl.add(surgery,                         3, 2, GridBagConstraints.WEST);
       
        gbl.add(new JLabel("放射線:"),           0, 3, GridBagConstraints.EAST);
        gbl.add(radiology,                       1, 3, GridBagConstraints.WEST);
       
        gbl.add(new JLabel("検体検査:"),          2, 3, GridBagConstraints.EAST);
        gbl.add(labo,                            3, 3, GridBagConstraints.WEST);
       
        gbl.add(new JLabel("生体検査:"),          0, 4, GridBagConstraints.EAST);
        gbl.add(physiology,                      1, 4, GridBagConstraints.WEST);
       
        gbl.add(new JLabel("細菌検査:"),          2, 4, GridBagConstraints.EAST);
        gbl.add(bacteria,                        3, 4, GridBagConstraints.WEST);
       
        gbl.add(new JLabel("注 射:"),            0, 5, GridBagConstraints.EAST);
        gbl.add(injection,                       1, 5, GridBagConstraints.WEST);
       
        gbl.add(new JLabel("処 方:"),            2, 5, GridBagConstraints.EAST);
        gbl.add(rp,                              3, 5, GridBagConstraints.WEST);
       
        gbl.add(new JLabel("診断料:"),           0, 6, GridBagConstraints.EAST);
        gbl.add(baseCharge,                      1, 6, GridBagConstraints.WEST);
       
        gbl.add(new JLabel("指導・在宅:"),         2, 6, GridBagConstraints.EAST);
        gbl.add(instraction,                     3, 6, GridBagConstraints.WEST);
       
        gbl.add(new JLabel("ORCA:"),            0, 7, GridBagConstraints.EAST);
        gbl.add(orca,                           1, 7, GridBagConstraints.WEST);
       
        JPanel stamp = gbl.getProduct();
       
        // 全体をレイアウトする
        gbl = new GridBagBuilder();
        gbl.add(keyBind,        0, 0, GridBagConstraints.HORIZONTAL, 1.0, 0.0);
        gbl.add(stamp,          0, 1, GridBagConstraints.HORIZONTAL, 1.0, 0.0);
        gbl.add(new JLabel(""), 0, 2, GridBagConstraints.BOTH,       1.0, 1.0);
       
        setUI(gbl.getProduct());
       
    }
View Full Code Here

       
        // 公開先RadioButtonパネル
        JPanel radioPanel = GUIFactory.createRadioPanel(new JRadioButton[]{local, publc});
       
        // 属性設定パネル
        GridBagBuilder gbl = new GridBagBuilder("スタンプ公開設定");
       
        int y = 0;
        gbl.add(infoLable, 0, y, GridBagConstraints.EAST);
        gbl.add(instLabel, 1, y, GridBagConstraints.WEST);
       
        y++;
        gbl.add(new JLabel("公開スタンプセット名"), 0, y, GridBagConstraints.EAST);
        gbl.add(stampBoxName, 1, y, GridBagConstraints.WEST);
       
        y++;
        gbl.add(new JLabel("公開先"), 0, y, GridBagConstraints.EAST);
        gbl.add(radioPanel, 1, y, GridBagConstraints.WEST);
       
        y++;
        gbl.add(new JLabel("カテゴリ"), 0, y, GridBagConstraints.EAST);
        gbl.add(categoryPanel, 1, y, GridBagConstraints.WEST);
       
        y++;
        gbl.add(new JLabel("公開するスタンプ"), 0, y, GridBagConstraints.EAST);
        gbl.add(chkPanel1, 1, y, GridBagConstraints.WEST);
       
        y++;
        gbl.add(new JLabel(" "), 0, y, GridBagConstraints.EAST);
        gbl.add(chkPanel2, 1, y, GridBagConstraints.WEST);
       
        y++;
        gbl.add(new JLabel("公開者名"), 0, y, GridBagConstraints.EAST);
        gbl.add(partyName, 1, y, GridBagConstraints.WEST);
       
        y++;
        gbl.add(new JLabel("URL等"), 0, y, GridBagConstraints.EAST);
        gbl.add(contact, 1, y, GridBagConstraints.WEST);
       
        y++;
        gbl.add(new JLabel("利用者への説明"), 0, y, GridBagConstraints.EAST);
        gbl.add(description, 1, y, GridBagConstraints.WEST);
       
        y++;
        gbl.add(new JLabel("公開日"), 0, y, GridBagConstraints.EAST);
        gbl.add(publishedDate, 1, y, GridBagConstraints.WEST);
       
        // コマンドパネル
        JPanel cmdPanel = null;
        if (ClientContext.isMac()) {
            cmdPanel = GUIFactory.createCommandButtonPanel(new JButton[]{cancel, cancelPublish, publish});
        } else {
            cmdPanel = GUIFactory.createCommandButtonPanel(new JButton[]{publish, cancelPublish, cancel});
        }
       
        // 配置する
        contentPane.setLayout(new BorderLayout(0, 17));
        contentPane.add(gbl.getProduct(), BorderLayout.CENTER);
        contentPane.add(cmdPanel, BorderLayout.SOUTH);
        contentPane.setBorder(BorderFactory.createEmptyBorder(12, 12, 11, 11));
       
        // PublishState に応じて振り分ける
        IStampTreeModel stmpTree = stampBox.getUserStampBox().getStampTreeModel();
View Full Code Here

        licenseCombo = new JComboBox(licenses);
       
        depts = ClientContext.getDepartmentModel();
        deptCombo = new JComboBox(depts);
       
        GridBagBuilder gbl = new GridBagBuilder("施設情報 - URL以外の全ての項目が必要です");
        JLabel label = null;
        StringBuilder sb = null;
       
        int x = 0;
        int y = 0;
        label = new JLabel("医療機関名:", SwingConstants.RIGHT);
        gbl.add(label,        x,    y, GridBagConstraints.EAST);
        gbl.add(facilityName, x+1,  y, GridBagConstraints.WEST);
       
        x = 0;
        y += 1;
        label = new JLabel("郵便番号:", SwingConstants.RIGHT);
        gbl.add(label,                           x,   y, GridBagConstraints.EAST);
        gbl.add(GUIFactory.createZipCodePanel(zipField1, zipField2),   x+1, y, GridBagConstraints.WEST);
       
        x = 0;
        y += 1;
        label = new JLabel("住 所:", SwingConstants.RIGHT);
        gbl.add(label, x, y, GridBagConstraints.EAST);
        gbl.add(addressField, x+1, y, 2, 1, GridBagConstraints.WEST);
       
        x = 0;
        y += 1;
        label = new JLabel("電話番号:", SwingConstants.RIGHT);
        gbl.add(label, x, y, GridBagConstraints.EAST);
        gbl.add(GUIFactory.createPhonePanel(areaField, cityField, numberField), x+1, y, GridBagConstraints.WEST);
       
        x = 0;
        y += 1;
        label = new JLabel("URL:", SwingConstants.RIGHT);
        gbl.add(label, x, y, GridBagConstraints.EAST);
        gbl.add(urlField, x+1, y, GridBagConstraints.WEST);
       
        JPanel facilityPanel = gbl.getProduct();
        this.add(facilityPanel);
       
        // 管理者パネル
        x = 0;
        y = 0;
        userIdLength = ClientContext.getIntArray("addUser.userId.length");
        sb = new StringBuilder();
        sb.append("管理者ログインID(半角英数記)");
        sb.append(userIdLength[0]);
        sb.append("~");
        sb.append(userIdLength[1]);
        sb.append("文字):");
        label = new JLabel(sb.toString(), SwingConstants.RIGHT);
        gbl = new GridBagBuilder("この医療機関のOpenDolphin管理者情報 - 全ての項目が必要です");
        gbl.add(label, x, y, GridBagConstraints.EAST);
        gbl.add(adminId, x+1, y, GridBagConstraints.WEST);
       
        x = 0;
        y += 1;
        passwordLength = ClientContext.getIntArray("addUser.password.length");
        sb = new StringBuilder();
        sb.append("パスワード(半角英数記)");
        sb.append(passwordLength[0]);
        sb.append("~");
        sb.append(passwordLength[1]);
        sb.append("文字):");
        label = new JLabel(sb.toString(), SwingConstants.RIGHT);
        gbl.add(label,           x,     y, GridBagConstraints.EAST);
        gbl.add(adminPassword1,  x + 1, y, GridBagConstraints.WEST);
        label = new JLabel("確認:", SwingConstants.RIGHT);
        gbl.add(label,           x + 2, y, GridBagConstraints.EAST);
        gbl.add(adminPassword2,  x + 3, y, GridBagConstraints.WEST);
       
        x = 0;
        y += 1;
        label = new JLabel("姓(漢字):", SwingConstants.RIGHT);
        gbl.add(label, x, y, GridBagConstraints.EAST);
        gbl.add(adminSir, x+ 1, y, GridBagConstraints.WEST);
        label = new JLabel("名(漢字):", SwingConstants.RIGHT);
        gbl.add(label, x+2, y, GridBagConstraints.EAST);
        gbl.add(adminGiven, x+ 3, y, GridBagConstraints.WEST);
       
        x = 0;
        y +=1;
        label = new JLabel("医療資格:", SwingConstants.RIGHT);
        gbl.add(label, x, y, GridBagConstraints.EAST);
        gbl.add(licenseCombo,x+ 1, y, GridBagConstraints.WEST);
        label = new JLabel("診療科:", SwingConstants.RIGHT);
        gbl.add(label, x+2, y, GridBagConstraints.EAST);
        gbl.add(deptCombo,x+ 3, y, GridBagConstraints.WEST);
       
        x = 0;
        y +=1;
        label = new JLabel("電子メール:", SwingConstants.RIGHT);
        gbl.add(label, x, y, GridBagConstraints.EAST);
        gbl.add(emailField, x+1, y, 1, 1, GridBagConstraints.WEST);
       
        JPanel adminPanel = gbl.getProduct();
       
        this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
        this.add(adminPanel);
    }
View Full Code Here

TOP

Related Classes of open.dolphin.helper.GridBagBuilder

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.