Example usage for android.support.v4.app DialogFragment setArguments

List of usage examples for android.support.v4.app DialogFragment setArguments

Introduction

In this page you can find the example usage for android.support.v4.app DialogFragment setArguments.

Prototype

public void setArguments(Bundle args) 

Source Link

Document

Supply the construction arguments for this fragment.

Usage

From source file:com.bonsai.btcreceive.ViewTransactionActivity.java

protected DialogFragment showModalDialog(String title, String msg) {
    DialogFragment df = new MyDialogFragment();
    Bundle args = new Bundle();
    args.putString("title", title);
    args.putString("msg", msg);
    args.putBoolean("hasOK", false);
    df.setArguments(args);
    df.show(getSupportFragmentManager(), "note");
    return df;/*from   ww  w.jav  a  2 s. co  m*/
}

From source file:com.intervigil.micdroid.MainActivity.java

@Override
public void onRename(Recording r) {
    DialogFragment nameEntryFragment = new NameEntryDialogFragment();
    Bundle args = new Bundle();
    args.putBoolean(NameEntryDialogFragment.NAME_ENTRY_RENAME_FILE_KEY, true);
    args.putString(NameEntryDialogFragment.NAME_ENTRY_RENAME_FILE_NAME, r.getName());
    nameEntryFragment.setArguments(args);
    nameEntryFragment.show(getSupportFragmentManager(), "renameEntry");
}

From source file:org.gots.seed.view.QuickSeedActionBuilder.java

