1 19 20 package org.netbeans.api.nodes2looks; 21 22 import java.beans.*; 23 import java.awt.Image ; 24 import java.awt.image.BufferedImage ; 25 import java.awt.datatransfer.Transferable ; 26 import java.awt.event.ActionListener ; 27 import java.awt.event.ActionEvent ; 28 import java.io.IOException ; 29 import java.util.ArrayList ; 30 31 import javax.swing.event.ChangeListener ; 32 import javax.swing.event.ChangeEvent ; 33 import javax.swing.JMenuItem ; 34 import javax.swing.JMenu ; 35 import javax.swing.event.MenuListener ; 36 import javax.swing.event.MenuEvent ; 37 38 import org.openide.nodes.*; 39 40 import org.netbeans.junit.*; 41 42 import org.netbeans.api.nodes2looks.Nodes; 43 import org.netbeans.spi.looks.*; 44 45 public class LookNodeEventsTest extends TestBaseEvents { 46 47 49 public LookNodeEventsTest(java.lang.String testName) { 50 super(testName); 51 } 52 53 public static void main(java.lang.String [] args) { 54 junit.textui.TestRunner.run(suite()); 55 } 56 57 public static NbTest suite() { 58 NbTestSuite suite = new NbTestSuite(LookNodeEventsTest.class); 59 return suite; 60 } 61 62 protected void setUp() throws Exception { 63 64 SampleLook sampleLook = new SampleLook( "Event test look" ); 65 LookSelector sampleSelector = Selectors.selector( new SampleProvider( sampleLook ) ); 66 GoldenValue[] goldenValues = GoldenValue.createGoldenValues(); 67 SampleRepObject representedObject = new SampleRepObject( goldenValues ); 68 Node lookNode = Nodes.node( representedObject, sampleLook, sampleSelector ); 69 70 setTarget( lookNode, representedObject ); 71 setGoldenValues( goldenValues ); 72 73 super.setUp(); 74 } 75 76 protected void tearDown() throws Exception { 77 super.tearDown(); 78 } 79 80 81 83 89 } 90 91 | Popular Tags |