// 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);
// set the destination.
if (formName == null)
{
backButton = createSingleItemURLButton(
context,
true,
buttonTextBV,
buttonAccessKeyBV,
getSingleDestinationURL(context,
navBar,
eventKey,
sourceKey,
nameString,
valueKey,
currentValue-1));
}
else
{
if (supportsScripting)
{
backButton = createSingleItemSubmitButton(
context,
true,
buttonTextBV,
buttonAccessKeyBV,
getSingleDestinationSubmit( context,
navBar,
formName,
eventKey,
sourceKey,
nameString,
valueKey,
currentValue - 1,
false));
}
else
{
backButton = createSubmitButton(context,
buttonTextBV,
buttonAccessKeyBV,
null,
formName,
false,
eventKey,
sourceKey,
nameString,
valueKey,
currentValue - 1,
null,
-1);
}
}
}
// set up the next button
if (showNextButton)
{
String buttonTextKey = ((totalItems == 2)
? _SINGLE_CONTINUE_TEXT_KEY
: _SINGLE_NEXT_TEXT_KEY);
BoundValue buttonTextandAccessKeyBV =
new SkinTranslatedBoundValue(buttonTextKey);
Object buttonTextBV = new AccessKeyBoundValue( buttonTextandAccessKeyBV,
false);