예제 #1
0
 /* (non-Javadoc)
  * @see com.owera.xaps.web.app.page.AbstractWebPage#getShortcutItems(com.owera.xaps.web.app.util.SessionData)
  */
 public List<MenuItem> getShortcutItems(SessionData sessionData) {
   List<MenuItem> list = new ArrayList<MenuItem>();
   list.addAll(super.getShortcutItems(sessionData));
   list.add(new MenuItem("Create new profile", Page.PROFILECREATE));
   list.add(new MenuItem("Profile overview", Page.PROFILEOVERVIEW));
   if (currentProfile != null) { // just to avoid problems on disruptive changes
     list.add(
         new MenuItem("Last 100 syslog entries", Page.SYSLOG)
             .addCommand("auto") // automatically hit the Search button
             .addParameter("unittype", currentProfile.getUnittype().getName())
             .addParameter("profile", currentProfile.getName()));
     list.add(
         new MenuItem("Upgrade profile", Page.UPGRADE)
             .addParameter("type", "Profile")
             .addParameter("unittype", currentProfile.getUnittype().getName())
             .addParameter("profile", currentProfile.getName()));
     list.add(
         new MenuItem("Service window", Page.WINDOWPROFILE)
             .addParameter("unittype", currentProfile.getUnittype().getName())
             .addParameter("profile", currentProfile.getName()));
   }
   return list;
 }
예제 #2
0
 /* (non-Javadoc)
  * @see com.owera.xaps.web.app.page.AbstractWebPage#getTitle(java.lang.String)
  */
 public String getTitle(String page) {
   return super.getTitle(page)
       + (currentProfile != null
           ? " | " + currentProfile.getName() + " | " + currentProfile.getUnittype().getName()
           : "");
 }