Examples of LayoutEditView


Examples of realcix20.guis.views.LayoutEditView

//        defAction.putValue(Action.SMALL_ICON, ImageManager.getImage(ImageManager.NEW_REPORT_IMAGE));
       
       
        Action addAction=new AbstractAction(){
      public void actionPerformed(ActionEvent e) {
        new LayoutEditView(getContainer(), -1, "ADD");
      }
        };
        addAction.putValue(Action.NAME, MnemonicGenerator.generateMnemonicString(TxtManager.getTxt("VIEW.MAINFRAME.TREE.POPUPMENU.NEWREPORT"),KeyEvent.VK_N));
        addAction.putValue(Action.SMALL_ICON, ImageManager.getImage(ImageManager.NEW_REPORT_IMAGE));
       
        Action editAction = new AbstractAction() {
      public void actionPerformed(ActionEvent e) {       
        new LayoutEditView(getContainer(),getCurrentLayout(), "EDIT");
      }
    };
    editAction.putValue(Action.NAME,MnemonicGenerator.generateMnemonicString(TxtManager.getTxt("VIEW.MAINFRAME.TREE.POPUPMENU.EDITREPORT"),KeyEvent.VK_E));
    editAction.putValue(Action.SMALL_ICON, ImageManager.getImage(ImageManager.EDIT_REPORT_IMAGE));
    reportOpts.add(editAction);
       
        Action rnAction = new AbstractAction() {
      public void actionPerformed(ActionEvent e) {       
        new LayoutRenameView(XTable.this,getCurrentLayout());
      }
    };
    rnAction.putValue(Action.NAME,MnemonicGenerator.generateMnemonicString(TxtManager.getTxt("VIEW.MAINFRAME.TREE.POPUPMENU.RENAMEREPORT"),KeyEvent.VK_R));
    rnAction.putValue(Action.SMALL_ICON,ImageManager.getImage(ImageManager.RENAME_REPORT_IMAGE));
    reportOpts.add(rnAction);
   
    Action copyAction = new AbstractAction() {
      public void actionPerformed(ActionEvent e) {
        new LayoutEditView(getContainer(),getCurrentLayout(), "COPY");
      }
    };
    copyAction.putValue(Action.NAME,MnemonicGenerator.generateMnemonicString(TxtManager.getTxt("VIEW.MAINFRAME.TREE.POPUPMENU.COPYREPORT"),KeyEvent.VK_C));
    copyAction.putValue(Action.SMALL_ICON, ImageManager.getImage(ImageManager.COPY_REPORT_IMAGE));
    reportOpts.add(copyAction);
View Full Code Here

Examples of realcix20.guis.views.LayoutEditView

                DefaultMutableTreeNode node = (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
                if (node.getUserObject() instanceof ObjectInfo) {
                    ObjectInfo oj = (ObjectInfo)node.getUserObject();
                    if (command.equals("EDIT")) {
                        if (oj.flag.equals("report")) {
                            new LayoutEditView(getContainer(), oj.layout, command);
                            getContainer().setEnabled(false);
                        }
                    } else if (command.equals("ADD")) {
                        if (oj.flag.equals("object")) {
                            new LayoutEditView(getContainer(), -1, command);
                            getContainer().setEnabled(false);
                        }
                    }           
                }
            }
View Full Code Here

Examples of realcix20.guis.views.LayoutEditView

                DefaultMutableTreeNode node = (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
                if (node.getUserObject() instanceof ObjectInfo) {
                    ObjectInfo oj = (ObjectInfo)node.getUserObject();
                    if (command.equals("EDIT")) {
                        if (oj.flag.equals("layout")) {
                            new LayoutEditView(getContainer(), oj.layout, command);
                            getContainer().setEnabled(false);
                        }
                    } else if (command.equals("ADD")) {
                        if ( (oj.flag.equals("layout")) || (oj.flag.equals("object")) ) {
                            new LayoutEditView(getContainer(), -1, command);
                            getContainer().setEnabled(false);
                        }
                    }           
                }
            }
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.