How to add bullets in Browse Bin of iStore
Quite of few of our customers have this requirement, wherein they would like to display bullets for the sections that show up in the Browse Bin of Oracle iStore. We had to make significant changes for a small cosmetic requirement such as this.
Here is a snipped of the code from ibeCCtdSctBrwsBin.jsp which has been modified
String bulletString = “• ”;
while (currentIndex < totalLen - numSpaces)
{
boolean copyToEndOfString = false;
// copy from the currentIndex to the end of the string if
// there is enough space on the line or if there are
// no more spaces after the currentIndex
if (displayName.length() - currentIndex <= maxLenPerLine)
copyToEndOfString = true;
else {
spaceIndex = displayName.lastIndexOf(' ', currentIndex + maxLenPerLine -1);
if (spaceIndex < currentIndex)
copyToEndOfString = true;
}
/**** Add the following lines of code *********/
displayNameBuffer.append(indentString);
if(loopCount == 0)
{
int indexToInsert = indentString.indexOf(“
displayNameBuffer.insert(indexToInsert, bulletString);
}
/****** ==> Comment out these lines ******
else
{
displayNameBuffer.insert(indexToInsert, “ ”);
}*/
loopCount++;
String subString;
if (copyToEndOfString)
{
subString = displayName.substring(currentIndex);
displayNameBuffer.append(subString);
currentIndex += subString.length();
displayNameBuffer.append(endLineString);
} else
{
// displayNameBuffer.append(indentString); — Comment this line
subString = displayName.substring(currentIndex, spaceIndex+1);
displayNameBuffer.append(subString);
currentIndex += subString.length();
displayNameBuffer.append(endLineString);
}
}
There are no comments yet.