Class ChordLeadSheetItem.DefaultComparableItem
java.lang.Object
org.jjazz.chordleadsheet.api.item.ChordLeadSheetItem.DefaultComparableItem
- All Implemented Interfaces:
Transferable,Comparable<ChordLeadSheetItem<?>>,ChordLeadSheetItem<Object>,ChordLeadSheetItem.ComparableItem
- Enclosing interface:
- ChordLeadSheetItem<T>
public static class ChordLeadSheetItem.DefaultComparableItem
extends Object
implements ChordLeadSheetItem.ComparableItem, ChordLeadSheetItem<Object>
-
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 TypeMethodDescriptionvoidGet the client properties.Get the ChordLeadSheet this object belongs to.getCopy(ChordLeadSheet newCls, Position newPos) Get a copy of this item at a specified position.getData()Get the data part of this item.Get a copy of the position of this item.getTransferData(DataFlavor flavor) booleanReturn true if there can be only one single item perbar, like a time signature.booleanbooleanisDataFlavorSupported(DataFlavor flavor) booleanvoidtoString()Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jjazz.chordleadsheet.api.item.ChordLeadSheetItem
compareTo
-
Method Details
-
isBeforeItem
public boolean isBeforeItem()- Specified by:
isBeforeItemin interfaceChordLeadSheetItem.ComparableItem
-
isInclusive
public boolean isInclusive()- Specified by:
isInclusivein interfaceChordLeadSheetItem.ComparableItem
-
getContainer
Description copied from interface:ChordLeadSheetItemGet the ChordLeadSheet this object belongs to.- Specified by:
getContainerin interfaceChordLeadSheetItem<Object>- Returns:
- Can be null.
-
getCopy
Description copied from interface:ChordLeadSheetItemGet a copy of this item at a specified position.Client properties are also copied.
- Specified by:
getCopyin interfaceChordLeadSheetItem<Object>- Parameters:
newCls- If null, the copy will have the same container that this object.newPos- If null, the copy will have the same position that this object.- Returns:
-
isBarSingleItem
public boolean isBarSingleItem()Description copied from interface:ChordLeadSheetItemReturn true if there can be only one single item perbar, like a time signature.- Specified by:
isBarSingleItemin interfaceChordLeadSheetItem<Object>- Returns:
-
getData
Description copied from interface:ChordLeadSheetItemGet the data part of this item.- Specified by:
getDatain interfaceChordLeadSheetItem<Object>- Returns:
-
getPosition
Description copied from interface:ChordLeadSheetItemGet a copy of the position of this item.- Specified by:
getPositionin interfaceChordLeadSheetItem<Object>- Returns:
-
addPropertyChangeListener
- Specified by:
addPropertyChangeListenerin interfaceChordLeadSheetItem<Object>
-
removePropertyChangeListener
- Specified by:
removePropertyChangeListenerin interfaceChordLeadSheetItem<Object>
-
getTransferDataFlavors
- Specified by:
getTransferDataFlavorsin interfaceTransferable
-
isDataFlavorSupported
- Specified by:
isDataFlavorSupportedin interfaceTransferable
-
getTransferData
- Specified by:
getTransferDatain interfaceTransferable- Throws:
UnsupportedFlavorExceptionIOException
-
toString
-
getClientProperties
Description copied from interface:ChordLeadSheetItemGet the client properties.- Specified by:
getClientPropertiesin interfaceChordLeadSheetItem<Object>- Returns:
-