Package org.jvnet.substance.utils.border

Examples of org.jvnet.substance.utils.border.SubstanceBorder


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


    FadeState focusState = SubstanceFadeUtilities.getFadeState(table,
        cellFocusId, FadeKind.FOCUS);

    Insets regInsets = ui.getCellRendererInsets();
    if (hasFocus || (focusState != null)) {
      SubstanceBorder border = new SubstanceBorder(regInsets);

      // System.out.println("[" + row + ":" + column + "] hasFocus : "
      // + hasFocus + ", focusState : " + focusState);
      if (focusState != null) {
        border.setAlpha(focusState.getFadePosition());
      }

      // special case for tables with no grids
      if (!table.getShowHorizontalLines()
          && !table.getShowVerticalLines()) {
View Full Code Here

        // focus can be only on one cell).
        cellFocusId.setExactComparison(true);
        FadeState focusState = SubstanceFadeUtilities.getFadeState(
            table, cellFocusId, FadeKind.FOCUS);
        if (hasFocus || (focusState != null)) {
          SubstanceBorder border = new SubstanceBorder();
          if (focusState != null) {
            border.setAlpha(focusState.getFadePosition());
          }
          this.setBorder(border);
        } else {
          this.setBorder(BooleanRenderer.noFocusBorder);
        }
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 SubstanceBorder(SubstanceSizeUtils
              .getTextBorderInsets(SubstanceSizeUtils
                  .getComponentFontSize(this.textField))),
          new BasicBorders.MarginBorder());
      this.textField.setBorder(newB);
    }
View Full Code Here

  @Override
  protected void installDefaults() {
    super.installDefaults();
    Border b = this.comboBox.getBorder();
    if (b == null || b instanceof UIResource) {
      Border newB = new SubstanceBorder(SubstanceSizeUtils
          .getComboBorderInsets(SubstanceSizeUtils
              .getComponentFontSize(this.comboBox)));

      this.comboBox.setBorder(newB);
    }
View Full Code Here

  @Override
  protected void installDefaults() {
    super.installDefaults();
    Border curr = this.desktop.getBorder();
    if ((curr == null) || (curr instanceof UIResource)) {
      this.desktop.setBorder(new SubstanceBorder());
    }
  }
View Full Code Here

      }
    }

    Border b = this.spinner.getBorder();
    if (b == null || b instanceof UIResource) {
      this.spinner.setBorder(new SubstanceBorder(SubstanceSizeUtils
          .getSpinnerBorderInsets(SubstanceSizeUtils
              .getComponentFontSize(this.spinner))));
    }
  }
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 SubstanceBorder(SubstanceSizeUtils
              .getTextBorderInsets(SubstanceSizeUtils
                  .getComponentFontSize(this.textField))),
          new BasicBorders.MarginBorder());
      this.textField.setBorder(newB);
    }
View Full Code Here

   * @see javax.swing.plaf.basic.BasicComboPopup#configurePopup()
   */
  @Override
  protected void configurePopup() {
    super.configurePopup();
    setBorder(new SubstanceBorder(new Insets(0, 2, 2, 2)));
  }
View Full Code Here

TOP

Related Classes of org.jvnet.substance.utils.border.SubstanceBorder

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.