Java JButton getWFStep(Vector actionButtons, String action)

Here you can find the source of getWFStep(Vector actionButtons, String action)

Description

get WF Step

License

Apache License

Declaration

public static JButton getWFStep(Vector<JButton> actionButtons, String action) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Vector;

import javax.swing.JButton;

public class Main {
    public static JButton getWFStep(Vector<JButton> actionButtons, String action) {
        for (int i = 0; i < actionButtons.size(); i++) {
            JButton button = actionButtons.elementAt(i);
            String[] cmnd = button.getActionCommand().split("=");
            String stepAction = cmnd[1];
            if (stepAction.equals(action))
                return button;
        }//  w w  w . j av a2 s.  c  o  m
        return null;
    }
}

Related

  1. fixToolbarButtonImpl(JButton button)
  2. formatButtonAsLabel(JButton button)
  3. formatJButton(JButton button, String tooltips)
  4. getButtonNumber(JButton btn)
  5. getScrollStroke(final JButton _jlbl_stroke)
  6. initHelpButton(final JButton buttonHelp)
  7. nombreImg(JButton boton)
  8. normalizeComponentDimension(JComponent[] jButtonList)
  9. nullifyButtonUI(final JButton button)