Hi Isomorphic,
I'm refactoring an old colleague's mobile code that uses NavigationBar.
It has a ton of click handlers with
or similar in the onNavigationClick().
This does not seem right to me. Am I really supposed to find out the current state of the navigation bar like this?
Also, is there no auto-mechanism for back-clicks? Do you have a best practice here and/or could make the online sample more complex?
Another question:
The current code adds a lot of NavigationClickHandlers to the NavigationBar. Only one of those "if" then is true and does actually do something.
But is this correct usage? Am I allowed to have multiple ClickHandlers on an widget like this?
Thank you & Best regards
Blama
I'm refactoring an old colleague's mobile code that uses NavigationBar.
It has a ton of click handlers with
Code:
if(event.getDirection().equals(NavigationDirection.BACK) && navBar.getLeftButtonTitle().equals(I18nEdited.directAllocationOneRowMobile()))
This does not seem right to me. Am I really supposed to find out the current state of the navigation bar like this?
Also, is there no auto-mechanism for back-clicks? Do you have a best practice here and/or could make the online sample more complex?
Another question:
The current code adds a lot of NavigationClickHandlers to the NavigationBar. Only one of those "if" then is true and does actually do something.
But is this correct usage? Am I allowed to have multiple ClickHandlers on an widget like this?
Thank you & Best regards
Blama
Comment