Interface CLI_Section
- All Superinterfaces:
ChordLeadSheetItem<Section>
,Comparable<ChordLeadSheetItem<?>>
,Transferable
Represent a section with a name (e.g. "Verse1") and a time signature, at a specific bar.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jjazz.chordleadsheet.api.item.ChordLeadSheetItem
ChordLeadSheetItem.ComparableItem, ChordLeadSheetItem.DefaultComparableItem
-
Field Summary
Fields inherited from interface org.jjazz.chordleadsheet.api.item.ChordLeadSheetItem
PROP_CONTAINER, PROP_ITEM_DATA, PROP_ITEM_POSITION
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
createSectionName
(String sectionName, ChordLeadSheet cls) Derive a new section name which is unique in the specified chord leadsheet.Methods inherited from interface org.jjazz.chordleadsheet.api.item.ChordLeadSheetItem
addPropertyChangeListener, compareTo, getClientProperties, getContainer, getCopy, getData, getPosition, isBarSingleItem, removePropertyChangeListener
Methods inherited from interface java.awt.datatransfer.Transferable
getTransferData, getTransferDataFlavors, isDataFlavorSupported
-
Field Details
-
DATA_FLAVOR
-
PATTERN
-
-
Method Details
-
createSectionName
Derive a new section name which is unique in the specified chord leadsheet.If sectionName is not used, just return it. Otherwise append a number to sectionName (eg "Chorus2") until we get a non-used section name.
- Parameters:
sectionName
- Create a name from this parameter.cls
-- Returns:
-