sizeKey,
partialTargetsKey,
partialTargets);
}
UINode backButton = null;
Object nonJSBackButtonText = null;
// In the case of narrow-screen PDAs, the next and previous buttons
// are not rendered to reduce the component's width.
showBackButton = showBackButton && !narrowScreenPDA;
showNextButton = showNextButton && !narrowScreenPDA;
// set up the back button
if (showBackButton)
{
BoundValue buttonTextandAccessKeyBV =
new SkinTranslatedBoundValue( _SINGLE_BACK_TEXT_KEY);
Object buttonTextBV = new AccessKeyBoundValue(buttonTextandAccessKeyBV,
false);
Object buttonAccessKeyBV = new AccessKeyBoundValue(
buttonTextandAccessKeyBV,
true);
if (supportsScripting)
{
component.setRowIndex(backButtonIndex);
boolean immediate = Boolean.TRUE.equals(
stamp.getAttributes().get(UIXCommand.IMMEDIATE_KEY));
Object destination = stamp.getAttributes().get("destination");
component.setRowIndex(currentIndex);
backButton = createSingleItemSubmitButton(
true,
buttonTextBV,
buttonAccessKeyBV,
destination,
ProcessUtils.getSubmitScriptCall(
context,
formName,
eventKey,
sourceKey,
nameString,
valueKey,
selectedIndex - 1,
sizeKey,
0,
!immediate,
null,
null));
}
else
{
nonJSBackButtonText = buttonTextBV;
}
}
UINode nextButton = null;
// set up the next button
if (showNextButton)
{