public QuickSeedActionBuilder(Context context, final SeedWidget v) {
    parentView = v;//from w  ww . ja  v  a 2s.  c o  m
    mContext = context;
    seed = (GrowingSeedInterface) v.getTag();
    quickAction = new QuickAction(mContext, QuickAction.HORIZONTAL);
    actionManager = GotsActionManager.getInstance().initIfNew(mContext);
    actionSeedManager = GotsActionSeedManager.getInstance().initIfNew(mContext);

    new AsyncTask<Void, Void, List<SeedActionInterface>>() {

        @Override
        protected List<SeedActionInterface> doInBackground(Void... params) {
            GotsActionSeedProvider helperActions = GotsActionSeedManager.getInstance().initIfNew(mContext);

            return helperActions.getActionsToDoBySeed(seed, false);
        }

        protected void onPostExecute(List<SeedActionInterface> actions) {
            for (BaseActionInterface baseActionInterface : actions) {
                if (!SeedActionInterface.class.isInstance(baseActionInterface))
                    continue;
                final SeedActionInterface currentAction = (SeedActionInterface) baseActionInterface;

                ActionWidget actionWidget = new ActionWidget(mContext, currentAction);
                actionWidget.setState(currentAction.getState());

                quickAction.addActionItem(actionWidget);
                actionWidget.setOnClickListener(new View.OnClickListener() {

                    @Override
                    public void onClick(View v) {
                        new ActionTask().execute(currentAction);

                    }
                });

            }
        };
    }.execute();

    ScheduleAction planAction = new ScheduleAction(mContext);
    ActionWidget actionWidget = new ActionWidget(mContext, planAction);
    actionWidget.setOnClickListener(new View.OnClickListener() {

        @Override
        public void onClick(View v) {
            // Intent i = new Intent(mContext, NewActionActivity.class);
            // i.putExtra("org.gots.seed.id", seed.getGrowingSeedId());
            // i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
            //
            // mContext.startActivity(i);
            FragmentManager fm = ((FragmentActivity) mContext).getSupportFragmentManager();
            DialogFragment editNameDialog = new ScheduleActionFragment();
            Bundle data = new Bundle();
            data.putInt("org.gots.seed.id", seed.getGrowingSeedId());
            editNameDialog.setArguments(data);
            editNameDialog.setStyle(DialogFragment.STYLE_NORMAL, R.style.CustomDialog);
            editNameDialog.show(fm, "fragment_edit_name");
            quickAction.dismiss();
        }
    });

    quickAction.addActionItem(actionWidget);

    /*
     * ACTION DETAIL
     */
    final DetailAction detail = new DetailAction(mContext);
    ActionWidget detailWidget = new ActionWidget(mContext, detail);
    detailWidget.setState(ActionState.UNDEFINED);
    detailWidget.setOnClickListener(new View.OnClickListener() {

        @Override
        public void onClick(View v) {
            SeedActionInterface actionItem = detail;
            if (DetailAction.class.isInstance(actionItem)) {
                // alert.show();
                final Intent i = new Intent(mContext, TabSeedActivity.class);
                i.putExtra("org.gots.seed.id", ((GrowingSeedInterface) parentView.getTag()).getGrowingSeedId());
                i.putExtra("org.gots.seed.url",
                        ((GrowingSeedInterface) parentView.getTag()).getUrlDescription());
                i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                mContext.startActivity(i);
            } else {
                actionItem.execute(seed);
            }
            // parentAdapter.notifyDataSetChanged();
            quickAction.dismiss();
        }
    });
    quickAction.addPermanentActionItem(detailWidget);

    /*
     * ACTION WATERING
     */
    new AsyncTask<Void, Integer, SeedActionInterface>() {

        @Override
        protected SeedActionInterface doInBackground(Void... params) {
            WateringAction wateringAction = (WateringAction) actionManager.getActionByName("water");

            return wateringAction;
        }

        protected void onPostExecute(final SeedActionInterface action) {
            ActionWidget watering = new ActionWidget(mContext, action);
            watering.setState(ActionState.UNDEFINED);
            watering.setOnClickListener(new View.OnClickListener() {

                @Override
                public void onClick(View v) {
                    new AsyncTask<SeedActionInterface, Integer, Void>() {
                        @Override
                        protected Void doInBackground(SeedActionInterface... params) {
                            SeedActionInterface actionItem = params[0];
                            actionItem.setDuration(0);
                            actionItem = actionSeedManager.insertAction(seed, (BaseActionInterface) actionItem);
                            actionSeedManager.doAction(actionItem, seed);
                            return null;
                        }

                        @Override
                        protected void onPostExecute(Void result) {
                            Toast.makeText(mContext, "action done", Toast.LENGTH_SHORT).show();
                            quickAction.dismiss();
                            super.onPostExecute(result);
                        }
                    }.execute(action);
                }
            });
            quickAction.addPermanentActionItem(watering);

        };
    }.execute();

    /*
     * ACTION DELETE
     */
    final DeleteAction deleteAction = new DeleteAction(mContext);
    ActionWidget delete = new ActionWidget(mContext, deleteAction);
    delete.setState(ActionState.UNDEFINED);

    delete.setOnClickListener(new View.OnClickListener() {

        @Override
        public void onClick(View v) {
            AlertDialog.Builder builder = new AlertDialog.Builder(mContext);
            builder.setMessage(mContext.getResources().getString(R.string.action_delete_seed))
                    .setCancelable(false).setPositiveButton("OK", new DialogInterface.OnClickListener() {
                        public void onClick(DialogInterface dialog, int id) {
                            new ActionTask().execute(deleteAction);
                            mContext.sendBroadcast(new Intent(BroadCastMessages.GROWINGSEED_DISPLAYLIST));
                            dialog.dismiss();
                        }
                    }).setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
                        public void onClick(DialogInterface dialog, int id) {
                            dialog.cancel();
                        }
                    });
            builder.show();

        }
    });
    quickAction.addPermanentActionItem(delete);

    // /*
    // * ACTION PHOTO
    // */
    // new AsyncTask<Void, Integer, PhotoAction>() {
    //
    // @Override
    // protected PhotoAction doInBackground(Void... params) {
    // PhotoAction photoAction = (PhotoAction) actionManager.getActionByName("photo");
    //
    // return photoAction;
    // }
    //
    // protected void onPostExecute(final PhotoAction photoAction) {
    // ActionWidget photoWidget = new ActionWidget(mContext, photoAction);
    // photoWidget.setState(ActionState.UNDEFINED);
    //
    // photoWidget.setOnClickListener(new View.OnClickListener() {
    //
    // @Override
    // public void onClick(View v) {
    // SeedActionInterface actionItem = photoAction;
    // if (PhotoAction.class.isInstance(actionItem)) {
    // // alert.show();
    // final Intent i = new Intent(mContext, TabSeedActivity.class);
    // i.putExtra("org.gots.seed.id", ((GrowingSeedInterface) parentView.getTag()).getGrowingSeedId());
    // i.putExtra("org.gots.seed.actionphoto","org.gots.seed.actionphoto");
    // i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    // mContext.startActivity(i);
    //
    //
    //
    // }
    // // parentAdapter.notifyDataSetChanged();
    // quickAction.dismiss();
    // }
    // });
    // quickAction.addPermanentActionItem(photoWidget);
    //
    // };
    // }.execute();

}

