Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added methods to add and remove labels with an Object tag #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

josephusvillarey
Copy link

I've encountered some cases during the development of my app where it is not enough to add a label using a String or index tag, like when labels can be of the same text representation but represent different object in a selection, or when you're trying to remove a label that corresponds to a certain checked item in your list, but the text on the label is not unique. This pull request solves that issue by being able to add a label with an Object as a tag. This can be useful when you want to pass your own model object as a tag; just make sure that your object properly overrides the equals() method so the removeLabel(Object tag) method can properly remove the corresponding label with the given tag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant