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.DefaultComparableItem -
Field Summary
FieldsFields inherited from interface org.jjazz.chordleadsheet.api.item.ChordLeadSheetItem
LOGGER, PROP_CONTAINER, PROP_ITEM_DATA, PROP_ITEM_POSITION -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcreateSectionName(String sectionName, ChordLeadSheet cls) Derive a new section name which is unique in the specified chord leadsheet.getCopy(Position newPos, ChordLeadSheet cls) Same as getCopy() except that we possibly rename section if its name clashes with an existing section in cls.Methods inherited from interface org.jjazz.chordleadsheet.api.item.ChordLeadSheetItem
addPropertyChangeListener, compareTo, getClientProperties, getContainer, getCopy, getData, getPosition, getPositionOrder, isBarSingleItem, removePropertyChangeListenerMethods inherited from interface java.awt.datatransfer.Transferable
getTransferData, getTransferDataFlavors, isDataFlavorSupported
-
Field Details
-
POSITION_ORDER
static final int POSITION_ORDER- See Also:
-
DATA_FLAVOR
-
PATTERN
-
-
Method Details
-
getCopy
Same as getCopy() except that we possibly rename section if its name clashes with an existing section in cls. ClientProperties are also copied.- Parameters:
newPos-cls- If null, section name is directly reused.- Returns:
- See Also:
-
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 "Chorus-2") until we get a non-used section name.
- Parameters:
sectionName- Create a name from this parameter.cls- If null just returns sectionName- Returns:
-