From source file:de.tudarmstadt.dvs.myhealthassistant.myhealthhub.MyHealthHubGlassMainActivity.java

private void openSelectDeviceDialog(String sensorType) {
    BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
    if (mBluetoothAdapter != null) {
        BluetoothDevice[] mAllBondedDevices = (BluetoothDevice[]) mBluetoothAdapter.getBondedDevices()
                .toArray(new BluetoothDevice[0]);

        int mDeviceIndex = 0;
        if (mAllBondedDevices.length > 0) {
            int deviceCount = mAllBondedDevices.length;
            String[] deviceNames = new String[deviceCount];
            int i = 0;
            for (BluetoothDevice device : mAllBondedDevices) {
                deviceNames[i++] = device.getName() + "|" + device.getAddress();
            }/*from   w ww  . java 2  s .com*/
            DialogFragment deviceDialog = new SelectDeviceDialogFragment();
            Bundle args = new Bundle();
            args.putString("sensorType", sensorType);
            args.putStringArray("names", deviceNames);
            args.putInt("position", mDeviceIndex);
            args.putBoolean("device", true);
            deviceDialog.setArguments(args);
            getFragmentManager().beginTransaction();
            deviceDialog.show(getSupportFragmentManager().beginTransaction(), "deviceDialog");
        }
    }
}

From source file:org.mariotaku.twidere.fragment.support.UserListDetailsFragment.java

@Override
public boolean onOptionsItemSelected(final MenuItem item) {
    switch (item.getItemId()) {
    case MENU_EDIT: {
        if (mUserList == null)
            return false;
        final Bundle args = new Bundle();
        args.putLong(EXTRA_ACCOUNT_ID, mUserList.account_id);
        args.putString(EXTRA_LIST_NAME, mUserList.name);
        args.putString(EXTRA_DESCRIPTION, mUserList.description);
        args.putBoolean(EXTRA_IS_PUBLIC, mUserList.is_public);
        args.putInt(EXTRA_LIST_ID, mUserList.id);
        final DialogFragment f = new EditUserListDialogFragment();
        f.setArguments(args);
        f.show(getFragmentManager(), "edit_user_list_details");
        return true;
    }//from w w  w .j  a va2s.  co  m
    case MENU_FOLLOW: {
        if (mUserList == null)
            return false;
        mTwitterWrapper.createUserListSubscriptionAsync(mUserList.account_id, mUserList.id);
        return true;
    }
    case MENU_UNFOLLOW: {
        if (mUserList == null)
            return false;
        DestroyUserListSubscriptionDialogFragment.show(getFragmentManager(), mUserList);
        return true;
    }
    }
    return super.onOptionsItemSelected(item);
}

From source file:de.schilldroid.carfuelly.Activities.CarDetailsActivity.java

