/** * Generates a button bar starter tab.<p> * * @param leftPixel the amount of pixel left to the starter * @param rightPixel the amount of pixel right to the starter * * @return a button bar starter tab */ public String buttonBarStartTab(int leftPixel, int rightPixel) { StringBuffer result = new StringBuffer(512); result.append(buttonBarLineSpacer(leftPixel)); result.append("<td><span class=\"starttab\"><span style=\"width:1px; height:1px\"></span></span></td>\n"); result.append(buttonBarLineSpacer(rightPixel)); return result.toString(); }
/** * Generates a button bar starter tab.<p> * * @param leftPixel the amount of pixel left to the starter * @param rightPixel the amount of pixel right to the starter * * @return a button bar starter tab */ public String buttonBarStartTab(int leftPixel, int rightPixel) { StringBuffer result = new StringBuffer(512); result.append(buttonBarLineSpacer(leftPixel)); result.append("<td><span class=\"starttab\"><span style=\"width:1px; height:1px\"></span></span></td>\n"); result.append(buttonBarLineSpacer(rightPixel)); return result.toString(); }
/** * Generates a variable button bar separator line.<p> * * @param leftPixel the amount of pixel left to the line * @param rightPixel the amount of pixel right to the line * @param className the css class name for the formatting * * @return a variable button bar separator line */ public String buttonBarLine(int leftPixel, int rightPixel, String className) { StringBuffer result = new StringBuffer(512); if (leftPixel > 0) { result.append(buttonBarLineSpacer(leftPixel)); } result.append("<td><span class=\""); result.append(className); result.append("\"></span></td>\n"); if (rightPixel > 0) { result.append(buttonBarLineSpacer(rightPixel)); } return result.toString(); }
/** * Generates a variable button bar separator line.<p> * * @param leftPixel the amount of pixel left to the line * @param rightPixel the amount of pixel right to the line * @param className the css class name for the formatting * * @return a variable button bar separator line */ public String buttonBarLine(int leftPixel, int rightPixel, String className) { StringBuffer result = new StringBuffer(512); if (leftPixel > 0) { result.append(buttonBarLineSpacer(leftPixel)); } result.append("<td><span class=\""); result.append(className); result.append("\"></span></td>\n"); if (rightPixel > 0) { result.append(buttonBarLineSpacer(rightPixel)); } return result.toString(); }