Package DisplayProject.controls

Examples of DisplayProject.controls.Panel


        }
        return qq_templateTab;
    }

    public void setqq_templateTab(Panel value) {
        Panel oldValue = qq_templateTab;
        qq_templateTab = value;
        this.qq_Listeners.firePropertyChange("qq_templateTab", oldValue, value);
    }
View Full Code Here


    //PM:13/6/08 changed to return type of Panel to unsure it is a compound field
    public static Panel getForm(JFrame win) {
                try {
                Expression expr = new Expression(win, "getForm", new Object[0]);
                    expr.execute();
                    Panel form = ((Panel)expr.getValue());
                    return form;
            } catch (Exception e) {
                return null;
            }
View Full Code Here

     * @return
     */
    private int virtualToRealX(Component comp) {
      Container container = comp.getParent();
      if (container instanceof Panel && comp instanceof JComponent) {
        Panel panel = (Panel)container;
        Insets insets = panel.getInsets();
        Integer virtualXObj = (Integer)((JComponent)comp).getClientProperty("virtualX");
        if (virtualXObj != null) {
          int virtualX = virtualXObj.intValue() + insets.left + panel.getMargin();
          return virtualX;
        }
      }
    return comp.getX();
    }
View Full Code Here

     * @return
     */
    private int virtualToRealY(Component comp) {
      Container container = comp.getParent();
      if (container instanceof Panel && comp instanceof JComponent) {
        Panel panel = (Panel)container;
        Insets insets = panel.getInsets();
        Integer virtualYObj = (Integer)((JComponent)comp).getClientProperty("virtualY");
        if (virtualYObj != null) {
          int virtualY = virtualYObj.intValue() + insets.top + panel.getMargin();
          return virtualY;
        }
      }
    return comp.getY();
    }
View Full Code Here

     * @return
     */
    private int realToVirtualX(JComponent comp) {
      Container container = comp.getParent();
      if (container instanceof Panel) {
        Panel panel = (Panel)container;
        Insets insets = panel.getInsets();
        return comp.getX() - insets.left - panel.getMargin();
      }
    return comp.getX();
    }
View Full Code Here

     * @return
     */
    private int realToVirtualY(JComponent comp) {
      Container container = comp.getParent();
      if (container instanceof Panel) {
        Panel panel = (Panel)container;
        Insets insets = panel.getInsets();
        return comp.getY() - insets.top - panel.getMargin();
      }
    return comp.getY();
    }
View Full Code Here

        }
        return qq_FolderPanel;
    }

    public void setqq_FolderPanel(Panel value) {
        Panel oldValue = qq_FolderPanel;
        qq_FolderPanel = value;
        this.qq_Listeners.firePropertyChange("qq_FolderPanel", oldValue, value);
    }
View Full Code Here

        }
        return qq_FolderPanel;
    }

    public void setqq_FolderPanel(Panel value) {
        Panel oldValue = qq_FolderPanel;
        qq_FolderPanel = value;
        this.qq_Listeners.firePropertyChange("qq_FolderPanel", oldValue, value);
    }
View Full Code Here

        }
        return qq_FolderPanel;
    }

    public void setqq_FolderPanel(Panel value) {
        Panel oldValue = qq_FolderPanel;
        qq_FolderPanel = value;
        this.qq_Listeners.firePropertyChange("qq_FolderPanel", oldValue, value);
    }
View Full Code Here

              else {
                ((JPopupMenu)comp).setPreferredSize(new Dimension(0, 0));
              }
            }
            else if (comp instanceof Panel){
              Panel jp = ((Panel) comp);
                /*
                 * if the JPanel was or is part of a JTabbedPane
                 */
             
              _log.debug("Panel "+ jp.getCaption() + " parent: " + ((parent == null) ? "null" : parent.getClass().getName()));
                if (parent instanceof TabFolder ) {
                  if (value) {
                    ((TabFolder)parent).showTab(jp); //PM:14/01/2009:moved functionality to TabFolder
                    _log.debug("Tab: "+jp.getCaption()+" is now visible");
                  } else {
                    ((TabFolder)parent).hideTab(jp);//PM:14/01/2009:moved functionality to TabFolder
                    _log.debug("Tab: "+jp.getCaption()+" is now hidden");
                  }
                } else {
                  comp.setVisible(value);
                }
            } else if (comp instanceof JPanel) {
View Full Code Here

TOP

Related Classes of DisplayProject.controls.Panel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.