Ejemplo n.º 1
0
  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);
  }
Ejemplo n.º 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();
 }
Ejemplo n.º 3
0
 public void reload() {
   if (form != null) {
     form.submit();
   } else {
     // frame.setUrl(getCurrentUrl());
     reloadFrame(frame.getElement());
   }
 }
Ejemplo n.º 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);
        }
      }
    }
  }
Ejemplo n.º 5
0
 public void back() {
   frame.back();
 }
Ejemplo n.º 6
0
 public void setName(String name) {
   this.name = name;
   frame.getElement().setAttribute("name", name);
   frame.getElement().setAttribute("id", name + System.currentTimeMillis()); // $NON-NLS-1$
 }
Ejemplo n.º 7
0
 public void setId(String id) {
   frame.getElement().setAttribute("id", id); // $NON-NLS-1$
 }
Ejemplo n.º 8
0
 public boolean isPrintVisible() {
   return checkFrameWindowPrintVisible(frame.getElement());
 }
Ejemplo n.º 9
0
 public void setUrl(String url) {
   this.url = url;
   setSaveEnabled(url.contains("analysisview.xaction")); // $NON-NLS-1$
   setUrl(frame.getElement(), url);
 }