|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectComponent3D
edu.cmu.sun.view.AbstractListView
edu.cmu.sun.view.ListView
public class ListView
The view of a list within a window in the file manager
| Field Summary | |
|---|---|
(package private) int |
currentPosition
|
private int |
currentSize
|
(package private) static float |
DEPTH
|
(package private) java.util.List<ItemView> |
itemViews
a set of itemViews so that we can access them later. |
(package private) Component3D |
listItemContainer
component that holds the item views. |
(package private) BoxComponent |
slab
|
(package private) static float |
WIDTH
|
| Fields inherited from class edu.cmu.sun.view.AbstractListView |
|---|
layout |
| Constructor Summary | |
|---|---|
ListView(LayoutComponent layout)
|
|
| Method Summary | |
|---|---|
private void |
addListItemViews()
adds all of the ListItemViews to this component. |
java.util.List<ItemModel> |
getActiveListItemModels()
|
float |
getHeight()
|
ItemView |
getItemViewMatchingModel(ItemModel itemModel)
|
private boolean |
getItemVisibility(int index)
returns the visibility for an ItemView at the specified index in the model |
private float |
getItemYPosition(int index)
returns the Y position for the listItemContainer |
private float |
getListContainerYPosition()
|
private javax.vecmath.Vector3f |
getSlabScaling()
|
private void |
initialize()
creates the SLAB component, the container component for ListItemViews and the ListItemsViews for this list view. |
void |
syncToLayout(LayoutComponent newLayout,
AnimationPlan plan)
|
void |
update(AnimationPlan plan,
int msec)
|
private void |
updateNow()
|
private void |
updateNow(AnimationPlan plan)
updates using set methods instead of change (To avoid animation) used in ListView recycling. |
| Methods inherited from class edu.cmu.sun.view.AbstractListView |
|---|
getAppearance, getLayout, setLayout |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
BoxComponent slab
Component3D listItemContainer
java.util.List<ItemView> itemViews
int currentPosition
private int currentSize
static final float WIDTH
static final float DEPTH
| Constructor Detail |
|---|
public ListView(LayoutComponent layout)
| Method Detail |
|---|
private void initialize()
private void addListItemViews()
private float getItemYPosition(int index)
private float getListContainerYPosition()
private boolean getItemVisibility(int index)
public java.util.List<ItemModel> getActiveListItemModels()
public void update(AnimationPlan plan,
int msec)
update in class AbstractListViewprivate void updateNow()
private void updateNow(AnimationPlan plan)
plan - private javax.vecmath.Vector3f getSlabScaling()
public float getHeight()
getHeight in class AbstractListView
public void syncToLayout(LayoutComponent newLayout,
AnimationPlan plan)
public ItemView getItemViewMatchingModel(ItemModel itemModel)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||