A
- the type of the referenced activitypublic final class ActivityRef<A extends Activity> extends Object
Constructor and Description |
---|
ActivityRef(Row<?,?,A> row,
Layer layer,
A activity)
Constructs a new activity reference.
|
Modifier and Type | Method and Description |
---|---|
void |
attachToRow()
Attaches the activity to its row.
|
void |
detachFromRow()
Removes the activity from the row where it is currently shown.
|
boolean |
equals(Object obj) |
A |
getActivity()
Returns the activity itself.
|
Layer |
getLayer()
The layer on which the activity is shown.
|
int |
getLineIndex()
The line index of the activity.
|
Row<?,?,A> |
getRow()
Returns the row where the activity is located.
|
int |
hashCode() |
boolean |
isPathExpanded()
Determines if the entire row path to the activity is currently expanded
or not.
|
String |
toString() |
public boolean isPathExpanded()
public Row<?,?,A> getRow()
public Layer getLayer()
public A getActivity()
public int getLineIndex()
Row.getLineIndex(Activity)
which then delegates to
LinesManager.getLineIndex(Activity)
.public void detachFromRow()
detachFromRow()
public void attachToRow()
Row.addActivity(Layer, Activity)
Copyright © 2014 Dirk Lemmermann Software & Consulting. All rights reserved.