Package com.eviware.soapui.support.action.swing

Examples of com.eviware.soapui.support.action.swing.ActionList


        if (list.getSelectedRow() != row) {
            list.setRowSelectionInterval(row, row);
        }

        ActionList actions = getActionsForRow(list, row);

        if (actions == null || actions.getActionCount() == 0) {
            return;
        }

        JPopupMenu popup = menu == null ? ActionSupport.buildPopup(actions) : menu;
        UISupport.showPopup(popup, list, e.getPoint());
View Full Code Here


            this.dialog = dialog;
        }

        @Override
        public void valueChanged(XFormField sourceField, String newValue, String oldValue) {
            ActionList actionsList = dialog.getActionsList();
            for (int actionIndex = 0; actionIndex < actionsList.getActionCount(); actionIndex++) {
                Action action = actionsList.getActionAt(actionIndex);
                if (action.getValue(Action.NAME).equals("OK")) {
                    if (StringUtils.isNullOrEmpty(newValue)) {
                        action.setEnabled(false);
                    } else {
                        action.setEnabled(true);
View Full Code Here

        JList list = (JList) e.getSource();

        int selectedIndex = list.getSelectedIndex();

        ActionList actions = selectedIndex == -1 ? getDefaultActions() : getActionsForRow(list, selectedIndex);

        if (actions != null) {
            actions.performDefaultAction(new ActionEvent(this, 0, null));
        }
    }
View Full Code Here

    public void showPopup(MouseEvent e) {
        if (!enablePopup) {
            return;
        }

        ActionList actions = null;
        JList list = (JList) e.getSource();
        int row = list.locationToIndex(e.getPoint());
        if (row == -1 || !list.getCellBounds(row, row).contains(e.getPoint())) {
            if (list.getSelectedIndex() != -1) {
                list.clearSelection();
            }

            actions = getDefaultActions();
        } else {
            if (list.getSelectedIndex() != row) {
                list.setSelectedIndex(row);
            }

            actions = getActionsForRow(list, row);
        }

        if (actions == null || actions.getActionCount() == 0) {
            return;
        }

        JPopupMenu popup = menu == null ? ActionSupport.buildPopup(actions) : menu;
        UISupport.showPopup(popup, list, e.getPoint());
View Full Code Here

        if (row < 0) {
            return;
        }

        LoadTestLogEntry entry = (LoadTestLogEntry) loadTestLog.getElementAt(row);
        ActionList actions = entry.getActions();

        if (actions == null || actions.getActionCount() == 0) {
            return;
        }

        JPopupMenu popup = ActionSupport.buildPopup(actions);
        popup.setInvoker(logTable);
View Full Code Here

                if (row < 0) {
                    return;
                }

                LoadTestLogEntry entry = (LoadTestLogEntry) loadTestLog.getElementAt(row);
                ActionList actions = entry.getActions();
                if (actions != null) {
                    actions.performDefaultAction(new ActionEvent(logTable, 0, null));
                }
            }
        }
View Full Code Here

            return;
        }

        if (ix.length == 1) {
            ModelItem modelItem = getModelItemAt(ix[0]);
            ActionList actions = ActionListBuilder.buildActions(modelItem);
            if (actions != null) {
                actions.dispatchKeyEvent(e);
            }
        } else {
            ModelItem[] modelItems = new ModelItem[ix.length];

            for (int c = 0; c < ix.length; c++) {
                modelItems[c] = getModelItemAt(ix[c]);
            }

            ActionList actions = ActionListBuilder.buildMultiActions(modelItems);
            if (actions != null) {
                actions.dispatchKeyEvent(e);
            }
        }
    }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.support.action.swing.ActionList

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.