Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public class KanbanColumn
- Object
- KanbanColumn
A column of a board: a stage the cards pass through.
Constructors
public KanbanColumn(String id, String title) | A column with an id, unique in its model, and a title. |
Methods
public String getId() | The id, unique in the model. |
public String getTitle() | The title. |
public KanbanColumn setTitle(String title) | Sets the title. |
public int getWipLimit() | How many cards the column should hold at most, in all its lanes together; 0, the default, for no limit. |
public KanbanColumn setWipLimit(int wipLimit) | Sets the most cards the column should hold; 0 for no limit. |
public boolean isCollapsed() | True when the column is folded to a strip showing only its count. |
public KanbanColumn setCollapsed(boolean collapsed) | Folds or unfolds the column. |
public String getStyleKey() | A key the renderer maps to a colour, or null. |
public KanbanColumn setStyleKey(String styleKey) | Sets the style key. |
public String toString() | Returns a string representation of the object. |
Inherited methods
Constructor details
KanbanColumn
public KanbanColumn(String id, String title)A column with an id, unique in its model, and a title.
Method details
getId
public String getId()The id, unique in the model.
getTitle
public String getTitle()The title.
setTitle
public KanbanColumn setTitle(String title)Sets the title.
getWipLimit
public int getWipLimit()How many cards the column should hold at most, in all its lanes
together; 0, the default, for no limit. A column over its limit is
drawn as such, and
DefaultKanbanModel.setEnforceWipLimits makes the
model refuse the card that would pass it.setWipLimit
public KanbanColumn setWipLimit(int wipLimit)Sets the most cards the column should hold; 0 for no limit.
isCollapsed
public boolean isCollapsed()True when the column is folded to a strip showing only its count.
setCollapsed
public KanbanColumn setCollapsed(boolean collapsed)Folds or unfolds the column. A model shown by a board is told through
KanbanModel.setCollapsed.getStyleKey
public String getStyleKey()A key the renderer maps to a colour, or null.
setStyleKey
public KanbanColumn setStyleKey(String styleKey)Sets the style key.
toString
public String toString()Returns a string representation of the object. In general, the toString method returns a string that “textually represents” this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.
The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@’, and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:
getClass().getName() + ‘@’ + Integer.toHexString(hashCode())