Squeak Class Documentation category index | class index  
 
PluggableMultiColumnListMorph
  category: Morphic-Windows
  superclass: PluggableListMorph
  subclasses: PluggableMultiColumnListMorphByItem

This morph can be used to show a list having multiple columns, The columns are self width sized to make the largest entry in each list fit. In some cases the pane may then be too narrow.

Use it like a regular PluggableListMorph except pass in an array of lists instead of a single list.

There are base assumptions made here that each list in the array of lists is the same size.

Also, the highlight color for the selection is easy to modify in the #highlightSelection method. I used blue
when testing just to see it work.

instance methods
  accessing
  itemFromPoint:

  drawing
  drawOn:

  initialization
  calculateColumnOffsetsFrom:
calculateColumnWidthsFrom:
createMorphicListsFrom:
layoutMorphicLists:
list:

  selection
  highlightSelection
selectionIndex:
unhighlightSelection

class methods
  no messages
 

instance methods
  accessing top  
 

itemFromPoint:

Return the list element (morph) at the given point or nil if outside


  drawing top  
 

drawOn:

Only modification here is to bypass the #drawOn: method in our superclass.


  initialization top  
 

calculateColumnOffsetsFrom:


 

calculateColumnWidthsFrom:


 

createMorphicListsFrom:


 

layoutMorphicLists:


 

list:

Set the receiver's list as specified


  selection top  
 

highlightSelection


 

selectionIndex:

Called internally to select the index-th item.


 

unhighlightSelection


class methods
  no messages top