Package org.apache.ojb.tools.mapping.reversedb2.ojbmetatreemodel

Examples of org.apache.ojb.tools.mapping.reversedb2.ojbmetatreemodel.ReverseDbNodesToOjbMetaDropWorker


        jTree1 = new javax.swing.JTree();
        jScrlProperty = new javax.swing.JScrollPane();

        mnuFile.setMnemonic('F');
        mnuFile.setText("File");
        mnuFileSave.setAction(new ActionSaveAsOJBRepository(aRepository));
        mnuFile.add(mnuFileSave);

        jMenuBar1.add(mnuFile);

        setClosable(true);
View Full Code Here


        jTree1 = new javax.swing.JTree();
        jScrlProperty = new javax.swing.JScrollPane();

        mnuFile.setMnemonic('F');
        mnuFile.setText("File");
        mnuFileSave.setAction(new ActionSaveAsOJBRepository(aRepository));
        mnuFile.add(mnuFileSave);

        jMenuBar1.add(mnuFile);

        setClosable(true);
View Full Code Here

        this.jdbcConnection = pjdbcConnection;
        initComponents();
        try
        {
            this.setTitle("Database: " + jdbcConnection.getMetaData().getURL());
            DatabaseMetaDataTreeModel model = new DatabaseMetaDataTreeModel(this.jdbcConnection.getMetaData());
            model.addStatusMessageListener(new org.apache.ojb.tools.mapping.reversedb2.events.StatusMessageAdapter()
            {
                public void statusMessageReceived(final String s)
                {
                    javax.swing.SwingUtilities.invokeLater(new Runnable()
                    {
View Full Code Here

        this.jdbcConnection = pjdbcConnection;
        initComponents();
        try
        {
            this.setTitle("Database: " + jdbcConnection.getMetaData().getURL());
            DatabaseMetaDataTreeModel model = new DatabaseMetaDataTreeModel(this.jdbcConnection.getMetaData());
            model.addStatusMessageListener(new org.apache.ojb.tools.mapping.reversedb2.events.StatusMessageAdapter()
            {
                public void statusMessageReceived(final String s)
                {
                    javax.swing.SwingUtilities.invokeLater(new Runnable()
                    {
View Full Code Here

            this.jTreeDatabase.setModel(new javax.swing.tree.DefaultTreeModel(new javax.swing.tree.DefaultMutableTreeNode("Error...")));
        }
       
        // new DatabaseTransferHandler().register(jTreeDatabase);
        // enable dragging for the tree.
        new DragHelper(new ReverseDbNodesDragWorker()).registerComponent(jTreeDatabase);
       
        // enable dropping for the tree.
        DropTargetHelper helper = new DropTargetHelper();
        helper.registerDropPasteWorker (new ReverseDbNodesDropWorker());
        jTreeDatabase.setDropTarget(helper.getDropTarget ());
View Full Code Here

        this.setDropTarget(helper.getDropTarget());
*/
        // this.jScrollPane1.setDropTarget(helper.getDropTarget());
//        this.jSplitPane1.setDropTarget(helper.getDropTarget());
       
        new DragHelper(new OjbMetaTreeNodesDragWorker()).registerComponent(jTree1);
       
        setJMenuBar(this.jMenuBar1);
        pack();
    }
View Full Code Here

            this.jTreeDatabase.setModel(new javax.swing.tree.DefaultTreeModel(new javax.swing.tree.DefaultMutableTreeNode("Error...")));
        }
       
        // new DatabaseTransferHandler().register(jTreeDatabase);
        // enable dragging for the tree.
        new DragHelper(new ReverseDbNodesDragWorker()).registerComponent(jTreeDatabase);
       
        // enable dropping for the tree.
        DropTargetHelper helper = new DropTargetHelper();
        helper.registerDropPasteWorker (new ReverseDbNodesDropWorker());
        jTreeDatabase.setDropTarget(helper.getDropTarget ());
View Full Code Here

        this.setDropTarget(helper.getDropTarget());
*/
        // this.jScrollPane1.setDropTarget(helper.getDropTarget());
//        this.jSplitPane1.setDropTarget(helper.getDropTarget());
       
        new DragHelper(new OjbMetaTreeNodesDragWorker()).registerComponent(jTree1);
       
        setJMenuBar(this.jMenuBar1);
        pack();
    }
View Full Code Here

        // new DatabaseTransferHandler().register(jTreeDatabase);
        // enable dragging for the tree.
        new DragHelper(new ReverseDbNodesDragWorker()).registerComponent(jTreeDatabase);
       
        // enable dropping for the tree.
        DropTargetHelper helper = new DropTargetHelper();
        helper.registerDropPasteWorker (new ReverseDbNodesDropWorker());
        jTreeDatabase.setDropTarget(helper.getDropTarget ());

    }
View Full Code Here

    public JIFrmOJBRepository(DescriptorRepository repository)
    {
        this.aRepository = repository;
        initComponents();
        jTree1.setModel(new org.apache.ojb.tools.mapping.reversedb2.ojbmetatreemodel.OjbMetaDataTreeModel(repository));
        DropTargetHelper helper = new DropTargetHelper();
        helper.registerDropPasteWorker (new ReverseDbNodesToOjbMetaDropWorker());
        jTree1.setDropTarget(helper.getDropTarget ());
/*        getGlassPane().setDropTarget(helper.getDropTarget());
        this.setDropTarget(helper.getDropTarget());
*/
        // this.jScrollPane1.setDropTarget(helper.getDropTarget());
//        this.jSplitPane1.setDropTarget(helper.getDropTarget());
View Full Code Here

TOP

Related Classes of org.apache.ojb.tools.mapping.reversedb2.ojbmetatreemodel.ReverseDbNodesToOjbMetaDropWorker

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.