Package open.dolphin.infomodel

Examples of open.dolphin.infomodel.ModuleInfoBean


               
                ModuleModel module = (ModuleModel) getObject(row);
                if (module == null) {
                    return null;
                }
                ModuleInfoBean info = module.getModuleInfo();
                String ret = null;
               
                switch (col) {
                   
                    case 0:
                        //ret = ModelUtils.getDateAsString(info.getConfirmDate());
                        ret = ModelUtils.getDateAsString(module.getConfirmed());
                        //String val = info.getConfirmDate();
                        //int index = val.indexOf('T');
                        //ret = index > 0 ? val.substring(0, index) : val;
                        break;
                       
                    case 1:
                        ret = info.getStampName();
                        break;
                }
               
                return ret;
            }
View Full Code Here


    /**
     * tbl_inputcd の情報から StampInfo を作る
     * @return
     */
    public ModuleInfoBean getStampInfo() {
        ModuleInfoBean ret = new ModuleInfoBean();
        ret.setStampName(getDspName());
        ret.setStampRole(IInfoModel.ROLE_ORCA_SET);
        ret.setEntity(IInfoModel.ENTITY_MED_ORDER);
        ret.setStampId(getInputCd());
        return ret;
    }
View Full Code Here

                            item.setIcon(icon);
                            subMenu.add(item);
                            addActionListner(item, node);
                           
                        } else {
                            ModuleInfoBean info = (ModuleInfoBean) node.getUserObject();
                            String completion = info.getStampName();
                            JMenuItem item = new JMenuItem(completion);
                            addActionListner(item, node);
                            if (menus.getFirst() instanceof MyJPopupMenu) {
                                ((MyJPopupMenu) menus.getFirst()).add(item);
                            } else {
                                ((JMenu) menus.getFirst()).add(item);
                            }
                        }
                   
                    } else {
                        //
                        // 含まれていないのでマッチ検査が必要
                        //
                        if (!node.isLeaf()) {
                            //
                            // フォルダの場合
                            //
                            String completion = node.getUserObject().toString();
                            Matcher matcher = pattern.matcher(completion);
                            if (matcher.matches()) {
                                //
                                // マッチした場合はカレントメニューへ加える
                                // 自分がカレントメニューになる
                                // 親リストに自分を加える
                                String folderName = node.getUserObject().toString();
                                JMenu subMenu = new JMenu(folderName);
                                if (menus.getFirst() instanceof MyJPopupMenu) {
                                    ((MyJPopupMenu) menus.getFirst()).add(subMenu);
                                } else {
                                    ((JMenu) menus.getFirst()).add(subMenu);
                                }
                                menus.addFirst(subMenu);
                                parents.addFirst(node);
                               
                                //
                                // フォルダ選択のアイテムを生成しサブメニューの要素にする
                                //
                                JMenuItem item = new JMenuItem(folderName);
                                item.setIcon(icon);
                                subMenu.add(item);
                                addActionListner(item, node);
                            }
                           
                        } else {
                            //
                            // 葉の場合
                            //
                            ModuleInfoBean info = (ModuleInfoBean) node.getUserObject();
                            String completion = info.getStampName();
                            Matcher matcher = pattern.matcher(completion);
                       
                            if (matcher.matches()) {
                                //
                                // 一致した場合
View Full Code Here

            // Import するイストを生成する
            ArrayList<ModuleInfoBean> importList = new ArrayList<ModuleInfoBean>(3);

            // 葉の場合
            if (droppedNode.isLeaf()) {
                ModuleInfoBean stampInfo = (ModuleInfoBean) droppedNode.getStampInfo();
                if (stampInfo.getEntity().equals(IInfoModel.ENTITY_DIAGNOSIS)) {
                    if (stampInfo.isSerialized()) {
                        importList.add(stampInfo);
                    } else {
                        parent.openEditor2();
                        shouldRemove = false;
                        return true;
                    }

                } else {
                    Toolkit.getDefaultToolkit().beep();
                    return false;
                }

            } else {
                // Dropされたノードの葉を列挙する
                Enumeration e = droppedNode.preorderEnumeration();
                while (e.hasMoreElements()) {
                    StampTreeNode node = (StampTreeNode) e.nextElement();
                    if (node.isLeaf()) {
                        ModuleInfoBean stampInfo = (ModuleInfoBean) node.getStampInfo();
                        if (stampInfo.isSerialized() && (stampInfo.getEntity().equals(IInfoModel.ENTITY_DIAGNOSIS)) ) {
                            importList.add(stampInfo);
                            //System.out.println("StampId " + stampInfo.getStampId());
                        }
                    }
                }
View Full Code Here

     */
    @Override
    public Object getValue() {
        ModuleModel model = new ModuleModel();
        TextStampModel stamp = new TextStampModel();
        ModuleInfoBean info = new ModuleInfoBean();

        info.setStampName(titleField.getText().trim());
        info.setEntity(entity);
        info.setStampRole(IInfoModel.ROLE_TEXT);
        stamp.setText(textPane.getText());

        model.setModel(stamp);
        model.setModuleInfo(info);

View Full Code Here

     * @param key
     * @return ModuleInfoBean or null
     */
    private ModuleModel getStampModule(String entity, String key) {
        StampTree tree =  mediator.getStampTree(entity);
        ModuleInfoBean stamp = null;
        ModuleModel mModel = null;

        for (int i=0; i<tree.getRowCount(); i++) {
            StampTreeNode sn = (StampTreeNode) tree.getPathForRow(i).getLastPathComponent();
            if (sn.isLeaf()) {
                ModuleInfoBean bean = sn.getStampInfo();
                String name = bean.getStampName();
                if (name.equals(key)) {
                    stamp = bean;
                    break;
                }
            }
View Full Code Here

                   
                    addActionListner(item, node);
               
                } else if (node.isLeaf()) {
                   
                    ModuleInfoBean info = (ModuleInfoBean) node.getUserObject();
                    String stampName = info.getStampName();
                    
                    JMenuItem item = new JMenuItem(stampName);
                    addActionListner(item, node);
                   
                    if (node.getParent() == rootNode) {
View Full Code Here

    public void valueChanged(TreeSelectionEvent e) {
        StampTree tree = (StampTree) e.getSource();
        StampTreeNode node = (StampTreeNode) tree.getLastSelectedPathComponent();
        if (node != null) {
            if (node.getUserObject() instanceof ModuleInfoBean) {
                ModuleInfoBean info = (ModuleInfoBean) node.getUserObject();
                //infoArea.setText(info.getStampMemo());
                statusPanel.setText(info.getStampMemo(), "infoArea");
            } else {
                //infoArea.setText("");
                statusPanel.setText("", "infoArea");
            }
        } else {
View Full Code Here

        }
       
        //
        // StampInfo を生成する
        //
        info = new ModuleInfoBean();
        info.setStampName(toXmlText(name));
        info.setStampRole(role);
        info.setEntity(entity);
        if (editable != null) {
            info.setEditable(Boolean.valueOf(editable).booleanValue());
View Full Code Here

            if  ( getEntity(rootName).equals(IInfoModel.ENTITY_TEXT) || getEntity(rootName).equals(IInfoModel.ENTITY_PATH)) {
                //
                // テキストスタンプとパススタンプにはエディタから発行...はなし
                //
            } else {
                ModuleInfoBean si = new ModuleInfoBean();
                si.setStampName(FROM_EDITOR);
                si.setStampRole(IInfoModel.ROLE_P);
                si.setEntity(getEntity(rootName));
                si.setEditable(false);
                StampTreeNode sn = new StampTreeNode(si);
                rootNode.add(sn);
            }
        }
       
View Full Code Here

TOP

Related Classes of open.dolphin.infomodel.ModuleInfoBean

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.