public final class DoghouseViewModel
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
addRow(Doghouse.DoghouseFields key)
Add a row to all doghouses.
|
boolean |
areDoghousesVisible() |
void |
clearRow(int index,
Route route)
Set the data in `index` to
Doghouse.DoghouseFields.BLANK i.e. |
void |
hideDoghouses()
Hide Doghouses.
|
int |
peekSize()
Return the current value for the number of rows in the Doghouses.
|
void |
put(int index,
Route route,
Doghouse.DoghouseFields key,
java.lang.Object data) |
void |
put(Route route,
Doghouse.DoghouseFields key,
java.lang.Object data)
Put data in the Doghouses.
|
void |
removeRow()
Remove the last row in all Doghouses.
|
void |
removeRow(int index)
Remove the row at `index` in all Doghouses.
|
void |
resetDoghouses()
Reset default values in Doghouses.
|
void |
showDoghouses()
Show Doghouses.
|
void |
updateRow(int index,
Doghouse.DoghouseFields key)
Change what data the given row represents.
|
public boolean addRow(Doghouse.DoghouseFields key)
key
- What type of data does this new row representpublic void clearRow(int index, Route route)
Doghouse.DoghouseFields.BLANK
i.e. '--'index
- Which row to set to BLANKroute
- The Route whose Doghouses are having the data clearedpublic int peekSize()
public void put(Route route, Doghouse.DoghouseFields key, java.lang.Object data)
route
- The route having data added to its Doghouseskey
- What the data representsdata
- An Object who's toString() method returns how the data should be displayed.public void put(int index, Route route, Doghouse.DoghouseFields key, java.lang.Object data)
index
- route
- key
- data
- public void removeRow()
public void removeRow(int index)
index
- Which row to removepublic void resetDoghouses()
public void updateRow(int index, Doghouse.DoghouseFields key)
index
- The row being updatedkey
- The new data to represent in the given rowpublic void showDoghouses()
public void hideDoghouses()
public boolean areDoghousesVisible()