Skip to content

Commit

Permalink
Moved CheckListManager class into the same package than the others to…
Browse files Browse the repository at this point in the history
… restrict methods visibility modificator
  • Loading branch information
Federico Iosue committed Feb 27, 2016
1 parent de5936a commit 1b0c438
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,37 +57,37 @@ public CheckListView(Context activity) {
/**
* Declare if a checked item must be moved on bottom of the list or not
*/
public void setMoveCheckedOnBottom(int moveCheckedOnBottom) {
void setMoveCheckedOnBottom(int moveCheckedOnBottom) {
this.moveCheckedOnBottom = moveCheckedOnBottom;
}


/**
* Set if show or not a delete icon at the end of the line. Default true.
*/
public void setShowDeleteIcon(boolean showDeleteIcon) {
void setShowDeleteIcon(boolean showDeleteIcon) {
this.showDeleteIcon = showDeleteIcon;
}


/**
* Set if an empty line on bottom of the checklist must be shown or not
*/
public void setShowHintItem(boolean showHintItem) {
void setShowHintItem(boolean showHintItem) {
this.showHintItem = showHintItem;
}


/**
* Text to be used as hint for the last empty line (hint item)
*/
public void setNewEntryHint(String hint) {
void setNewEntryHint(String hint) {
setShowHintItem(true);
this.newEntryHint = hint;
}


public void setUndoBarEnabled(boolean undoBarEnabled) {
void setUndoBarEnabled(boolean undoBarEnabled) {
this.undoBarEnabled = undoBarEnabled;
}

Expand All @@ -96,14 +96,14 @@ public void setUndoBarEnabled(boolean undoBarEnabled) {
* Used to set a custom View to contain item undo deletion SnackBar
* @param undoBarContainerView Container view
*/
public void setUndoBarContainerView(final View undoBarContainerView) {
void setUndoBarContainerView(final View undoBarContainerView) {
this.undoBarContainerView = undoBarContainerView;
}


@SuppressLint("NewApi")
@SuppressWarnings("deprecation")
public void cloneStyles(EditText v) {
void cloneStyles(EditText v) {
for (int i = 0; i < getChildCount(); i++) {
getChildAt(i).cloneStyles(v);
}
Expand All @@ -115,7 +115,7 @@ public CheckListViewItem getChildAt(int i) {
}


public EditText getEditText() {
EditText getEditText() {
CheckListViewItem child = getChildAt(0);
if (child != null) {
return child.getEditText();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ private void initEditText() {
}


public void setItemCheckedListener(CheckListEventListener listener) {
void setItemCheckedListener(CheckListEventListener listener) {
this.mCheckListEventListener = listener;
}

Expand All @@ -106,17 +106,17 @@ private void initDeleteIcon() {
}


public ImageView getDragHandler() {
ImageView getDragHandler() {
return this.dragHandler;
}


public CheckBox getCheckBox() {
CheckBox getCheckBox() {
return checkBox;
}


public void setCheckBox(CheckBox checkBox) {
void setCheckBox(CheckBox checkBox) {
for (int i = 0; i < getChildCount(); i++) {
if (getChildAt(i).equals(this.checkBox)) {
removeViewAt(i);
Expand Down Expand Up @@ -329,12 +329,12 @@ public void cloneStyles(EditText edittext) {
}


public void setCheckListChangedListener(CheckListChangedListener mCheckListChangedListener) {
void setCheckListChangedListener(CheckListChangedListener mCheckListChangedListener) {
this.mCheckListChangedListener = mCheckListChangedListener;
}


public void setUndoBarEnabled(boolean undoBarEnabled) {
void setUndoBarEnabled(boolean undoBarEnabled) {
this.undoBarEnabled = undoBarEnabled;
}

Expand All @@ -343,7 +343,7 @@ public void setUndoBarEnabled(boolean undoBarEnabled) {
* Used to set a custom View to contain item undo deletion SnackBar
* @param undoBarContainerView Container view
*/
public void setUndoBarContainerView(final View undoBarContainerView) {
void setUndoBarContainerView(final View undoBarContainerView) {
this.undoBarContainerView = undoBarContainerView;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
package it.feio.android.checklistview;
package it.feio.android.checklistview.models;

import android.content.Context;
import android.text.TextWatcher;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.LinearLayout;
import it.feio.android.checklistview.App;
import it.feio.android.checklistview.exceptions.ViewNotSupportedException;
import it.feio.android.checklistview.interfaces.CheckListChangedListener;
import it.feio.android.checklistview.interfaces.Constants;
import it.feio.android.checklistview.models.CheckListView;
import it.feio.android.checklistview.models.CheckListViewItem;
import it.feio.android.pixlui.links.TextLinkClickListener;

import java.util.regex.Pattern;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import it.feio.android.checklistview.ChecklistManager;
import it.feio.android.checklistview.models.ChecklistManager;
import it.feio.android.checklistview.Settings;
import it.feio.android.checklistview.exceptions.ViewNotSupportedException;
import it.feio.android.checklistview.interfaces.CheckListChangedListener;
Expand Down

0 comments on commit 1b0c438

Please sign in to comment.