Spacing (NotesView - JavaScript)

Read-write. The spacing between rows of a view.

Defined in

NotesView

Syntax

getSpacing() : int

setSpacing(spacing:int) : void

Legal value

The NotesView class provides the following named values (actual values in parentheses):
  • NotesView.SPACING_SINGLE (0)
  • NotesView.SPACING_ONE_POINT_25 (1)
  • NotesView.SPACING_ONE_POINT_50 (2)
  • NotesView.SPACING_ONE_POINT_75 (3)
  • NotesView.SPACING_DOUBLE (4)
  • NotesView.VW_SPACING_SINGLE (0)
  • NotesView.VW_SPACING_ONE_POINT_25 (1)
  • NotesView.VW_SPACING_ONE_POINT_50 (2)
  • NotesView.VW_SPACING_ONE_POINT_75 (3)
  • NotesView.VW_SPACING_DOUBLE (4)

Examples

This button toggles the spacing for a view associated with a page.
switch (view1.getSpacing()) {
	case NotesView.SPACING_SINGLE :
		view1.setSpacing(NotesView.SPACING_ONE_POINT_25);
		requestScope.status = "Spacing set to 1.25";
		break;
	case NotesView.SPACING_ONE_POINT_25 :
		view1.setSpacing(NotesView.SPACING_ONE_POINT_50);
		requestScope.status = "Spacing set to 1.5";
		break;
	case NotesView.SPACING_ONE_POINT_50 :
		view1.setSpacing(NotesView.SPACING_ONE_POINT_75);
		requestScope.status = "Spacing set to 1.75";
		break;
	case NotesView.SPACING_ONE_POINT_75 :
		view1.setSpacing(NotesView.SPACING_DOUBLE);
		requestScope.status = "Spacing set to double";
		break;
	default:
		view1.setSpacing(NotesView.SPACING_SINGLE);
		requestScope.status = "Spacing set to single";
}