public void initComponents() {
    // initialize components
    mViewName = (EditText) findViewById(R.id.car_details_name);
    mViewDescription = (EditText) findViewById(R.id.car_details_description);
    mViewManufacturer = (EditText) findViewById(R.id.car_details_manufacturer);
    mViewModel = (EditText) findViewById(R.id.car_details_model);
    mViewFirstRegistration = (EditText) findViewById(R.id.car_details_first_registration);
    mViewPower = (EditText) findViewById(R.id.car_details_power);
    mViewEngine = (EditText) findViewById(R.id.car_details_engine);
    mViewConfiguration = (EditText) findViewById(R.id.car_details_configuration);
    mViewPurchaseDate = (EditText) findViewById(R.id.car_details_purchase_date);
    mViewPrice = (EditText) findViewById(R.id.car_details_price);
    mViewLicensePlate = (EditText) findViewById(R.id.car_details_license_plate);
    mViewConsumptionUrban = (EditText) findViewById(R.id.car_details_consumption_urban);
    mViewConsumptionExtraUrban = (EditText) findViewById(R.id.car_details_consumption_extraurban);
    mViewConsumptionCombined = (EditText) findViewById(R.id.car_details_consumption_combined);

    // add date picker
    mViewFirstRegistration.setOnClickListener(new View.OnClickListener() {
        @Override//from   w w  w.  j  a  va  2  s  . c o  m
        public void onClick(View v) {
            DialogFragment datePicker = new CarDetailsDatePickerFragment();
            Bundle args = new Bundle();
            args.putInt(Consts.CarDetails.DATE_PICKER_CONTEXT,
                    Consts.CarDetails.DATE_PICKER_CONTEXT_FIRST_REGISTRATION);
            datePicker.setArguments(args);
            datePicker.show(getSupportFragmentManager(), "datePicker");
        }
    });
    mViewPurchaseDate.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            DialogFragment datePicker = new CarDetailsDatePickerFragment();
            Bundle args = new Bundle();
            args.putInt(Consts.CarDetails.DATE_PICKER_CONTEXT,
                    Consts.CarDetails.DATE_PICKER_CONTEXT_PURCHASE_DATE);
            datePicker.setArguments(args);
            datePicker.show(getSupportFragmentManager(), "datePicker");
        }
    });

    // init listview
    mViewTankList = (ListView) findViewById(R.id.car_details_tank_list);
    mTankListAdapter = new CarDetailTankListAdapter(this);
    mViewTankList.setAdapter(mTankListAdapter);

    // implement add tank button
    mViewAddTank = (ImageView) findViewById(R.id.car_details_tank_add);
    mViewAddTank.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            mTankListAdapter.addTank();
        }
    });

    // setup toolbar
    mToolbar = (Toolbar) findViewById(R.id.car_details_toolbar);
    mToolbar.setTitle(mTitle);
    setSupportActionBar(mToolbar);
    getSupportActionBar().setDisplayShowHomeEnabled(true);
    getSupportActionBar().setDisplayHomeAsUpEnabled(true);
    getSupportActionBar().setHomeButtonEnabled(true);

    mFAB = (FloatingActionButton) findViewById(R.id.car_details_fab);
    mFAB.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            Intent intent = new Intent();
            intent.setType("image/*");
            intent.setAction(Intent.ACTION_GET_CONTENT);
            startActivityForResult(Intent.createChooser(intent, "Choose image"),
                    Consts.CarDetails.REQUEST_PICK_IMAGE);
        }
    });

    mToolbarImage = (ImageView) findViewById(R.id.car_details_toolbar_image);

}

From source file:eu.trentorise.smartcampus.eb.fragments.experience.EditExpFragment.java

