public IFrameTabPanel(String name) {
    this.name = name;

    frame = new CustomFrame(name);
    frame.getElement().setAttribute("id", name + System.currentTimeMillis()); // $NON-NLS-1$
    frame.setWidth("100%"); // $NON-NLS-1$
    frame.setHeight("100%"); // $NON-NLS-1$

    add(frame);
  }
示例#2
0
 /*
  * Update component sizes
  */
 @Override
 public void repaint() {
   launchpad.setLocation(width - launchpad.getWidth(), 0);
   secondary.setSize(width - launchpad.getWidth(), secondary.getHeight());
   song.setSize(width, height - song.getY());
   super.repaint();
 }
 public void reload() {
   if (form != null) {
     form.submit();
   } else {
     // frame.setUrl(getCurrentUrl());
     reloadFrame(frame.getElement());
   }
 }
示例#4
0
  /*
   * TODO : Check in each whether the key was found, and halt the rest
   * May need to create a new interface that return a boolean if the key was properly found
   */
  @Override
  public void keyReleased(KeyEvent arg0) {
    super.keyReleased(arg0);

    if (arg0.getKeyCode() == KeyEvent.VK_P) {
      if (!forwards.isEmpty()) {
        int len = forwards.size();
        for (int i = 0; i < len; i++) {
          forwards.get(i).keyReleased(arg0);
        }
      }
    }
  }
 public void back() {
   frame.back();
 }
 public void setName(String name) {
   this.name = name;
   frame.getElement().setAttribute("name", name);
   frame.getElement().setAttribute("id", name + System.currentTimeMillis()); // $NON-NLS-1$
 }
 public void setId(String id) {
   frame.getElement().setAttribute("id", id); // $NON-NLS-1$
 }
 public boolean isPrintVisible() {
   return checkFrameWindowPrintVisible(frame.getElement());
 }
 public void setUrl(String url) {
   this.url = url;
   setSaveEnabled(url.contains("analysisview.xaction")); // $NON-NLS-1$
   setUrl(frame.getElement(), url);
 }