Class KanbanColumn

java.lang.Object
com.codename1.kanban.KanbanColumn

public class KanbanColumn extends Object
A column of a board: a stage the cards pass through.
  • 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()
      Description copied from class: Object
      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())
      Overrides:
      toString in class Object