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.

  1. would "pattern" practical or awful idea?
  2. what general plan implement in java? (use uris? urls? strings?)

application controller pattern might place start.


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -