Android Open Source - CheckListView Settings






From Project

Back to project page CheckListView.

License

The source code is released under:

Apache License

If you think the Android project CheckListView listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package it.feio.android.checklistview;
/* ww  w  . j  ava2  s  . c  o m*/
import it.feio.android.checklistview.interfaces.Constants;

public class Settings {

  /**
   * Checked items behavior: hold on place.
   */
  public static final int CHECKED_HOLD = 0;
  /**
   * Checked items behavior: move on bottom of list.
   */
  public static final int CHECKED_ON_BOTTOM = 1;
  /**
   * Checked items behavior: move on bottom of unchecked but on top of checked.
   */
  public static final int CHECKED_ON_TOP_OF_CHECKED = 2;

  private String linesSeparator = Constants.LINES_SEPARATOR;
  private boolean showDeleteIcon = Constants.SHOW_DELETE_ICON;
  private boolean keepChecked = Constants.KEEP_CHECKED;
  private boolean showChecks = Constants.SHOW_CHECKS;
  private boolean showHintItem = Constants.SHOW_HINT_ITEM;
  private String newEntryHint = "";
  private int moveCheckedOnBottom = CHECKED_HOLD;
  private boolean dragEnabled = Constants.DRAG_ENABLED;
  private boolean dragVibrationEnabled = Constants.DRAG_VIBRATION_ENABLED;
  private int dragVibrationDuration = Constants.DRAG_VIBRATION_DURATION;


  public String getLinesSeparator() {
    return linesSeparator;
  }


  public void setLinesSeparator(String linesSeparator) {
    this.linesSeparator = linesSeparator;
  }


  public boolean getShowDeleteIcon() {
    return showDeleteIcon;
  }


  public void setShowDeleteIcon(boolean showDeleteIcon) {
    this.showDeleteIcon = showDeleteIcon;
  }


  public boolean getKeepChecked() {
    return keepChecked;
  }


  public void setKeepChecked(boolean keepChecked) {
    this.keepChecked = keepChecked;
  }


  public boolean getShowChecks() {
    return showChecks;
  }


  public void setShowChecks(boolean showChecks) {
    this.showChecks = showChecks;
  }


  public boolean getShowHintItem() {
    return showHintItem;
  }


  public void setShowHintItem(boolean showHintItem) {
    this.showHintItem = showHintItem;
  }


  public String getNewEntryHint() {
    return newEntryHint;
  }


  public void setNewEntryHint(String newEntryHint) {
    this.newEntryHint = newEntryHint;
  }


  public int getMoveCheckedOnBottom() {
    return moveCheckedOnBottom;
  }


  public void setMoveCheckedOnBottom(int moveCheckedOnBottom) {
    this.moveCheckedOnBottom = moveCheckedOnBottom;
  }


  public boolean getDragEnabled() {
    return dragEnabled;
  }


  public void setDragEnabled(boolean dragEnabled) {
    this.dragEnabled = dragEnabled;
  }


  public boolean getDragVibrationEnabled() {
    return dragVibrationEnabled;
  }


  public void setDragVibrationEnabled(boolean dragVibrationEnabled) {
    this.dragVibrationEnabled = dragVibrationEnabled;
  }


  public int getDragVibrationDuration() {
    return dragVibrationDuration;
  }


  public void setDragVibrationDuration(int dragVibrationDuration) {
    this.dragVibrationDuration = dragVibrationDuration;
  }

}




Java Source Code List

it.feio.android.checklistview.App.java
it.feio.android.checklistview.ChecklistManager.java
it.feio.android.checklistview.Settings.java
it.feio.android.checklistview.demo.MainActivity.java
it.feio.android.checklistview.demo.SettingsActivity.java
it.feio.android.checklistview.dragging.ChecklistViewDragShadowBuilder.java
it.feio.android.checklistview.dragging.ChecklistViewItemOnDragListener.java
it.feio.android.checklistview.dragging.ChecklistViewOnTouchListener.java
it.feio.android.checklistview.exceptions.ViewNotSupportedException.java
it.feio.android.checklistview.interfaces.CheckListChangedListener.java
it.feio.android.checklistview.interfaces.CheckListEventListener.java
it.feio.android.checklistview.interfaces.Constants.java
it.feio.android.checklistview.interfaces.EditTextEventListener.java
it.feio.android.checklistview.models.CheckListViewItem.java
it.feio.android.checklistview.models.CheckListView.java
it.feio.android.checklistview.models.EditTextMultiLineNoEnter.java
it.feio.android.checklistview.utils.AlphaManager.java
it.feio.android.checklistview.utils.DensityUtil.java