Sets the top padding character for all cells in the table.
@param paddingTopChar new padding character, ignored if null
@return this to allow chaining
490787
public AsciiTable setPaddingTopChar(Character paddingTopChar) {
		for(AT_Row row : this.rows){
			if(row.getType()==TableRowType.CONTENT){
				row.setPaddingTopChar(paddingTopChar);
			}
		}
		return this;
	}
315263
public AsciiTable setPaddingBottom(int paddingBottom) {
		for(AT_Row row : this.rows){
			if(row.getType()==TableRowType.CONTENT){
				row.setPaddingBottom(paddingBottom);
			}
		}
		return this;
	}
311390
public BaseTableLayout<C, T> pad(float pad) {
        padTop = new FixedValue<C, T>(toolkit, pad);
        padLeft = new FixedValue<C, T>(toolkit, pad);
        padBottom = new FixedValue<C, T>(toolkit, pad);
        padRight = new FixedValue<C, T>(toolkit, pad);
        sizeInvalid = true;
        return this;
    }
1324810
public AsciiString toUpperCase() {
        boolean uppercased = true;
        int i, j;
        final int len = length() + arrayOffset();
        for (i = arrayOffset(); i < len; ++i) {
            byte b = value[i];
            if (b >= 'a' && b <= 'z') {
                uppercased = false;
                break;
            }
        }

        // Check if this string does not contain any lowercase characters.
        if (uppercased) {
            return this;
        }

        final byte[] newValue = PlatformDependent.allocateUninitializedArray(length());
        for (i = 0, j = arrayOffset(); i < newValue.length; ++i, ++j) {
            newValue[i] = toUpperCase(value[j]);
        }

        return new AsciiString(newValue, false);
    }
155101
public AT_Context setFrameLeftRightChar(Character frameChar){
		if(frameChar!=null){
			this.frameLeftChar = frameChar;
			this.frameRightChar = frameChar;
		}
		return this;
	}
1353546
public char setIndex(int pos) 
  { 
    if (pos < 0) {
      _pos = 0;
      return DONE;
    }
    else if (_length <= pos) {
      _pos = _length;
      return DONE;
    }
    else {
      _pos = pos; 
      return _string.charAt(pos);
    }
  }
215883
public AsciiTable setPaddingLeftRight(int padding){
		for(AT_Row row : this.rows){
			if(row.getType()==TableRowType.CONTENT){
				row.setPaddingLeftRight(padding);
			}
		}
		return this;
	}
782025
public Cell<?> applyPadding (final Cell<?> cell) {
		cell.pad(top, left, bottom, right);
		return cell;
	}
691197
public BaseTableLayout<C, T> padRight(Value<C, T> padRight) {
        this.padRight = padRight;
        sizeInvalid = true;
        return this;
    }
273596
public Charset setCharset(Charset charset) {
        Charset prev = this.charset.get();
        this.charset.set(charset);
        return prev;
    }
797135
@Nonnull
  public final XMLWriterSettings setCharset (@Nonnull final Charset aCharset)
  {
    m_aCharset = ValueEnforcer.notNull (aCharset, "Charset");
    return this;
  }
1058299
public BaseTableLayout<C, T> padRight(float padRight) {
        this.padRight = new FixedValue<C, T>(toolkit, padRight);
        sizeInvalid = true;
        return this;
    }
1078292
public AT_Row setPaddingBottomChar(Character paddingBottomChar) {
		if(this.hasCells()){
			for(AT_Cell cell : this.getCells()){
				cell.getContext().setPaddingBottomChar(paddingBottomChar);
			}
		}
		return this;
	}
59979
public void setPadding(int leftPadding, int topPadding, int rightPadding, int bottomPadding) {
        mPaddingLeft = leftPadding;
        mPaddingRight = rightPadding;
        mPaddingTop = topPadding;
        mPaddingBottom = bottomPadding;
    }
591421
public BaseTableLayout<C, T> padTop(Value<C, T> padTop) {
        this.padTop = padTop;
        sizeInvalid = true;
        return this;
    }
374477
private void setHeadlessPadding() {
        if (dialogType == DialogType.INPUT_TEXT) {
            bodyContainer.setStyle(
                    PreDefinedStyle.INPUT_DIALOG_HEADLESS_PADDING.getStyle());

        } else if (dialogType == DialogType.EXCEPTION) {
            bodyContainer.setStyle(
                    PreDefinedStyle.EXCEPTION_DIALOG_HEADLESS_PADDING.getStyle());
        } else {
            bodyContainer.setStyle(
                    PreDefinedStyle.HEADLESS_PADDING.getStyle());
        }
    }
430359
public static String padLeft(String str, int totalChars, char ch) {
    if (str == null) {
      str = "null";
    }
    StringBuilder sb = new StringBuilder();
    for (int i = 0, num = totalChars - str.length(); i < num; i++) {
      sb.append(ch);
    }
    sb.append(str);
    return sb.toString();
  }