Methods Summary |
---|
private void | createHeaderString()Creates the complete header string based on the left, center, and middle
strings.
headerRecord.setHeader( "&C" + ( center == null ? "" : center ) +
"&L" + ( left == null ? "" : left ) +
"&R" + ( right == null ? "" : right ) );
headerRecord.setHeaderLength( (byte) headerRecord.getHeader().length() );
|
public static java.lang.String | date()Returns the string representing the current date
return "&D";
|
public static java.lang.String | endDoubleUnderline()Returns the string representing the end double underline
return "&E";
|
public static java.lang.String | endUnderline()Returns the string representing the end underline
return "&U";
|
public static java.lang.String | file()Returns the string representing the current file name
return "&F";
|
public static java.lang.String | font(java.lang.String font, java.lang.String style)Returns the string that represents the change in font.
return "&\"" + font + "," + style + "\"";
|
public static java.lang.String | fontSize(short size)Returns the string that represents the change in font size.
return "&" + size;
|
public java.lang.String | getCenter()Get the center of the header.
return center;
|
public java.lang.String | getLeft()Get the left side of the header.
return left;
|
public java.lang.String | getRight()Get the right side of the header.
return right;
|
public static java.lang.String | numPages()Returns the string representing the number of pages.
return "&N";
|
public static java.lang.String | page()Returns the string representing the current page number
return "&P";
|
public void | setCenter(java.lang.String newCenter)Sets the center string.
center = newCenter;
createHeaderString();
|
public void | setLeft(java.lang.String newLeft)Sets the left string.
left = newLeft;
createHeaderString();
|
public void | setRight(java.lang.String newRight)Sets the right string.
right = newRight;
createHeaderString();
|
public static java.lang.String | startDoubleUnderline()Returns the string representing the start double underline
return "&E";
|
public static java.lang.String | startUnderline()Returns the string representing the start underline
return "&U";
|
public static java.lang.String | tab()Returns the string representing the current tab (sheet) name
return "&A";
|
public static java.lang.String | time()Returns the string representing the current time
return "&T";
|