Examples of DirectoryReportTypeItem


Examples of cli_fmw.delegate.directory.complex.reportType.DirectoryReportTypeItem

    private void btAddGroupActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btAddGroupActionPerformed
        try {
            ReportTypeDetails dd = new ReportTypeDetails();
            dd.title = "введите название";
            DirectoryReportTypeItem item = new DirectoryReportTypeItem(dd);
            if (treeReportTypes.getLastSelectedPathComponent() instanceof DirectoryReportTypeItem) {
                DirectoryReportTypeItem parent = (DirectoryReportTypeItem)
                        treeReportTypes.getLastSelectedPathComponent();
                dd.parentItem = parent.getID();
                parent.getItems().append(item);
                treeReportTypes.updateUI();
            }
            else {
                dd.parentItem = 0;
                DirectoryReportType directory = (DirectoryReportType)
View Full Code Here

Examples of cli_fmw.delegate.directory.complex.reportType.DirectoryReportTypeItem

            if (treeReportTypes.getLastSelectedPathComponent() == treeReportTypes.getModel().getRoot()
                    || treeReportTypes.getLastSelectedPathComponent() == null) {
                return;
            }

            DirectoryReportTypeItem item = (DirectoryReportTypeItem) treeReportTypes.getLastSelectedPathComponent();

            DirectoryReportTypeItem parent = item.getParent();

            if (parent == null) {
                DirectoryReportType dir =
                        (DirectoryReportType) DirectoryLocator.getDirectory(DirectoryReportType.class, false);
                 dir.getItems().remove(item);
            }
            else {
                parent.getItems().remove(item);
            }
            treeReportTypes.updateUI();
            treeReportTypes.getSelectionModel().setSelectionPath(null);
            treeReportTypesValueChanged(null);
        } catch (ClipsException ex) {
View Full Code Here

Examples of cli_fmw.delegate.directory.complex.reportType.DirectoryReportTypeItem

    private void treeReportTypesKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_treeReportTypesKeyPressed
        try {
            int code = evt.getKeyCode();
            if (evt.isControlDown() && code == KeyEvent.VK_V && selectedQuery != null) {
                if (treeReportTypes.getLastSelectedPathComponent() instanceof DirectoryReportTypeItem) {
                    DirectoryReportTypeItem groupItem = (DirectoryReportTypeItem) treeReportTypes.getLastSelectedPathComponent();
                    selectedQuery.setReportType(groupItem);
                    selectedQuery.save1();
                    setTable();
                    selectedQuery = null;
                }
View Full Code Here

Examples of cli_fmw.delegate.directory.complex.reportType.DirectoryReportTypeItem

    @Override
    public int getChildCount(Object parent) {
        if(parent instanceof DefaultMutableTreeNode) {
            return items.size();
        } else {
            DirectoryReportTypeItem item = (DirectoryReportTypeItem)parent;
            return item.getItems().size();
        }
    }
View Full Code Here

Examples of cli_fmw.delegate.directory.complex.reportType.DirectoryReportTypeItem

    @Override
    public Object getChild(Object parent, int index) {
        if(parent instanceof DefaultMutableTreeNode) {
          return items.get(index);
        } else {
            DirectoryReportTypeItem item = (DirectoryReportTypeItem)parent;
            return item.getItems().get(index);
        }
    }
View Full Code Here

Examples of cli_fmw.delegate.directory.complex.reportType.DirectoryReportTypeItem

    //Изменение текста группы услуг
    @Override
    public void valueForPathChanged(TreePath path, Object newValue) {
        try {
            if (path.getLastPathComponent() instanceof DirectoryReportTypeItem) {
                DirectoryReportTypeItem item = (DirectoryReportTypeItem) path.getLastPathComponent();
                item.setTitle(newValue.toString());
            }
            else {
                MessageBox.showWarning("Запрещено менять заголовок дерева");
            }
        } catch (ClipsException ex) {
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.