jMonkeyEngine-Contributions / Lemur

Lemur is a jMonkeyEngine-based UI toolkit.
http://jmonkeyengine-contributions.github.io/Lemur/
BSD 3-Clause "New" or "Revised" License
116 stars 33 forks source link

Feature Request: Add support for float numbers in numeric TextFilter of DocumentModelFilter #82

Closed Ali-RS closed 4 years ago

pspeed42 commented 4 years ago

Can you describe what you mean by this? Is it a limitation of the filtered document model or just the lack of an implementation?

...ie: is it possible for a user to implement their own or not?

Ali-RS commented 4 years ago

Sorry, I forgot to close this.

...ie: is it possible for a user to implement their own or not?

Yes, I was able to implement my own filter for float numbers.

DocumentModelFilter doc = new DocumentModelFilter();
doc.setInputTransform(TextFilters.charFilter(Predicates.or(TextFilters.isDigit(), TextFilters.isInChars('.'))));

I think back then I did not know I can use custom filters! Anyway, I am closing this now.