You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@taverna.apache.org by ia...@apache.org on 2017/01/11 15:20:05 UTC
[7/7] incubator-taverna-mobile git commit: Change wording on create
run page
Change wording on create run page
Project: http://git-wip-us.apache.org/repos/asf/incubator-taverna-mobile/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-taverna-mobile/commit/825c79b1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-taverna-mobile/tree/825c79b1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-taverna-mobile/diff/825c79b1
Branch: refs/heads/ian_taverna_server
Commit: 825c79b11ee3895c4f03fe2fc071c59c9de26f6c
Parents: 60b45e1
Author: Ian Dunlop <ia...@manchester.ac.uk>
Authored: Wed Jan 11 15:19:34 2017 +0000
Committer: Ian Dunlop <ia...@manchester.ac.uk>
Committed: Wed Jan 11 15:19:34 2017 +0000
----------------------------------------------------------------------
.../inputs/TavernaServerInputsFragment.java | 105 +++++++++++++++++++
.../inputs/TavernaServerInputsMvpView.java | 10 ++
.../inputs/TavernaServerInputsPresenter.java | 10 ++
.../layout/fragment_taverna_server_inputs.xml | 15 +++
app/src/main/res/values/strings.xml | 2 +-
5 files changed, 141 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-taverna-mobile/blob/825c79b1/app/src/main/java/org/apache/taverna/mobile/ui/tavernaserver/inputs/TavernaServerInputsFragment.java
----------------------------------------------------------------------
diff --git a/app/src/main/java/org/apache/taverna/mobile/ui/tavernaserver/inputs/TavernaServerInputsFragment.java b/app/src/main/java/org/apache/taverna/mobile/ui/tavernaserver/inputs/TavernaServerInputsFragment.java
new file mode 100644
index 0000000..cba2a90
--- /dev/null
+++ b/app/src/main/java/org/apache/taverna/mobile/ui/tavernaserver/inputs/TavernaServerInputsFragment.java
@@ -0,0 +1,105 @@
+package org.apache.taverna.mobile.ui.tavernaserver.inputs;
+
+import android.content.Context;
+import android.net.Uri;
+import android.os.Bundle;
+import android.support.v4.app.Fragment;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+
+import org.apache.taverna.mobile.R;
+
+/**
+ * A simple {@link Fragment} subclass.
+ * Activities that contain this fragment must implement the
+ * {@link TavernaServerInputsFragment.OnFragmentInteractionListener} interface
+ * to handle interaction events.
+ * Use the {@link TavernaServerInputsFragment#newInstance} factory method to
+ * create an instance of this fragment.
+ */
+public class TavernaServerInputsFragment extends Fragment {
+ // TODO: Rename parameter arguments, choose names that match
+ // the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
+ private static final String ARG_PARAM1 = "param1";
+ private static final String ARG_PARAM2 = "param2";
+
+ // TODO: Rename and change types of parameters
+ private String mParam1;
+ private String mParam2;
+
+ private OnFragmentInteractionListener mListener;
+
+ public TavernaServerInputsFragment() {
+ // Required empty public constructor
+ }
+
+ /**
+ * Use this factory method to create a new instance of
+ * this fragment using the provided parameters.
+ *
+ * @return A new instance of fragment TavernaServerInputsFragment.
+ */
+ public static TavernaServerInputsFragment newInstance() {
+ Bundle args = new Bundle();
+
+ TavernaServerInputsFragment fragment = new TavernaServerInputsFragment();
+ fragment.setArguments(args);
+ return fragment;
+ }
+
+ @Override
+ public void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ if (getArguments() != null) {
+ mParam1 = getArguments().getString(ARG_PARAM1);
+ mParam2 = getArguments().getString(ARG_PARAM2);
+ }
+ }
+
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container,
+ Bundle savedInstanceState) {
+ // Inflate the layout for this fragment
+ return inflater.inflate(R.layout.fragment_taverna_server_inputs, container, false);
+ }
+
+ // TODO: Rename method, update argument and hook method into UI event
+ public void onButtonPressed(Uri uri) {
+ if (mListener != null) {
+ mListener.onFragmentInteraction(uri);
+ }
+ }
+
+ @Override
+ public void onAttach(Context context) {
+ super.onAttach(context);
+ if (context instanceof OnFragmentInteractionListener) {
+ mListener = (OnFragmentInteractionListener) context;
+ } else {
+ throw new RuntimeException(context.toString()
+ + " must implement OnFragmentInteractionListener");
+ }
+ }
+
+ @Override
+ public void onDetach() {
+ super.onDetach();
+ mListener = null;
+ }
+
+ /**
+ * This interface must be implemented by activities that contain this
+ * fragment to allow an interaction in this fragment to be communicated
+ * to the activity and potentially other fragments contained in that
+ * activity.
+ * <p>
+ * See the Android Training lesson <a href=
+ * "http://developer.android.com/training/basics/fragments/communicating.html"
+ * >Communicating with Other Fragments</a> for more information.
+ */
+ public interface OnFragmentInteractionListener {
+ // TODO: Update argument type and name
+ void onFragmentInteraction(Uri uri);
+ }
+}
http://git-wip-us.apache.org/repos/asf/incubator-taverna-mobile/blob/825c79b1/app/src/main/java/org/apache/taverna/mobile/ui/tavernaserver/inputs/TavernaServerInputsMvpView.java
----------------------------------------------------------------------
diff --git a/app/src/main/java/org/apache/taverna/mobile/ui/tavernaserver/inputs/TavernaServerInputsMvpView.java b/app/src/main/java/org/apache/taverna/mobile/ui/tavernaserver/inputs/TavernaServerInputsMvpView.java
new file mode 100644
index 0000000..0a9074c
--- /dev/null
+++ b/app/src/main/java/org/apache/taverna/mobile/ui/tavernaserver/inputs/TavernaServerInputsMvpView.java
@@ -0,0 +1,10 @@
+package org.apache.taverna.mobile.ui.tavernaserver.inputs;
+
+import org.apache.taverna.mobile.ui.base.MvpView;
+
+/**
+ * Created by ian on 16/12/16.
+ */
+
+public interface TavernaServerInputsMvpView extends MvpView {
+}
http://git-wip-us.apache.org/repos/asf/incubator-taverna-mobile/blob/825c79b1/app/src/main/java/org/apache/taverna/mobile/ui/tavernaserver/inputs/TavernaServerInputsPresenter.java
----------------------------------------------------------------------
diff --git a/app/src/main/java/org/apache/taverna/mobile/ui/tavernaserver/inputs/TavernaServerInputsPresenter.java b/app/src/main/java/org/apache/taverna/mobile/ui/tavernaserver/inputs/TavernaServerInputsPresenter.java
new file mode 100644
index 0000000..626b376
--- /dev/null
+++ b/app/src/main/java/org/apache/taverna/mobile/ui/tavernaserver/inputs/TavernaServerInputsPresenter.java
@@ -0,0 +1,10 @@
+package org.apache.taverna.mobile.ui.tavernaserver.inputs;
+
+import org.apache.taverna.mobile.ui.base.BasePresenter;
+
+/**
+ * Created by ian on 16/12/16.
+ */
+
+public class TavernaServerInputsPresenter extends BasePresenter<TavernaServerInputsMvpView> {
+}
http://git-wip-us.apache.org/repos/asf/incubator-taverna-mobile/blob/825c79b1/app/src/main/res/layout/fragment_taverna_server_inputs.xml
----------------------------------------------------------------------
diff --git a/app/src/main/res/layout/fragment_taverna_server_inputs.xml b/app/src/main/res/layout/fragment_taverna_server_inputs.xml
new file mode 100644
index 0000000..4781819
--- /dev/null
+++ b/app/src/main/res/layout/fragment_taverna_server_inputs.xml
@@ -0,0 +1,15 @@
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ tools:context="org.apache.taverna.mobile.ui.tavernaserver.inputs.TavernaServerInputsFragment">
+
+ <!-- <TextView
+ android:id="@+id/taverna_server_inputs_header"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:gravity="center"
+ android:textSize="24sp"
+ android:text="@string/header_taverna_server_inputs"/>
+-->
+</FrameLayout>
http://git-wip-us.apache.org/repos/asf/incubator-taverna-mobile/blob/825c79b1/app/src/main/res/values/strings.xml
----------------------------------------------------------------------
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index c82f729..20f7c43 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -170,7 +170,7 @@ limitations under the License.
<string-array name="player_run_slider_view_labels">
- <item>Player \nLogin</item>
+ <item>Create \nRun</item>
<item>Download</item>
<item>Upload</item>
<item>Inputs &\nRun</item>