if ((value = attributes.getLinkText()) != null) {
nextText = value;
} else if ((value = pane.getNextShardLinkText()) != null ) {
nextText = value;
}
MCSAttributes nextStyle = null;
// todo XDIME-CP style dissection correctly.
if (((value = pane.getNextShardLinkClass()) != null) &&
!"".equals(value)){
// attributes.setStyleClass(value);
nextStyle = attributes;
}
// Set previous stuff - actual link not needed as NEXT/PREVIOUS used
String prevText = null;
if ((value = attributes.getBackLinkText()) != null) {
prevText = value;
} else if ((value = pane.getPreviousShardLinkText()) != null ) {
prevText = value;
}
MCSAttributes prevStyle = null;
// todo XDIME-CP style dissection correctly.
if (((value = pane.getPreviousShardLinkClass()) != null) &&
!"".equals(value)) {
// attributes.setStyleClass(value);
prevStyle = attributes;
}
// Now generate a bunch of markup where appropriate
if (nextText != null) {
dom.openElement(VDXMLConstants.DISSECT_NEXT_HELP);
createHelpElement(dom, nextText, nextStyle);
dom.closeElement(VDXMLConstants.DISSECT_NEXT_HELP);
}
if (prevText != null) {
dom.openElement(VDXMLConstants.DISSECT_PREVIOUS_HELP);
createHelpElement(dom, prevText, prevStyle);
dom.closeElement(VDXMLConstants.DISSECT_PREVIOUS_HELP);
}
if (prevText != null || nextText != null) {
dom.openElement(VDXMLConstants.DISSECT_PREVIOUS_NEXT_HELP);
String message = "";
MCSAttributes style = null;
if (prevText != null) {
message += prevText;
if (prevStyle != null) {
style = prevStyle;
}