Package DisplayProject.controls

Examples of DisplayProject.controls.Panel


   * @param widthPolicy
   *       The width policy of the panel. This should be one of the SP_ constants
   * @return The created <code>Panel</code>
   */
  public static Panel newPanel(String caption, int heightPolicy, String name, int widthPolicy) {
    Panel panel = newPanel(name);
    HeightPolicy.set(panel, heightPolicy);
    WidthPolicy.set(panel, widthPolicy);
    Caption.set(panel, caption);
    return panel;
  }
View Full Code Here


   * @param widthPolicy
   *       The width policy of the panel. This should be one of the SP_ constants
   * @return The created <code>Panel</code>
   */
  public static Panel newPanel(TextData caption, int heightPolicy, String name, int widthPolicy) {
    Panel panel = newPanel(name);
    HeightPolicy.set(panel, heightPolicy);
    WidthPolicy.set(panel, widthPolicy);
    Caption.set(panel, caption);
    return panel;
  }
View Full Code Here

   * @param widthPolicy
   *       The width policy of the panel. This should be one of the SP_ constants
   * @return The created <code>Panel</code>
   */
  public static Panel newPanel(String caption, int heightPolicy, TextData name, int widthPolicy) {
    Panel panel = newPanel(name);
    HeightPolicy.set(panel, heightPolicy);
    WidthPolicy.set(panel, widthPolicy);
    Caption.set(panel, caption);
    return panel;
  }
View Full Code Here

   * @param widthPolicy
   *       The width policy of the panel. This should be one of the SP_ constants
   * @return The created <code>Panel</code>
   */
  public static Panel newPanel(TextData caption, int heightPolicy, TextData name, int widthPolicy) {
    Panel panel = newPanel(name);
    HeightPolicy.set(panel, heightPolicy);
    WidthPolicy.set(panel, widthPolicy);
    Caption.set(panel, caption);
    return panel;
  }
View Full Code Here

   * @param name
   *            Name of the Panel
   * @return The created <code>Panel</code>
   */
  public static Panel newPanel(String name) {
    Panel panel = new Panel();
    int size = UIutils.milsToPixels(5000);
    panel.setSize(size, size);
    // panel.setMinimumSize(panel.getSize());
    panel.setName(name);
    panel.setFocusable(false);
    panel.setOpaque(true);
    panel.setLayout(new PanelLayoutManager());
    panel.setBackground(null);
    return panel;
  }
View Full Code Here

   *            The margin parameter (int) defines a margin, in mils, between
   *            a panel�s boundaries and its child widgets as a group.
   * @return The created <code>Panel</code>
   */
  public static Panel newPanel(String name, int margin) {
    Panel gf = newPanel(name);
    int gap = UIutils.milsToPixels(margin);
    gf.getInsets().left = gap;
    gf.getInsets().right = gap;
    gf.getInsets().top = gap;
    gf.getInsets().bottom = gap;
    gf.setBackground(null);
    return gf;
  }
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.