Examples of ModuleInfoBean


Examples of open.dolphin.infomodel.ModuleInfoBean

        // 特殊文字を変換する
        writer.write("<stampInfo name=");
        String val = toXmlText(node.toString());
        writer.write(addQuote(val));
       
        ModuleInfoBean info = (ModuleInfoBean) node.getUserObject();
       
        writer.write(" role=");
        writer.write(addQuote(info.getStampRole()));
       
        writer.write(" entity=");
        writer.write(addQuote(info.getEntity()));
       
        writer.write(" editable=");
        val = String.valueOf(info.isEditable());
        writer.write(addQuote(val));
       
        val = info.getStampMemo();
        if (val != null) {
            writer.write(" memo=");
            val = toXmlText(val);
            writer.write(addQuote(val));
        }
       
        if (info.isSerialized()) {
            val = info.getStampId();
            writer.write(" stampId=");
            writer.write(addQuote(val));
        }
        writer.write("/>\n");
    }
View Full Code Here

Examples of open.dolphin.infomodel.ModuleInfoBean

            DefaultMutableTreeNode rootNode = (DefaultMutableTreeNode) tree.getModel().getRoot();
            Enumeration e = rootNode.preorderEnumeration();
            while (e.hasMoreElements()) {
                StampTreeNode node = (StampTreeNode) e.nextElement();
                if (node.isLeaf()) {
                    ModuleInfoBean info = (ModuleInfoBean) node.getUserObject();
                    ret.add(info);
                }
            }
            return ret;
        }
View Full Code Here

Examples of open.dolphin.infomodel.ModuleInfoBean

            } else {
                item.setEnabled(false);
            }
           
        } else {
            ModuleInfoBean info = (ModuleInfoBean) node.getUserObject();
            JMenuItem item = new JMenuItem(info.getStampName());
            if (comp != null && handler != null) {
                item.addActionListener(new TransferAction(comp, handler, new LocalStampTreeNodeTransferable(node)));
            } else {
                item.setEnabled(false);
            }
View Full Code Here

Examples of open.dolphin.infomodel.ModuleInfoBean

            // 特殊文字を変換する
            writer.write("<stampInfo name=");
            String val = toXmlText(node.toString());
            writer.write(addQuote(val));

            ModuleInfoBean info = (ModuleInfoBean) node.getUserObject();

            writer.write(" role=");
            writer.write(addQuote(info.getStampRole()));

            writer.write(" entity=");
            writer.write(addQuote(info.getEntity()));

            writer.write(" editable=");
            val = String.valueOf(info.isEditable());
            writer.write(addQuote(val));

            val = info.getStampMemo();
            if (val != null) {
                writer.write(" memo=");
                val = toXmlText(val);
                writer.write(addQuote(val));
            }

            if (info.isSerialized()) {
                val = info.getStampId();
                writer.write(" stampId=");
                writer.write(addQuote(val));
                // ここで対応するstampBytesをデータベースから読み込み登録する。
                String stampHexBytes = getHexStampBytes(val);
                // 実態のないスタンプの場合があった。なぜゾンビができたのだろう??
View Full Code Here

Examples of open.dolphin.infomodel.ModuleInfoBean

    private boolean isEditable() {
        StampTreeNode node = tree.getSelectedNode();
        if (node.isLeaf()) {
            // Leaf なので StampInfo  を得る
            ModuleInfoBean info = (ModuleInfoBean) node.getUserObject();
            return info.isEditable();
        }
        return true;
    }
View Full Code Here

Examples of open.dolphin.infomodel.ModuleInfoBean

            // DropされたTreeNodeを取得する
            StampTreeNode droppedNode = (StampTreeNode) tr.getTransferData(LocalStampTreeNodeTransferable.localStampTreeNodeFlavor);
           
            // 葉の場合
            if (droppedNode.isLeaf()) {
                ModuleInfoBean stampInfo = droppedNode.getStampInfo();
                String role = stampInfo.getStampRole();
                if (role.equals(IInfoModel.ROLE_P)) {
                    pPane.stampInfoDropped(stampInfo);
                } else if (role.equals(IInfoModel.ROLE_TEXT)) {
                    pPane.stampInfoDropped(stampInfo);
                } else if (role.equals(IInfoModel.ROLE_ORCA_SET)) {
                    pPane.stampInfoDropped(stampInfo);
                }
               
                return true;
            }
           
            // Dropされたノードの葉を列挙する
            Enumeration e = droppedNode.preorderEnumeration();
            ArrayList<ModuleInfoBean> addList = new ArrayList<ModuleInfoBean>(5);
            String role = null;
            while (e.hasMoreElements()) {
                StampTreeNode node = (StampTreeNode) e.nextElement();
                if (node.isLeaf()) {
                    ModuleInfoBean stampInfo = node.getStampInfo();
                    role = stampInfo.getStampRole();
                    if (stampInfo.isSerialized() && (role.equals(IInfoModel.ROLE_P) || (role.equals(IInfoModel.ROLE_TEXT))) ) {
                        addList.add(stampInfo);
                    }
                }
            }
           
View Full Code Here

Examples of open.dolphin.infomodel.ModuleInfoBean

            } else {
                item.setEnabled(false);
            }
           
        } else {
            ModuleInfoBean info = (ModuleInfoBean) node.getUserObject();
            JMenuItem item = new JMenuItem(info.getStampName());
            if (comp != null && handler != null) {
                item.addActionListener(new TransferAction(comp, handler, new LocalStampTreeNodeTransferable(node)));
            } else {
                item.setEnabled(false);
            }
View Full Code Here

Examples of open.dolphin.infomodel.ModuleInfoBean

                        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

Examples of open.dolphin.infomodel.ModuleInfoBean

            // DropされたTreeNodeを取得する
            StampTreeNode droppedNode = (StampTreeNode) tr.getTransferData(LocalStampTreeNodeTransferable.localStampTreeNodeFlavor);
           
            // 葉の場合
            if (droppedNode.isLeaf()) {
                ModuleInfoBean stampInfo = droppedNode.getStampInfo();
                String role = stampInfo.getStampRole();
                if (role.equals(IInfoModel.ROLE_TEXT)) {
                    soaPane.stampInfoDropped(stampInfo);
                } else if (role.equals(IInfoModel.ROLE_SOA)) {
                    soaPane.stampInfoDropped(stampInfo);
                }
                return true;
            }
           
            // Dropされたノードの葉を列挙する
            Enumeration e = droppedNode.preorderEnumeration();
            ArrayList<ModuleInfoBean> addList = new ArrayList<ModuleInfoBean>(5);
            String role = null;
            while (e.hasMoreElements()) {
                StampTreeNode node = (StampTreeNode) e.nextElement();
                if (node.isLeaf()) {
                    ModuleInfoBean stampInfo = node.getStampInfo();
                    if (stampInfo.isSerialized() && (!stampInfo.getEntity().equals(IInfoModel.ENTITY_DIAGNOSIS)) ) {
                        if (role == null) {
                            role = stampInfo.getStampRole();
                        }
                        addList.add(stampInfo);
                    }
                }
            }
View Full Code Here

Examples of open.dolphin.infomodel.ModuleInfoBean

                ArrayList<OrcaEntry> entries = dao.getOrcaInputCdList();
                StampTreeNode root = (StampTreeNode) getModel().getRoot();

                for (OrcaEntry entry : entries) {
                    ModuleInfoBean stampInfo = entry.getStampInfo();
                    StampTreeNode node = new StampTreeNode(stampInfo);
                    root.add(node);
                }

                DefaultTreeModel model = (DefaultTreeModel) getModel();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.