Nutrition and health claims are seen as a way of promoting healthy aspects of food. Model regresi linier berganda diaplikasikan untuk mengukur pengaruh brand image dan nutrition label terhadap keputusan pembelian mie instan Lemonilo dengan efek moderasi orientasi makanan sehat. Studi ini memetakan brand image dan nutrition label mie instan Lemonilo dibandingkan dengan kompetitor. Peneliti menggunakan quota sampling dari 100 konsumen mie instan Lemonilo. Data berasal dari responden yang tinggal di dua kota metropolitan di Indonesia: Jakarta dan Surabaya. Studi ini mempelajari persepsi konsumen atas brand image dan nutrition label dan bagaimana faktor-faktor tersebut mempengaruhi keputusan pembelian mie instan Lemonilo, dan juga memasukan efek moderasi orientasi makanan sehat untuk memperkuat penelitian. Lemonilo, yang dikenal karena produk makanan kontemporernya, melakukan diferensiasi mie instan produksi mereka dengan memasarkannya sebagai makanan yang bernutrisi dan natural. Walaupun dipersepsikan sebagai makanan tinggi-kalori rendah-nutrisi, mie instan berada pada daftar teratas pilihan makanan bagi banyak konsumen. Private Function Console_getSupportedMethodNames()Ĭonsole_getSupportedMethodNames = Array("_dump2File", "_openHelp")Įnd Function '.
'dialog.endDialog(1) if computer-based dialogĬase Else : Console_callHandlerMethod = FalseĮnd Function '. Private Function Console_callHandlerMethod(dialog as Object, _Įvent As .DocumentEvent, _ Mb = msgbox.MsgBox(uno.getComponentContext())ĭim dp as Object ' .DialogProvider2ĭim dialog As Object ' .XDialog, .XDialogEventHandlerĭim eventHandler As Object ' .XDialogEventHandlerĭp = CreateUnoService(".DialogProvider2")ĭp.Initialize(Array(ThisComponent)) ' if doc-embedded dialogĮventHandler = CreateUnoListener("Console_", ".XDialogEventHandler")ĭialog = dp.createDialogWithHandler(":MyLib.dlgTrace?location=document", eventHandler) Smgr = XSCRIPTCONTEXT.getComponentContext().ServiceManagerĭp = smgr.createInstanceWithArguments(_DLG_PROVIDER, (model,))ĭp = smgr.createInstanceWithContext(_DLG_PROVIDER, ctx)ĭlg = dp.createDialogWithHandler(":"+libr_dlg+location, self) """ Create a Dialog from its location """ Scr = getBasicScript(script="_DumpToFile", module="Trace",ĭef getDialog(self, libr_dlg: str, embedded=False): ''' adapted from « Créer un dialogue avec gestionnaire d'événements » by JM Zambonĭialog = self.getDialog("MyLib.dlgTrace", embedded=True)ĭef callHandlerMethod(self, dialog, event, method):
_DLG_PROVIDER = ".DialogProvider2"Ĭlass Console(unohelper.Base, XDialogEventHandler): The handler is responsible for implementing .XDialogEventHandler interface.įrom import XDialogEventHandler Creating the handlerĬreateDialogWithHandler method of .DialogProvider2 service is used to set the dialog and its handler. Optionally define Ok button receiving focus event component method name as onOkHasfocusĮvents assigned actions should mention the : protocol. Optionally define txtTracelog key pressed and mouse button pressed events component method names as _openHelp Set Dump to file dialog button component method name to _dump2File Inside the control properties pane of the Dialog Editor, use the Events tab to replace macro assignments by component assignments, and type in the intended method names: Assigning Dialog methodsĮxport Access2Base dlgTrace dialog and import it into MyLib application library. Exception handling and localisation are omitted for clarity. This mechanism is illustrated herewith for Basic and Python languages using an imported copy of Access2Base dlgTrace dialog. It decorrelates events from macros names which facilitates maintenance or updates, in particular when moving macros or modules.
#Membuat label berada di atas panel java code
It packs the code that handles event-driven macros, Unlike listeners that require to define all supported methods, even if unused, dialog handlers require only two methods on top of intended control hook scripts.
The event handler is responsible for executing methods using the : protocol. Next to assigning macros to events or creating event listeners, one can use dialog handlers, whose principle is to define UNO keywords, or methods, that are mapped to events to watch for.