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;
 
 import java.awt.Frame;
 
 
 import  com.jidesoft.action.CommandBar;
 import  com.jidesoft.combobox.DateComboBox;
 import  com.jidesoft.combobox.ListComboBox;
 import  com.jidesoft.grid.JideTable;
 import  com.jidesoft.grid.TableScrollPane;
 import  com.jidesoft.pane.CollapsiblePane;
 import  com.jidesoft.status.StatusBar;

A FrameFixture that allows Jide specific fixtures to be obtained from a javax.swing.JFrame's children.

Author(s):
Peter Murray
 
 public class JideFrameFixture extends FrameFixture {
 
   static {
 	Formatting.register(new CommandBarFormatter());
   }
 
   public JideFrameFixture(Frame f) {
 	super(f);
   }
 
   public JideFrameFixture(Robot robotFrame f) {
 	super(robotf);
   }
 
   public JideFrameFixture(String name) {
 	super(name);
   }
 
   public JideFrameFixture(Robot robotString name) {
 	super(robotname);
   }
 
   public ListComboBoxFixture listComboBox(String name) {
 	return new ListComboBoxFixture(robot(), findByName(name, ListComboBox.class));
   }
 
 	                                      GenericTypeMatcher<? extends ListComboBox> matcher) {
 	return new ListComboBoxFixture(robot(), find(matcher));
   }
 
   public DateComboBoxFixture dateComboBox(String name) {
 	return new DateComboBoxFixture(robot(), findByName(name, DateComboBox.class));
   }
 
 	return new TableScrollPaneFixture(robot(),
 	                                  findByName(name, TableScrollPane.class));
   }
 
   public JideTableFixture jideTable(String name) {
 	return new JideTableFixture(robot(),
 	                            findByName(name, JideTable.class));
   }
 
   public CommandBarFixture commandBar(String name) {
 	return new CommandBarFixture(robot(), findByName(name, CommandBar.class));
   }
 
   public JideStatusBarFixture statusBar(String name) {
 	return new JideStatusBarFixture(robot(), findByName(name, StatusBar.class));
   }
 
   public JideStatusBarFixture statusBar() {
 	return new JideStatusBarFixture(robot(), findByType(StatusBar.class));
   }
	return new CollapsiblePaneFixture(robot(), findByType(CollapsiblePane.class));
  }
	return new CollapsiblePaneFixture(robot(), findByName(name, CollapsiblePane.class));
  }
New to GrepCode? Check out our FAQ X