java - Desktop application "internal urls" -
for web applications internal navigation, use urls, url router/dispatcher.
is there equivalent pattern/analogy within desktop app being navigation intensive/with multiple views?
let's i'm in myapp://view1/subview1?state=somestate , switch in myapp://view2/subview2/, deconstructing in main controller, decodes first part, switches view view2, calls view2 controller "/subview2", loads "subview2", etc.
i find kiss (keep simple stupid) abstraction handling "navigation" state.
- would "pattern" practical or awful idea?
- what general plan implement in java? (use uris? urls? strings?)
application controller pattern might place start.
Comments
Post a Comment