Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

public final class SectionBreak

  1. Object
  2. SectionBreak

ImplementsBlock

Starts a new section: the blocks after it, up to the next break, are laid out on the page this break gives, with its margins, orientation and columns. The blocks before the first break use the document’s own page.

A break that does not start a new page (continuous) only changes the columns; the text before it is balanced across its own columns first, as a word processor does, so a page can carry a one-column heading over three-column text.

Fields

public final String idThe block id.
public final PageSpec pageThe page of the section that starts here.
public final boolean newPageWhether the section starts on a new page; false continues on the current one.

Constructors

public SectionBreak(String id, PageSpec page, boolean newPage)Creates a break.

Methods

public String id()The block id.
public boolean equals(Object o)Two breaks are equal when their id, page and start are.
public int hashCode()A hash consistent with equals.

Inherited methods

Field details

id

public final String id
The block id.

page

public final PageSpec page
The page of the section that starts here.

newPage

public final boolean newPage
Whether the section starts on a new page; false continues on the current one.

Constructor details

SectionBreak

public SectionBreak(String id, PageSpec page, boolean newPage)
Creates a break.

Parameters

id String
the block id
page PageSpec
the page of the section that starts here, or null for A4
newPage boolean
whether the section starts on a new page

Method details

id

public String id()
The block id.

Returns

the id

equals

public boolean equals(Object o)
Two breaks are equal when their id, page and start are.

Parameters

o Object
the other object

Returns

true when equal

hashCode

public int hashCode()
A hash consistent with equals.

Returns

the hash