Class SectionAddedEvent
java.lang.Object
org.jjazz.chordleadsheet.api.event.ClsChangeEvent
org.jjazz.chordleadsheet.api.event.SectionAddedEvent
A CLI_Section was added, possibly replacing an existing one in the same bar.
getItemChanges() returns PROP_ITEM_POSITION change events: adjusted items because of a TimeSignature change.
-
Constructor Summary
ConstructorsConstructorDescriptionSectionAddedEvent(ChordLeadSheet src, CLI_Section cliSection, CLI_Section replacedCliSection) -
Method Summary
Modifier and TypeMethodDescriptionThe section of the previous bar.The optional section at same bar which was replaced by getCLI_Section().toString()Methods inherited from class ClsChangeEvent
addItemChanges, getItem, getItemChanges, getItemChanges, getItems, getItems, getSource, isRedo, isUndo, isUndoOrRedo, setIsRedo, setIsUndo
-
Constructor Details
-
SectionAddedEvent
public SectionAddedEvent(ChordLeadSheet src, CLI_Section cliSection, CLI_Section replacedCliSection) - Parameters:
src-cliSection- The added sectionreplacedCliSection- The replaced section (must be in the same bar than cliSection). Can be null.
-
-
Method Details
-
getSameBarReplacedSection
The optional section at same bar which was replaced by getCLI_Section().- Returns:
- Can be null
-
getPreviousBarSection
The section of the previous bar.- Returns:
- Null if getCLI_Section() is at bar 0
-
getCLI_Section
-
toString
-