/** * Creates an operator for button returned by {@code findJButton()} method. * * @return new JButtonOperator instance. */ public JButtonOperator getButton() { if (button == null) { button = new JButtonOperator(findJButton()); button.copyEnvironment(this); button.setOutput(getOutput().createErrorOutput()); } return button; }
// End of mapping // //////////////////////////////////////////////////////// private void expandTo(int index) { makeComponentVisible(); JButtonOperator bo = new JButtonOperator( (JButton) getDivider() .waitSubComponent( new JButtonOperator.JButtonFinder( ComponentSearcher.getTrueChooser("JButton")), index)); bo.copyEnvironment(getDivider()); bo.setVisualizer(new EmptyVisualizer()); bo.push(); }