1 19 20 package org.netbeans.modules.tasklist.usertasks.schedule; 21 22 import java.awt.BorderLayout ; 23 import org.openide.windows.TopComponent; 24 import org.netbeans.modules.tasklist.usertasks.model.UserTaskList; 25 26 27 30 public class ScheduleTopComponent extends TopComponent { 31 private ScheduleView view; 32 33 39 public ScheduleTopComponent(String title, UserTaskList utl) { 40 setName(title); setLayout(new BorderLayout ()); 42 view = new ScheduleView(); 43 add(view, BorderLayout.CENTER); 44 45 view.setUserTaskList(utl); 46 } 47 48 protected String preferredID() { 49 return "org.netbeans.modules.tasklist.usertasks.Schedule"; } 51 52 public int getPersistenceType() { 53 return TopComponent.PERSISTENCE_NEVER; 54 } 55 } 56 | Popular Tags |