1 19 20 package org.netbeans.core.spi.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.multiview.MultiViewElementCallbackDelegate; 27 import org.openide.util.Lookup; 28 import org.openide.windows.TopComponent; 29 30 31 39 public final class MultiViewElementCallback { 40 41 static { 42 AccessorImpl.createAccesor(); 43 } 44 45 private MultiViewElementCallbackDelegate delegate; 46 47 MultiViewElementCallback(MultiViewElementCallbackDelegate del) { 48 delegate = del; 49 } 50 51 54 public void requestActive() { 55 delegate.requestActive(); 56 } 57 58 62 public void requestVisible () { 63 delegate.requestVisible(); 64 } 65 66 70 public Action [] createDefaultActions() { 71 return delegate.createDefaultActions(); 72 } 73 74 77 public void updateTitle(String title) { 78 delegate.updateTitle(title); 79 } 80 81 84 public boolean isSelectedElement() { 85 return delegate.isSelectedElement(); 86 } 87 88 91 public TopComponent getTopComponent() { 92 return delegate.getTopComponent(); 93 } 94 95 } 97 | Popular Tags |