Changeset View
Changeset View
Standalone View
Standalone View
src/it/reyboz/bustorino/fragments/FragmentListenerMain.java
- This file was moved from src/it/reyboz/bustorino/fragments/FragmentListener.java.
Show All 13 Lines | BusTO - Fragments components | ||||
You should have received a copy of the GNU General Public License | You should have received a copy of the GNU General Public License | ||||
along with this program. If not, see <http://www.gnu.org/licenses/>. | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||||
*/ | */ | ||||
package it.reyboz.bustorino.fragments; | package it.reyboz.bustorino.fragments; | ||||
import it.reyboz.bustorino.backend.Stop; | import it.reyboz.bustorino.backend.Stop; | ||||
public interface FragmentListener { | public interface FragmentListenerMain extends CommonFragmentListener { | ||||
void toggleSpinner(boolean state); | void toggleSpinner(boolean state); | ||||
/** | |||||
* Sends the message to the activity to adapt the GUI | |||||
* to the fragment that has been attached | |||||
* @param fragmentType the type of fragment attached | |||||
*/ | |||||
void readyGUIfor(FragmentKind fragmentType); | |||||
/** | |||||
* Houston, we need another fragment! | |||||
* | |||||
* @param ID the Stop ID | |||||
*/ | |||||
void createFragmentForStop(String ID); | |||||
/** | |||||
* Add the last successfully searched stop to the favorites | |||||
*/ | |||||
void toggleLastStopToFavorites(); | |||||
/** | /* | ||||
* Get the last successfully searched bus stop or NULL | Unused method | ||||
* | * Add the last successfully searched stop to the favorites | ||||
* @return | |||||
*/ | |||||
Stop getLastSuccessfullySearchedBusStop(); | |||||
/** | |||||
* Get the last successfully searched bus stop ID or NULL | |||||
* | |||||
* @return | |||||
*/ | */ | ||||
String getLastSuccessfullySearchedBusStopID(); | |||||
/** | //void toggleLastStopToFavorites(); | ||||
* Automatically update the "Add to favorite" star icon | |||||
*/ | |||||
void updateStarIconFromLastBusStop(); | |||||
/** | |||||
* Tell the activity that we need to disable/enable its floatingActionButton | |||||
* @param yes or no | |||||
*/ | |||||
void showFloatingActionButton(boolean yes); | |||||
/** | /** | ||||
* Tell activity that we need to enable/disable the refreshLayout | * Tell activity that we need to enable/disable the refreshLayout | ||||
* @param yes or no | * @param yes or no | ||||
*/ | */ | ||||
void enableRefreshLayout(boolean yes); | void enableRefreshLayout(boolean yes); | ||||
} | } |
Public contents are in Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) or GNU Free Documentation License (at your option) unless otherwise noted. · Contact / Register