}
}
}
public void onClick$okBtn() {
Listitem seldItem = mfn_category.getSelectedItem();
if (seldItem == null) {
showSelectFormatDialog();
return;
}
if (selectedCategory == null || selectedCategory == mfn_general) {
showSelectFormatDialog();
return;
}
Listitem selectedItem = selectedCategory.getSelectedItem();
if (selectedItem != null) {
String formatCodes = selectedItem.getValue().toString();
if (selection.getBottom() >= spreadsheet.getMaxrows())
selection.setBottom(spreadsheet.getMaxrows() - 1);
if (selection.getRight() >= spreadsheet.getMaxcolumns())
selection.setRight(spreadsheet.getMaxcolumns() - 1);
Utils.setDataFormat(spreadsheet.getSelectedSheet(), selection, formatCodes);