Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Copyright 2012-2015 the original author or authors.
package org.assertj.swing.jide.action;
import  com.jidesoft.action.CommandBar;

A AssertJ Fixture for the CommandBar.

Author(s):
Peter Murray
public class CommandBarFixture extends AbstractContainerFixture<CommandBarFixture, CommandBar, CommandBarDriver> {

  
Creates a new CommandBarFixture.

Parameters:
robot performs simulation of user events on the given CommandBar.
target the CommandBar to be managed by this fixture.
Throws:
NullPointerException if robot is null.
NullPointerException if target is null.
  public CommandBarFixture(Robot robot, CommandBar target) {
	super(CommandBarFixture.classrobottarget);
  }

  
Creates a new CommandBarFixture.

Parameters:
robot performs simulation of user events on a CommandBar.
commandBarName the name of the CommandBar to find using the given Robot.
Throws:
NullPointerException if robot is null.
org.assertj.swing.exception.ComponentLookupException if a matching CommandBar could not be found.
org.assertj.swing.exception.ComponentLookupException if more than one matching CommandBar is found.
  public CommandBarFixture(Robot robotString commandBarName) {
	super(CommandBarFixture.classrobotcommandBarName, CommandBar.class);
  }
  protected CommandBarDriver createDriver(Robot robot) {
	return new CommandBarDriver(robot);
  }
  public String toString() {
	return Strings.concat("name="target().getName(),
	                      ", enabled="target().isEnabled(),
	                      ", visible="target().isVisible(),
	                      ", showing="target().isShowing());
  }
New to GrepCode? Check out our FAQ X