Squeak Class Documentation category index | class index  
 
ListView
  category: ST80-Support
  superclass: View
  subclasses: PluggableListView

I am an abstract View of a list of items. I provide support for storing a selection of one item, as well as formatting the list for presentation on the screen. My instances' default controller is ListController.

instance methods
  clipping box access
  clippingBox

  controller access
  defaultControllerClass

  deEmphasizing
  deEmphasizeView
emphasizeView

  delimiters
  bottomDelimiter
bottomDelimiter:
noBottomDelimiter
noTopDelimiter
topDelimiter
topDelimiter:

  display box access
  boundingBox
isSelectionBoxClipped

  displaying
  deEmphasizeSelectionBox
display
displaySelectionBox
displayView
scrollBy:
scrollSelectionIntoView

  font access
  font
font:

  initialize-release
  initialize

  list access
  assuredTextStyle
list
list:
reset
resetAndDisplayView
selection:

  lock access
  lock

  private
  firstShown
lastShown
positionList
wrappingBox

  selecting
  deselect
findSelection:
maximumSelection
minimumSelection
moveSelectionBox:
numSelectionsInView
selection
selectionBox
selectionBoxOffset

  updating
  update:

class methods
  no messages
 

instance methods
  clipping box access top  
 

clippingBox

Answer the rectangle in which the model can be displayed--this is the
insetDisplayBox inset by the height of a line for an item.


  controller access top  
 

defaultControllerClass

Refer to the comment in View|defaultControllerClass.


  deEmphasizing top  
 

deEmphasizeView

Refer to the comment in View|deEmphasizeView.


 

emphasizeView

List emphasis is its own inverse.


  delimiters top  
 

bottomDelimiter

Answer the string used to indicate the bottom of the list.


 

bottomDelimiter:

Set the string used to indicate the bottom of the list.


 

noBottomDelimiter

Set the string used to indicate the bottom of the list to be nothing.


 

noTopDelimiter

Set the string used to indicate the top of the list to be nothing.


 

topDelimiter

Answer the string used to indicate the top of the list.


 

topDelimiter:

Set the string used to indicate the top of the list.


  display box access top  
 

boundingBox

Refer to the comment in View|boundingBox.


 

isSelectionBoxClipped

Answer whether there is a selection and whether the selection is visible
on the screen.


  displaying top  
 

deEmphasizeSelectionBox


 

display

Refer to the comment in View.display.


 

displaySelectionBox

If the receiver has a selection and that selection is visible on the display
screen, then highlight it.


 

displayView

Refer to the comment in View|displayView.


 

scrollBy:

Scroll up by this amount adjusted by lineSpacing and list limits


 

scrollSelectionIntoView

Selection is assumed to be on and clipped out of view.
Uses controller scrollView to keep selection right


  font access top  
 

font


 

font:


  initialize-release top  
 

initialize

Refer to the comment in View|initialize.


  list access top  
 

assuredTextStyle


 

list

Answer the list of items the receiver displays.


 

list:

Set the list of items the receiver displays to be anArray.


 

reset

Set the list of items displayed to be empty.


 

resetAndDisplayView

Set the list of items displayed to be empty and redisplay the receiver.


 

selection:


  lock access top  
 

lock

Refer to the comment in view|lock. Must do at least what display would do to lock the view.


  private top  
 

firstShown

Return the index of the top item currently visible


 

lastShown

Return the index of the bottom item currently visible


 

positionList


 

wrappingBox


  selecting top  
 

deselect

If the receiver has a selection, then it is highlighted. Remove the
highlighting.


 

findSelection:

Determine which selection is displayed in an area containing the point,
aPoint. Answer the selection if one contains the point, answer nil
otherwise.


 

maximumSelection

Answer which selection is the last possible one.


 

minimumSelection

Answer which selection is the first possible one.


 

moveSelectionBox:

Presumably the selection has changed to be anInteger. Deselect the
previous selection and display the new one, highlighted.


 

numSelectionsInView


 

selection

Answer the receiver's current selection.


 

selectionBox

Answer the rectangle in which the current selection is displayed.


 

selectionBoxOffset

Answer an integer that determines the y position for the display box of
the current selection.


  updating top  
 

update:

Refer to the comment in View|update:.


class methods
  no messages top