linkText.setId(this.getIdPrefix() + "txtLastPage"); //$NON-NLS-1$
linkText.setValue(this.getProperty("catalog.general.pageCursor.last")); //$NON-NLS-1$
link.getChildren().add(linkText);
mainPanel.getChildren().add(link);
HtmlInputHidden inpHidden = new HtmlInputHidden();
inpHidden.setId(this.getIdPrefix() + "pageCursorTotalRecords");
Object obj =
this.getAttributes().get(ComponentMapKeys.pageCursorTotalPages.name());
if(obj instanceof ValueBinding) {
inpHidden.setValueBinding("value", (ValueBinding)obj);
mainPanel.getChildren().add(inpHidden);
}
inpHidden = new HtmlInputHidden();
inpHidden.setId(this.getIdPrefix() + "pageCurrentPage");
obj =
this.getAttributes().get(ComponentMapKeys.pageCursorCurrentPage.name());
if(obj instanceof ValueBinding) {
inpHidden.setValueBinding("value", (ValueBinding)obj);
mainPanel.getChildren().add(inpHidden);
}
// Add label to right side if applicable