Interface KanbanListener
- All Known Implementing Classes:
KanbanAdapter
public interface KanbanListener
What a KanbanBoard tells an application about. Extend KanbanAdapter
to implement only what is needed.
Every edit is offered first to the listeners, any of which may refuse it, and then to the model, which may refuse it too.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcardAdded(KanbanBoard board, KanbanCard card) A card was added.booleancardAdding(KanbanBoard board, KanbanCard card, KanbanColumn column, KanbanLane lane) A card the user typed, pasted or duplicated is about to be added to a cell.voidcardMoved(KanbanBoard board, KanbanCard card) A card was moved.booleancardMoving(KanbanBoard board, KanbanCard card, KanbanColumn column, KanbanLane lane, int index) A card was dropped at an index of a cell;laneis null on a board without lanes.voidcardOpened(KanbanBoard board, KanbanCard card) A card was double tapped on a board whose cards are not renamed in place, orEnterwas pressed on the selected card.voidcardRemoved(KanbanBoard board, KanbanCard card) A card was removed.booleancardRemoving(KanbanBoard board, KanbanCard card) A card is about to be removed.voidcardRenamed(KanbanBoard board, KanbanCard card) A card has the title the user typed.booleancardRenaming(KanbanBoard board, KanbanCard card, String title) A card is about to be given the title the user typed.voidcolumnMoved(KanbanBoard board, KanbanColumn column) A column was moved.booleancolumnMoving(KanbanBoard board, KanbanColumn column, int index) A column was dropped at an index.voidcolumnToggled(KanbanBoard board, KanbanColumn column) A column was folded or unfolded.voidlaneToggled(KanbanBoard board, KanbanLane lane) A lane was folded or unfolded.voidselectionChanged(KanbanBoard board) The selected card changed.
-
Method Details
-
selectionChanged
The selected card changed. -
cardOpened
A card was double tapped on a board whose cards are not renamed in place, orEnterwas pressed on the selected card. -
cardMoving
boolean cardMoving(KanbanBoard board, KanbanCard card, KanbanColumn column, KanbanLane lane, int index) A card was dropped at an index of a cell;laneis null on a board without lanes. Return false to put it back. -
cardMoved
A card was moved. -
columnMoving
A column was dropped at an index. Return false to put it back. -
columnMoved
A column was moved. -
cardAdding
A card the user typed, pasted or duplicated is about to be added to a cell. The card may be changed here. Return false to drop it. -
cardAdded
A card was added. -
cardRenaming
A card is about to be given the title the user typed. Return false to keep the old one. -
cardRenamed
A card has the title the user typed. -
cardRemoving
A card is about to be removed. Return false to keep it. -
cardRemoved
A card was removed. -
columnToggled
A column was folded or unfolded. -
laneToggled
A lane was folded or unfolded.
-