ui插件框架示例for plugin framework exampleUI.pdf
UMLforUIPluginFrameworkExample
ElijahKerry
NationalInstruments
/largeapps
OO-BasedStateMachineDesign
Alsoknownas‘CommandPattern’or‘ChainofCommandPattern’
UICommand
sendCommand()
execute()
InitializeLoadPanelSlidePanelPopulateMenu
execute()execute()execute()execute()
displayPlugin()move()displayPlugin()
+WriteUIParameters
+ReadUIParameters+WriteVIReference+WriteButtonNames
+ReadVIReference+ReadButtonNames
UsesDynamicDispatchingtodetermine(atrun-time)whichversionof
theexecutemethodgetsrun
FactoryDesignPatternExample
GenericPlugin
Data
-UIReference
-PluginName
Dynamic
ConfigurePlugin()
Run()
Stop()
Pluginsarerequiredto
overrideconfiguration