1 19 20 package org.netbeans.core.api.multiview; 21 22 import java.util.TooManyListenersException ; 23 import javax.swing.Action ; 24 import javax.swing.JComponent ; 25 import javax.swing.JToolBar ; 26 import org.netbeans.core.spi.multiview.MultiViewElement; 27 import org.openide.util.Lookup; 28 29 34 35 final class MultiViewPerspectiveComponent { 37 38 static { 39 AccessorImpl.createAccesor(); 40 } 41 42 private MultiViewElement element; 43 44 MultiViewPerspectiveComponent(MultiViewElement elem) { 45 element = elem; 46 } 47 48 MultiViewElement getElement() { 50 return element; 51 } 52 53 56 public JComponent getVisualRepresentation () { 57 return element.getVisualRepresentation(); 58 } 59 60 64 public JComponent getToolbarRepresentation () { 65 return element.getToolbarRepresentation(); 66 } 67 68 73 public Action [] getActions() { 74 return element.getActions(); 75 } 76 77 81 public Lookup getLookup() { 82 return element.getLookup(); 83 } 84 85 86 } | Popular Tags |