@Override
public boolean onOptionsItemSelected(MenuItem item) {
    switch (item.getItemId()) {
    case android.R.id.home:
        getActivity().onBackPressed();//from w  w  w. ja v a2 s .c o m
        break;
    case R.id.expmenu_done:
    case R.id.expmenu_save:
        exp.setTitle(mTitleSwitch.getValue());
        exp.setDescription(mDescrSwitch.getValue());
        if (validate(exp)) {
            new SaveTask().execute();
        }
        break;
    case R.id.expmenu_attach_audio:
        onCaptureOption(new String[] { CATCH_TYPES.AUDIO.toString() }, null);
        break;
    case R.id.expmenu_attach_camera_photo:
        onCaptureOption(new String[] { CATCH_TYPES.IMAGE_CAMERA.toString() }, null);
        break;
    case R.id.expmenu_attach_camera_video:
        onCaptureOption(new String[] { CATCH_TYPES.VIDEO_CAMERA.toString() }, null);
        break;
    case R.id.expmenu_attach_gallery_photo:
        onCaptureOption(new String[] { CATCH_TYPES.IMAGE_GALLERY.toString() }, null);
        break;
    case R.id.expmenu_attach_gallery_video:
        onCaptureOption(new String[] { CATCH_TYPES.VIDEO_GALLERY.toString() }, null);
        break;
    case R.id.expmenu_attach_qrcode:
        onCaptureOption(new String[] { CATCH_TYPES.QRCODE.toString() }, null);
        break;
    case R.id.expmenu_attach_text:
        DialogFragment textFragment = new EditNoteFragment();
        textFragment.setArguments(EditNoteFragment.prepare("", exp.getContents().size()));
        textFragment.show(getActivity().getSupportFragmentManager(), "exp_content_note");
        break;
    case R.id.expmenu_remove:
        DialogFragment newFragment = new DeleteExperienceFragment();
        newFragment.setArguments(DeleteExperienceFragment.prepare(exp.getId()));
        newFragment.show(getActivity().getSupportFragmentManager(), "exp_delete");
        break;
    case R.id.expmenu_assign_collection:
        DialogFragment assignFragment = new AssignCollectionFragment();
        assignFragment.setArguments(AssignCollectionFragment.prepare(exp.getId(), exp.getCollectionIds()));
        assignFragment.show(getActivity().getSupportFragmentManager(), "exp_assign_colls");
        break;
    case R.id.expmenu_share:
        ShareEntityObject obj = new ShareEntityObject(exp.getEntityId(), exp.getTitle(),
                Constants.ENTITY_TYPE_EXPERIENCE);
        SharingHelper.share(getActivity(), obj);
        break;
    case R.id.expmenu_map:
    case R.id.expmenu_export:
        Toast.makeText(getActivity(), R.string.not_implemented, Toast.LENGTH_SHORT).show();
        // TODO
        break;
    default:
        break;
    }
    return super.onOptionsItemSelected(item);
}

From source file:eu.trentorise.smartcampus.eb.fragments.experience.EditExpFragment.java

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    returnView = inflater.inflate(R.layout.exp_form, container, false);
    ListView list = (ListView) returnView.findViewById(R.id.exp_contents);
    registerForContextMenu(list);/*from  w w w  . j  a  v  a 2  s . co m*/
    if (list.getFooterViewsCount() == 0) {
        View footer = getSherlockActivity().getLayoutInflater().inflate(R.layout.exp_form_footer, null);
        list.addFooterView(footer, null, false);
    }
    if (list.getHeaderViewsCount() == 0) {
        View header = getSherlockActivity().getLayoutInflater().inflate(R.layout.exp_form_header, null);
        list.addHeaderView(header, null, false);
        mTitleSwitch = new TextEditSwitch(returnView, R.id.title_switcher, R.id.title_tv, R.id.title, this);
        mTitleSwitch.setValue(exp.getTitle());
        mDescrSwitch = new TextEditSwitch(returnView, R.id.descr_switcher, R.id.description_tv,
                R.id.description, this);
        mDescrSwitch.setValue(exp.getDescription());
    }
    adapter = new ExpContentAdapter(getSherlockActivity(), R.layout.exp_contents_row, exp.getContents());
    list.setAdapter(adapter);
    list.setOnItemClickListener(new OnItemClickListener() {
        @Override
        public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
            if (position <= exp.getContents().size() && position > 0) {
                ContentRenderer.renderExternal(getActivity(), exp.getContents().get(position - 1));
            }
        }

    });

    updateCollectionTV();
    if (exp.getId() == null) {
        new LoadAddressTask().execute();
    } else {
        updateFooterTV(exp.getAddress(), exp.getCreationTime());
    }
    if (exp.getTags() != null) {
        ((TextView) returnView.findViewById(R.id.tags_tv)).setText(Concept.toSimpleString(exp.getTags()));
    }

    ((TextView) returnView.findViewById(R.id.tags_tv)).setOnClickListener(new OnClickListener() {
        @Override
        public void onClick(View v) {
            TaggingDialogFragment taggingDialog = new TaggingDialogFragment();
            taggingDialog.setArguments(TaggingDialogFragment.prepare(Concept.convertToSS(exp.getTags())));
            taggingDialog.show(getActivity().getSupportFragmentManager(), "tags");
        }
    });

    returnView.findViewById(R.id.place_box).setOnClickListener(new OnClickListener() {
        @Override
        public void onClick(View v) {
            DialogFragment textFragment = new EditPositionFragment();
            textFragment.setArguments(
                    EditPositionFragment.prepare(exp.getAddress() == null ? "" : exp.getAddress()));
            textFragment.show(getActivity().getSupportFragmentManager(), "exp_position");
        }
    });

    return returnView;
}

