Package org.pushingpixels.substance.internal.utils.border

Examples of org.pushingpixels.substance.internal.utils.border.SubstanceTextComponentBorder


      editor.setOpaque(false);
    }

    Border b = this.spinner.getBorder();
    if (b == null || b instanceof UIResource) {
      this.spinner.setBorder(new SubstanceTextComponentBorder(
          SubstanceSizeUtils
              .getSpinnerBorderInsets(SubstanceSizeUtils
                  .getComponentFontSize(this.spinner))));
    }
  }
View Full Code Here


      int comboFontSize = SubstanceSizeUtils
          .getComponentFontSize(this.comboBox);
      Insets comboBorderInsets = SubstanceSizeUtils
          .getComboBorderInsets(comboFontSize);
      if (this.comboBox.isEditable()) {
        this.comboBox.setBorder(new SubstanceTextComponentBorder(
            comboBorderInsets));
      } else {
        this.comboBox
            .setBorder(new BorderUIResource.EmptyBorderUIResource(
                comboBorderInsets));
View Full Code Here

  protected void installDefaults() {
    super.installDefaults();
    Border b = this.passwordField.getBorder();
    if (b == null || b instanceof UIResource) {
      Border newB = new BorderUIResource.CompoundBorderUIResource(
          new SubstanceTextComponentBorder(SubstanceSizeUtils
              .getTextBorderInsets(SubstanceSizeUtils
                  .getComponentFontSize(this.passwordField))),
          new BasicBorders.MarginBorder());
      this.passwordField.setBorder(newB);
    }
View Full Code Here

  protected void installDefaults() {
    super.installDefaults();
    Border b = this.textField.getBorder();
    if (b == null || b instanceof UIResource) {
      Border newB = new BorderUIResource.CompoundBorderUIResource(
          new SubstanceTextComponentBorder(SubstanceSizeUtils
              .getTextBorderInsets(SubstanceSizeUtils
                  .getComponentFontSize(this.textField))),
          new BasicBorders.MarginBorder());
      this.textField.setBorder(newB);
    }
View Full Code Here

  protected void installDefaults() {
    super.installDefaults();
    Border b = this.textField.getBorder();
    if (b == null || b instanceof UIResource) {
      Border newB = new BorderUIResource.CompoundBorderUIResource(
          new SubstanceTextComponentBorder(SubstanceSizeUtils
              .getTextBorderInsets(SubstanceSizeUtils
                  .getComponentFontSize(this.textField))),
          new BasicBorders.MarginBorder());
      this.textField.setBorder(newB);
    }
View Full Code Here

  protected void installDefaults() {
    super.installDefaults();
    Border b = this.textField.getBorder();
    if (b == null || b instanceof UIResource) {
      Border newB = new BorderUIResource.CompoundBorderUIResource(
          new SubstanceTextComponentBorder(SubstanceSizeUtils
              .getTextBorderInsets(SubstanceSizeUtils
                  .getComponentFontSize(this.textField))),
          new BasicBorders.MarginBorder());
      this.textField.setBorder(newB);
    }
View Full Code Here

      int comboFontSize = SubstanceSizeUtils
          .getComponentFontSize(this.comboBox);
      Insets comboBorderInsets = SubstanceSizeUtils
          .getComboBorderInsets(comboFontSize);
      if (this.comboBox.isEditable()) {
        this.comboBox.setBorder(new SubstanceTextComponentBorder(
            comboBorderInsets));
      } else {
        this.comboBox
            .setBorder(new BorderUIResource.EmptyBorderUIResource(
                comboBorderInsets));
View Full Code Here

  protected void installDefaults() {
    super.installDefaults();
    Border b = this.passwordField.getBorder();
    if (b == null || b instanceof UIResource) {
      Border newB = new BorderUIResource.CompoundBorderUIResource(
          new SubstanceTextComponentBorder(SubstanceSizeUtils
              .getTextBorderInsets(SubstanceSizeUtils
                  .getComponentFontSize(this.passwordField))),
          new BasicBorders.MarginBorder());
      this.passwordField.setBorder(newB);
    }
View Full Code Here

  protected void installDefaults() {
    super.installDefaults();
    Border b = this.textField.getBorder();
    if (b == null || b instanceof UIResource) {
      Border newB = new BorderUIResource.CompoundBorderUIResource(
          new SubstanceTextComponentBorder(SubstanceSizeUtils
              .getTextBorderInsets(SubstanceSizeUtils
                  .getComponentFontSize(this.textField))),
          new BasicBorders.MarginBorder());
      this.textField.setBorder(newB);
    }
View Full Code Here

      editor.setOpaque(false);
    }

    Border b = this.spinner.getBorder();
    if (b == null || b instanceof UIResource) {
      this.spinner.setBorder(new SubstanceTextComponentBorder(
          SubstanceSizeUtils
              .getSpinnerBorderInsets(SubstanceSizeUtils
                  .getComponentFontSize(this.spinner))));
    }
  }
View Full Code Here

TOP

Related Classes of org.pushingpixels.substance.internal.utils.border.SubstanceTextComponentBorder

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.