PenProfile 2.x

com.livescribe.ext.ui
Class Menu.MenuBrowseList

java.lang.Object
  extended by com.livescribe.display.Displayable
      extended by com.livescribe.display.BrowseList
          extended by com.livescribe.ext.ui.Menu.MenuBrowseList
All Implemented Interfaces:
HorizontalFlickScrub, VerticalFlickScrub
Enclosing class:
Menu

protected class Menu.MenuBrowseList
extends BrowseList

A special BrowseList implementation that allows the menu to access some protected methods and override others. This is necessary to provide proper item-changed event notifications.

All items in this browse list will be an instance of Menu.MenuItem.

See Also:
Menu.MenuItem

Nested Class Summary
 
Nested classes/interfaces inherited from class com.livescribe.display.BrowseList
BrowseList.Insets, BrowseList.Item, BrowseList.Title
 
Field Summary
 
Fields inherited from class com.livescribe.display.BrowseList
focusIndex, insets, itemModel
 
Constructor Summary
protected Menu.MenuBrowseList(Vector model, BrowseList.Title title)
          Creates a new browse list.
 
Method Summary
 void setFocusItem(int index)
          This is overridden to intercept Flick n Scrub and other changes.
 
Methods inherited from class com.livescribe.display.BrowseList
drawDecorations, drawItem, enableFlickScrub, flickHorizontally, flickVertically, focusToNext, focusToPrevious, getFocusIndex, getFocusItem, getItemAt, getItemCount, isHorizontalFlickScrubEnabled, isVerticalFlickScrubEnabled, isWrapAroundEnabled, notifyHidden, notifyShown, notifySystemTrayHidden, notifySystemTrayShown, paint, paintList, renderInitialView, scrollItem, scrubHorizontally, scrubVertically, setInsets, setScrollerClipRegion, showScroller
 
Methods inherited from class com.livescribe.display.Displayable
getSurface, isCurrent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Menu.MenuBrowseList

protected Menu.MenuBrowseList(Vector model,
                              BrowseList.Title title)
Creates a new browse list.

Parameters:
model - the model
title - the title
Method Detail

setFocusItem

public void setFocusItem(int index)
This is overridden to intercept Flick n Scrub and other changes. Subclasses overriding this method should call super.setFocusItem.

Overrides:
setFocusItem in class BrowseList
Parameters:
index - the item index

PenProfile 2.x

Copyright © 2010 Livescribe Inc. All Rights Reserved.
Confidential and subject to NDA.