Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

public interface KanbanListener

Known subtypesKanbanAdapter

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.

Methods

public abstract void selectionChanged(KanbanBoard board)The selected card changed.
public abstract void cardOpened(KanbanBoard board, KanbanCard card)A card was double tapped on a board whose cards are not renamed in place, or Enter was pressed on the selected card.
public abstract boolean cardMoving(KanbanBoard board, KanbanCard card, KanbanColumn column, KanbanLane lane, int index)A card was dropped at an index of a cell; lane is null on a board without lanes.
public abstract void cardMoved(KanbanBoard board, KanbanCard card)A card was moved.
public abstract boolean columnMoving(KanbanBoard board, KanbanColumn column, int index)A column was dropped at an index.
public abstract void columnMoved(KanbanBoard board, KanbanColumn column)A column was moved.
public abstract boolean cardAdding(KanbanBoard board, KanbanCard card, KanbanColumn column, KanbanLane lane)A card the user typed, pasted or duplicated is about to be added to a cell.
public abstract void cardAdded(KanbanBoard board, KanbanCard card)A card was added.
public abstract boolean cardRenaming(KanbanBoard board, KanbanCard card, String title)A card is about to be given the title the user typed.
public abstract void cardRenamed(KanbanBoard board, KanbanCard card)A card has the title the user typed.
public abstract boolean cardRemoving(KanbanBoard board, KanbanCard card)A card is about to be removed.
public abstract void cardRemoved(KanbanBoard board, KanbanCard card)A card was removed.
public abstract void columnToggled(KanbanBoard board, KanbanColumn column)A column was folded or unfolded.
public abstract void laneToggled(KanbanBoard board, KanbanLane lane)A lane was folded or unfolded.

Method details

selectionChanged

public abstract void selectionChanged(KanbanBoard board)
The selected card changed.

cardOpened

public abstract void cardOpened(KanbanBoard board, KanbanCard card)
A card was double tapped on a board whose cards are not renamed in place, or Enter was pressed on the selected card.

cardMoving

public abstract boolean cardMoving(KanbanBoard board, KanbanCard card, KanbanColumn column, KanbanLane lane, int index)
A card was dropped at an index of a cell; lane is null on a board without lanes. Return false to put it back.

cardMoved

public abstract void cardMoved(KanbanBoard board, KanbanCard card)
A card was moved.

columnMoving

public abstract boolean columnMoving(KanbanBoard board, KanbanColumn column, int index)
A column was dropped at an index. Return false to put it back.

columnMoved

public abstract void columnMoved(KanbanBoard board, KanbanColumn column)
A column was moved.

cardAdding

public abstract boolean cardAdding(KanbanBoard board, KanbanCard card, KanbanColumn column, KanbanLane lane)
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

public abstract void cardAdded(KanbanBoard board, KanbanCard card)
A card was added.

cardRenaming

public abstract boolean cardRenaming(KanbanBoard board, KanbanCard card, String title)
A card is about to be given the title the user typed. Return false to keep the old one.

cardRenamed

public abstract void cardRenamed(KanbanBoard board, KanbanCard card)
A card has the title the user typed.

cardRemoving

public abstract boolean cardRemoving(KanbanBoard board, KanbanCard card)
A card is about to be removed. Return false to keep it.

cardRemoved

public abstract void cardRemoved(KanbanBoard board, KanbanCard card)
A card was removed.

columnToggled

public abstract void columnToggled(KanbanBoard board, KanbanColumn column)
A column was folded or unfolded.

laneToggled

public abstract void laneToggled(KanbanBoard board, KanbanLane lane)
A lane was folded or unfolded.