From source file:de.vanita5.twittnuker.fragment.support.UserListDetailsFragment.java

@Override
public boolean onMenuItemClick(final MenuItem item) {
    final AsyncTwitterWrapper twitter = getTwitterWrapper();
    final ParcelableUserList userList = mUserList;
    if (twitter == null || userList == null)
        return false;
    switch (item.getItemId()) {
    case MENU_ADD: {
        if (userList.user_id != userList.account_id)
            return false;
        final Intent intent = new Intent(INTENT_ACTION_SELECT_USER);
        intent.setClass(getActivity(), UserListSelectorActivity.class);
        intent.putExtra(EXTRA_ACCOUNT_ID, userList.account_id);
        startActivityForResult(intent, REQUEST_SELECT_USER);
        break;/*  w ww .  j av a 2s  . c  o m*/
    }
    case MENU_DELETE: {
        if (userList.user_id != userList.account_id)
            return false;
        DestroyUserListDialogFragment.show(getFragmentManager(), userList);
        break;
    }
    case MENU_EDIT: {
        final Bundle args = new Bundle();
        args.putLong(EXTRA_ACCOUNT_ID, userList.account_id);
        args.putString(EXTRA_LIST_NAME, userList.name);
        args.putString(EXTRA_DESCRIPTION, userList.description);
        args.putBoolean(EXTRA_IS_PUBLIC, userList.is_public);
        args.putLong(EXTRA_LIST_ID, userList.id);
        final DialogFragment f = new EditUserListDialogFragment();
        f.setArguments(args);
        f.show(getFragmentManager(), "edit_user_list_details");
        return true;
    }
    case MENU_FOLLOW: {
        if (userList.is_following) {
            DestroyUserListSubscriptionDialogFragment.show(getFragmentManager(), userList);
        } else {
            twitter.createUserListSubscriptionAsync(userList.account_id, userList.id);
        }
        return true;
    }
    default: {
        if (item.getIntent() != null) {
            try {
                startActivity(item.getIntent());
            } catch (final ActivityNotFoundException e) {
                if (Utils.isDebugBuild())
                    Log.w(LOGTAG, e);
                return false;
            }
        }
        break;
    }
    }
    return true;
}

From source file:com.loloof64.android.chess_position_manager.MainActivity.java

@Override
public void onConfirmRemoveElementsDialogPositiveClick(String[] foldersNames, String[] positionsNames) {
    ArrayList<String> failedFolders = new ArrayList<>();
    ArrayList<String> failedPositions = new ArrayList<>();

    for (String currentFolderName : foldersNames) {
        if (!directoryManager.tryToRemoveFileOrFolder(currentFolderName)) {
            failedFolders.add(currentFolderName);
        }/*from ww w  .j ava  2 s. c  o m*/
    }

    for (String currentPositionName : positionsNames) {
        if (!directoryManager.tryToRemoveFileOrFolder(currentPositionName)) {
            failedPositions.add(currentPositionName);
        }
    }

    boolean allSucceed = failedPositions.isEmpty() && failedFolders.isEmpty();
    if (!allSucceed) {
        Collections.sort(failedFolders);
        Collections.sort(failedPositions);

        String[] failedFoldersArray = new String[failedFolders.size()];
        String[] failedPositionsArray = new String[failedPositions.size()];

        failedFolders.toArray(failedFoldersArray);
        failedPositions.toArray(failedPositionsArray);

        DialogFragment newFragment = new RemovingFilesErrorDialogFragment();
        Bundle arguments = new Bundle();
        arguments.putStringArray(RemovingFilesErrorDialogFragment.FOLDERS_TAG, failedFoldersArray);
        arguments.putStringArray(RemovingFilesErrorDialogFragment.POSITIONS_TAG, failedPositionsArray);
        newFragment.setArguments(arguments);
        newFragment.show(getSupportFragmentManager(), "removingElementsError");
    }

    refreshList();
}