TW201935278A - System and method for making widget based on template - Google Patents
System and method for making widget based on template Download PDFInfo
- Publication number
- TW201935278A TW201935278A TW107105533A TW107105533A TW201935278A TW 201935278 A TW201935278 A TW 201935278A TW 107105533 A TW107105533 A TW 107105533A TW 107105533 A TW107105533 A TW 107105533A TW 201935278 A TW201935278 A TW 201935278A
- Authority
- TW
- Taiwan
- Prior art keywords
- data
- component
- template
- component template
- configuration
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 32
- 238000004088 simulation Methods 0.000 claims abstract description 26
- 238000011161 development Methods 0.000 claims abstract description 19
- 238000012545 processing Methods 0.000 claims abstract description 12
- 238000007726 management method Methods 0.000 claims description 42
- 238000013500 data storage Methods 0.000 claims description 38
- 238000006243 chemical reaction Methods 0.000 claims description 24
- 238000013499 data model Methods 0.000 claims description 11
- 238000010586 diagram Methods 0.000 claims description 7
- 230000000007 visual effect Effects 0.000 claims description 6
- 230000006870 function Effects 0.000 description 4
- 101100509468 Arabidopsis thaliana JASON gene Proteins 0.000 description 2
- 230000015556 catabolic process Effects 0.000 description 2
- 238000006731 degradation reaction Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012800 visualization Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 235000012489 doughnuts Nutrition 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
Landscapes
- Stored Programmes (AREA)
Abstract
Description
本發明係關於一種製作元件(widget)之技術,特別是指一種以模版(template)為基礎製作元件之系統及方法。 The present invention relates to a technology for making a component, and particularly to a system and method for making a component based on a template.
在現有技術中,新增一種資料來源或是當用戶之需求異動時,皆需重新開發新的元件,並在新的元件開發完成後再進行發佈,從而不斷的調整修正而增加了系統的開發成本。 In the existing technology, a new data source is added or when the user's needs change, new components need to be re-developed and released after the development of new components, which continuously adjusts and improves the development of the system. cost.
如先前技術曾提及以整個網頁佈局為應用範圍,所指之元件為軟體元件(component),例如選單程式碼、下拉式選單程式碼、電子郵件程式碼、秀圖程式碼或繪圖程式碼等,可供網頁設計時使用之工具,但未提供可動態客製化視覺化元件(widget)之功能。 As mentioned in the previous technology, the entire web page layout is used as an application scope, and the components referred to are software components, such as menu code, drop-down menu code, email code, show code or drawing code, etc. , A tool that can be used in web design, but does not provide the function of dynamically customizable visual components (widget).
另外,如另一先前技術曾提及,用戶可選定資料來源以制定元件模版(widget template),並在完成設定後直接於顯示畫面繪出元件,但缺乏讓元件開發者上架元件模版及儲存元件模版組態之機制。 In addition, as mentioned in another previous technology, the user can select a data source to develop a widget template and draw the component directly on the display screen after completing the setting. However, it lacks a component developer to put a component template on the display and store components. Mechanism of template configuration.
因此,如何解決上述現有技術之缺點,實已成為本領 域技術人員之一大課題。 Therefore, how to solve the shortcomings of the prior art has become a skill. One of the major issues for domain technicians.
本發明提供一種以模版為基礎製作元件之系統及方法,其可以模版為基礎來製作元件(widget),或者進一步達成動態客製元件(視覺化元件)。 The invention provides a system and method for making components based on a template, which can be used to make a widget based on a template, or to further achieve a dynamic custom component (visualization component).
本發明中以模版為基礎製作元件之系統包括:一資料儲存模組,其提供資料來源之原始資料;一具有資料轉換單元之資料處理模組,該資料轉換單元將資料來源進行註冊以取得資料來源之識別碼,其中,該資料轉換單元在原始資料上標註識別碼,且將原始資料轉換為正規化資料,以將正規化資料作為資料來源之模擬資料,俾儲存模擬資料於資料儲存模組中;一具有元件模版設定單元與元件模版管理單元之元件模版設定受理模組,該元件模版設定單元依據資料來源之識別碼向資料儲存模組取得資料來源之模擬資料,以供元件開發裝置依據模擬資料設定元件模版組態,俾由元件模版管理單元依據元件模版組態啟用元件模版以上架元件模版;以及一具有元件管理單元之元件供應模組,該元件管理單元係供用戶裝置選定已註冊之資料來源,以供元件模版管理單元依據資料來源取得已上架之元件模版及其組態設定,再由用戶裝置選定元件模版,其中,該元件管理單元向資料處理模組取得資料集,俾依據元件模版組態與資料集於顯示畫面繪出元件。 The system for making components based on a template in the present invention includes: a data storage module that provides original data of a data source; a data processing module having a data conversion unit that registers the data source to obtain data Source identification code, where the data conversion unit marks the identification code on the original data, and converts the original data into normalized data, uses the normalized data as the simulated data of the data source, and stores the simulated data in the data storage module Medium; a component template setting acceptance module with a component template setting unit and a component template management unit, the component template setting unit obtains the simulation data of the data source from the data storage module according to the identification code of the data source for the component development device to The component template configuration is set by the simulation data, and the component template management unit enables the component template above the component template according to the component template configuration; and a component supply module with a component management unit, which is selected and registered by the user device Source for component template tubes The unit obtains the component template and its configuration settings according to the data source, and then selects the component template by the user device. Among them, the component management unit obtains the data set from the data processing module, and displays it based on the component template configuration and data set. The screen draws components.
本發明中以模版為基礎製作元件之方法包括下列步驟(1)資料來源之註冊程序:由一資料儲存模組提供資料來源 之原始資料,以由一資料轉換單元將資料來源進行註冊,進而取得資料來源之識別碼,其中,該資料轉換單元在原始資料上標註識別碼,且將原始資料轉換為正規化資料,以將正規化資料作為資料來源之模擬資料,俾儲存模擬資料於資料儲存模組中;(2)元件模版之上架程序:由元件模版設定單元依據資料來源之識別碼向資料儲存模組取得資料來源之模擬資料,以供元件開發裝置依據模擬資料設定元件模版組態,俾由元件模版管理單元依據元件模版組態啟用元件模版以上架元件模版;以及(3)新增元件程序:由用戶裝置透過元件管理單元選定已註冊之資料來源,以供元件模版管理單元依據資料來源取得已上架之元件模版及其組態設定,再由用戶裝置選定元件模版,其中,元件管理單元向資料處理模組取得資料集,俾依據元件模版組態與資料集於顯示畫面繪出元件。 The method for making a component based on a template in the present invention includes the following steps: (1) Registration procedure of a data source: a data source is provided by a data storage module The original data is registered by a data conversion unit to obtain the identification code of the data source. The data conversion unit marks the identification code on the original data and converts the original data into normalized data. The normalized data is used as the simulation data of the data source, and the simulation data is stored in the data storage module. (2) Component template racking procedure: The component template setting unit obtains the data source from the data storage module according to the data source identification code. Simulation data for the component development device to set the component template configuration based on the simulation data, and the component template management unit to enable the component template above the component template according to the component template configuration; and (3) Add component program: the user device through the component The management unit selects the registered data source for the component template management unit to obtain the component template and its configuration settings according to the data source, and then selects the component template by the user device. The component management unit obtains data from the data processing module. Set, according to the component template configuration and data set in the display Element drawn.
為讓本發明之上述特徵與優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明。在以下描述內容中將部分闡述本發明之額外特徵及優點,且此等特徵及優點將部分自所述描述內容顯而易見,或可藉由對本發明之實踐習得。本發明之特徵及優點借助於在申請專利範圍中特別指出的元件及組合來認識到並達到。應理解,前文一般描述與以下詳細描述兩者均僅為例示性及解釋性的,且不欲約束本發明所主張之範圍。 In order to make the above features and advantages of the present invention more comprehensible, embodiments are described below in detail with reference to the accompanying drawings. Additional features and advantages of the present invention will be partially explained in the following description, and these features and advantages will be partially obvious from the description, or may be learned through practice of the present invention. The features and advantages of the invention are realized and achieved by means of elements and combinations specifically pointed out in the scope of the patent application. It should be understood that both the foregoing general description and the following detailed description are merely exemplary and explanatory and are not intended to limit the scope of the invention as claimed.
1‧‧‧以模版為基礎製作元件之系統 1‧‧‧System for making components based on templates
10‧‧‧元件模版設定受理模組 10‧‧‧ Component template setting acceptance module
11‧‧‧元件模版設定單元 11‧‧‧Component template setting unit
12‧‧‧元件模版管理單元 12‧‧‧component template management unit
20‧‧‧元件供應模組 20‧‧‧component supply module
21‧‧‧元件管理單元 21‧‧‧component management unit
30‧‧‧資料儲存模組 30‧‧‧Data Storage Module
31‧‧‧原始資料 31‧‧‧ Source
32‧‧‧模擬資料 32‧‧‧ Simulation data
33‧‧‧基本物件組態 33‧‧‧ Basic Object Configuration
34‧‧‧元件模版組態 34‧‧‧Component template configuration
35‧‧‧資料模型規範 35‧‧‧Data Model Specification
40‧‧‧資料處理模組 40‧‧‧Data Processing Module
41‧‧‧資料轉換單元 41‧‧‧Data Conversion Unit
42‧‧‧資料綁定單元 42‧‧‧Data binding unit
43‧‧‧資料集 43‧‧‧Data Set
A‧‧‧元件開發裝置 A‧‧‧component development device
B‧‧‧用戶裝置 B‧‧‧user device
S11至S16、S21至S27、S31至S41‧‧‧步驟 S11 to S16, S21 to S27, S31 to S41 ‧‧‧ steps
第1圖繪示本發明中以模版為基礎製作元件之系統之 示意架構圖;第2A圖至第2C圖繪示本發明中以模版為基礎製作元件之方法之示意流程圖,其中,第2A圖為資料來源之註冊程序,第2B圖為元件模版之上架程序,第2C圖為新增元件程序;以及第3圖繪示本發明中以設定虛擬專屬網路(VPN)電路之即時品質元件為例之示意圖。 FIG. 1 illustrates a system for making components based on a template in the present invention. Schematic architecture diagram; Figures 2A to 2C show a schematic flowchart of a method for making components based on a template in the present invention, where Figure 2A is the registration procedure of the data source, and Figure 2B is the component template mounting procedure FIG. 2C is a program of adding components; and FIG. 3 is a schematic diagram illustrating an example of setting real-time quality components of a virtual private network (VPN) circuit in the present invention.
以下藉由特定的具體實施形態說明本發明之實施方式,熟悉此技術之人士可由本說明書所揭示之內容輕易地了解本發明之其他優點與功效,亦可藉由其他不同的具體實施形態加以施行或應用。 The following describes the embodiments of the present invention with specific specific implementation forms. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this description, and can also be implemented by other different specific implementation forms. Or apply.
本發明提供一種以模版(template)為基礎製作元件(widget,亦稱視覺化元件)之系統及方法。元件開發裝置(元件開發者)可依據資料來源之特性或用戶裝置(用戶)提出之元件版面配置之需求進行元件模版之設定及上架,而用戶裝置(用戶)只需選定資料來源及元件模版即可繪出該元件,藉此縮減新元件之發佈時間,並快速回應用戶裝置(用戶)之需求。元件開發裝置或用戶裝置可為電子裝置,例如桌上型電腦、筆記型電腦、平板電腦、伺服器或智慧型手機等。 The invention provides a system and method for making a component (widget, also called a visualization component) based on a template. The component development device (component developer) can set and place the component template according to the characteristics of the data source or the component layout requirements proposed by the user device (user), and the user device (user) only needs to select the data source and component template. This component can be drawn to reduce the release time of new components and quickly respond to the needs of user devices (users). The component development device or the user device may be an electronic device, such as a desktop computer, a notebook computer, a tablet computer, a server, or a smartphone.
同時,相較以往的元件(視覺化元件)多為文字、圖片、圖形等物件組成,本發明提供元件開發裝置(元件開發者)可針對單一資料來源設定多種元件模版,且元件模版可由 文字、圖示(icon)、圖表(chart)、超連結(hyperlink)等基本物件組成。又,圖表之物件可包括拓樸圖(topology)、樹狀圖(tree list)、數字圖(digit)、圓餅圖(pie/donut)、表格(grid)、方框(frame)等類別,而元件可由多種基本物件搭配組成,以大幅提升視覺豐富度,進而依據資料來源之特性選擇適當圖表呈現。 At the same time, compared with the previous components (visual components), which are mostly composed of text, pictures, graphics and other objects, the present invention provides a component development device (component developer) that can set multiple component templates for a single data source, and the component templates can be Text, icon, chart, hyperlink and other basic objects. In addition, the objects of the chart may include categories such as topology, tree list, digit, pie / donut, grid, and frame. The components can be composed of a variety of basic objects to greatly enhance the visual richness, and then select the appropriate diagram to display based on the characteristics of the data source.
第1圖繪示本發明中以模版為基礎製作元件之系統1之示意架構圖。如圖所示,以模版為基礎製作元件之系統1包括一元件模版設定受理模組10、一元件供應模組20、一資料儲存模組30與一資料處理模組40。 FIG. 1 is a schematic architecture diagram of a system 1 for making components based on a template in the present invention. As shown in the figure, the system 1 for making components based on a template includes a component template setting acceptance module 10, a component supply module 20, a data storage module 30, and a data processing module 40.
元件模版設定受理模組10具有一元件模版設定單元11與一元件模版管理單元12。元件開發裝置A(元件開發者)可透過元件模版設定單元11依據資料來源之特性與用戶裝置B(用戶)之需求進行元件模版之組態設定,且組態設定之內容可包括基本物件佈局(layout)以及物件與資料綁定(data binding)關係。元件模版管理單元12可提供元件模版之上架與下架、或者資料來源與元件模版之對應關係之管理等必要功能,但不以此為限。 The component template setting acceptance module 10 includes a component template setting unit 11 and a component template management unit 12. The component development device A (component developer) can use the component template setting unit 11 to configure the component template according to the characteristics of the data source and the needs of the user device B (user), and the content of the configuration settings can include the basic object layout ( layout) and the relationship between objects and data binding. The component template management unit 12 can provide necessary functions such as management of the upper and lower shelves of the component template, or the correspondence between the data source and the component template, but is not limited thereto.
元件供應模組20具有一元件管理單元21,且用戶裝置B(用戶)可透過元件管理單元21於顯示畫面新增或刪除元件。新增元件為透過資料來源之識別碼向資料處理模組40取得資料集(data set)43,並結合元件模版組態34繪出元件畫面。又,刪除元件為元件管理單元21將該元件於顯示畫面移除。 The component supply module 20 has a component management unit 21, and the user device B (user) can add or delete components on the display screen through the component management unit 21. The newly added component is to obtain a data set 43 from the data processing module 40 through the identification code of the data source, and draw a component screen in combination with the component template configuration 34. In addition, deleting the component is the component management unit 21 removing the component from the display screen.
資料儲存模組30用以儲存元件模版設定受理模組10、元件供應模組20與資料處理模組40所需之資料,例如原始資料(raw data)31、模擬資料32、基本物件組態33、元件模版組態34、資料模型規範35等,但不以此為限。資料儲存模組30可為資料庫、硬碟、光碟、隨身碟或記憶體等。 The data storage module 30 is used to store data required by the component template setting acceptance module 10, the component supply module 20, and the data processing module 40, such as raw data 31, simulation data 32, and basic object configuration 33 , Component template configuration 34, data model specification 35, etc., but not limited to this. The data storage module 30 may be a database, a hard disk, an optical disk, a flash drive, or a memory.
資料處理模組40具有一資料轉換單元41與一資料綁定單元42。資料轉換單元41可依據資料模型規範35將資料儲存模組30之原始資料31分析及轉換為符合規範之正規化資料(normalized data),以將正規化資料作為資料來源之模擬資料32,俾儲存模擬資料32於資料儲存模組30中。資料綁定單元42可將正規化資料依據用戶裝置B(用戶)於元件管理單元21所選之資料來源及元件模版組態34所描述之資料綁定關係產生資料集43,以提供元件供應模組20於繪出元件所需之對應資料。 The data processing module 40 includes a data conversion unit 41 and a data binding unit 42. The data conversion unit 41 can analyze and convert the original data 31 of the data storage module 30 into normalized data in accordance with the data model specification 35, and use the normalized data as the simulated data 32 as the data source to store The simulation data 32 is stored in the data storage module 30. The data binding unit 42 may generate the data set 43 according to the data binding relationship described by the user device B (user) in the data source selected by the component management unit 21 and the component template configuration 34 to provide a component supply module. Group 20 draws the corresponding data needed for the component.
在一實施例中,以設定虛擬專屬網路(Virtual Private Network)電路之即時品質元件為例,外部系統定期(如每5分鐘)寫入電路資料為原始資料31,利用資料轉換單元41將屬於原始資料31之電路資料取出以轉換為符合JASON格式的資料,且資料模型規範35會定義JASON格式的組成,以轉換為正規化資料,供資料綁定單元42使用。 In an embodiment, taking a real-time quality component of a virtual private network circuit as an example, the external system writes the circuit data periodically (eg, every 5 minutes) as the original data 31, and the data conversion unit 41 will belong to The circuit data of the original data 31 is taken out to be converted into data conforming to the JASON format, and the data model specification 35 will define the composition of the JASON format to be converted into normalized data for use by the data binding unit 42.
本發明中以模版為基礎製作元件之系統及方法可包括下列三個主要程序(但不以此為限),請參閱第1圖與第2A圖至第2C圖所示。 The system and method for making components based on a template in the present invention may include the following three main procedures (but not limited thereto), please refer to FIG. 1 and FIG. 2A to FIG. 2C.
一、資料來源之註冊程序:由資料轉換單元41將(新的)資料來源向資料進行註冊以取得(新的)資料來源之識別碼,並將原始資料31轉換為正規化資料,以將正規化資料作為資料來源之模擬資料32,俾儲存模擬資料32於資料儲存模組30中。 I. Data source registration procedure: The data conversion unit 41 registers the (new) data source with the data to obtain the (new) data source identification code, and converts the original data 31 into normalized data to normalize the data. The simulation data 32 is used as the data source, and the simulation data 32 is stored in the data storage module 30.
二、元件模版之上架程序:由元件開發裝置A(元件開發者)透過元件模版設定單元11針對不同的資料來源進行元件模版之設定,例如基本物件佈局以及物件與資料綁定關係並將其儲存為元件模版,且一個資料來源可以依不同的客製需求設定多個元件模版。 Second, the component template shelf program: Component development device A (component developer) through the component template setting unit 11 for different data source settings for component templates, such as the layout of basic objects and object-data binding relationship and save it It is a component template, and a data source can set multiple component templates according to different custom requirements.
三、新增或刪除元件程序:用戶裝置B(用戶)可透過元件管理單元21於顯示畫面新增或刪除元件。例如,新增元件程序可為:由用戶裝置B(用戶)選擇資料來源,以由元件模版管理單元12依據資料來源取得已設定之元件模版。接著,用戶裝置B(用戶)再選定元件模版,以由元件管理單元21依據元件模版組態34及資料集43於顯示畫面繪出元件,藉以滿足不同用戶裝置B(用戶)的元件呈現需求。 3. Add or delete component programs: User device B (user) can add or delete components on the display screen through the component management unit 21. For example, the newly added component program may be: the user device B (user) selects a data source, and the component template management unit 12 obtains the set component template according to the data source. Next, the user device B (user) selects a component template, and the component management unit 21 draws components on the display screen according to the component template configuration 34 and the data set 43 to meet the component presentation requirements of different user devices B (users).
第2A圖至第2C圖繪示本發明中以模版為基礎製作元件之方法之示意流程圖,第2A圖為資料來源之註冊程序,第2B圖為元件模版之上架程序,第2C圖為新增元件程序,請一併參閱上述第1圖以進行說明。 Figures 2A to 2C show a schematic flowchart of a method for making components based on a template in the present invention. Figure 2A is a registration procedure for a data source, Figure 2B is a component template mounting procedure, and Figure 2C is a new Add component program, please refer to Figure 1 above for explanation.
首先,因原始資料31之格式各異,所有資料來源之原始資料31皆先儲存於資料儲存模組30。當本發明以模版 為基礎製作元件之系統1介接(新的)資料來源時,需進行如下列第2A圖之步驟S11至步驟S16所述資料來源之註冊程序。 First, because the format of the original data 31 is different, the original data 31 of all data sources are stored in the data storage module 30 first. When the present invention is in a template When accessing the (new) data source based on the system 1 for making components, a registration process of the data source as described in steps S11 to S16 of FIG. 2A is required.
在第1圖與第2A圖之步驟S11中,由資料儲存模組30提供(新的)資料來源之原始資料31。 In step S11 of FIG. 1 and FIG. 2A, the original data 31 of the (new) data source is provided by the data storage module 30.
在第1圖與第2A圖之步驟S12中,由資料轉換單元41將(新的)資料來源進行註冊以取得(新的)資料來源之識別碼。 In step S12 of FIG. 1 and FIG. 2A, the (new) data source is registered by the data conversion unit 41 to obtain the (new) data source identification code.
在第1圖與第2A圖之步驟S13中,由資料轉換單元41在原始資料31上標註(新的)資料來源之識別碼。 In step S13 in FIG. 1 and FIG. 2A, the data conversion unit 41 marks the (new) identification code of the data source on the original data 31.
在第1圖與第2A圖之步驟S14中,由資料儲存模組30提供資料模型規範35。 In step S14 of FIG. 1 and FIG. 2A, the data model specification 35 is provided by the data storage module 30.
在第1圖與第2A圖之步驟S15中,由資料轉換單元41依據資料模型規範35將原始資料31分析與轉換為符合規範之正規化資料。正規化資料可為JavaScript物件表示法(JavaScript Object Notation;JSON)之格式,即一個鍵值(key)對應一個值(value)之形式,但其它可達同樣或類似目的之格式皆可使用。 In step S15 in FIG. 1 and FIG. 2A, the data conversion unit 41 analyzes and converts the original data 31 into normalized data in accordance with the specifications according to the data model specification 35. The normalized data can be in the format of JavaScript Object Notation (JSON), that is, a key corresponds to a value, but other formats that can achieve the same or similar purpose can be used.
在第1圖與第2A圖之步驟S16中,將正規化資料作為(新的)資料來源之模擬資料32,俾儲存模擬資料32於資料儲存模組30中。 In step S16 of FIG. 1 and FIG. 2A, the normalized data is used as the (new) data source of the simulation data 32, and the simulation data 32 is stored in the data storage module 30.
其次,當本發明以模版為基礎製作元件之系統1介接(新的)資料來源或現有的元件模版無法滿足用戶裝置B(用戶)的新需求時,元件開發裝置A(元件開發者)需設定及上 架新的元件模版。 Secondly, when the system 1 for making components based on the template of the present invention interfaces (new) data sources or the existing component templates cannot meet the new requirements of the user device B (user), the component development device A (component developer) needs Set up and up New component templates.
設定新的元件模版之元件模版組態34包括基本物件佈局、以及物件與資料綁定關係。基本物件佈局包括基本物件需設定的屬性及物件的排版(arrangements),例如所有的物件排成一列(row)等。資料綁定關係為元件繪出時物件呈現的資料內容。 The component template configuration 34 for setting a new component template includes the basic object layout and the object-data binding relationship. The basic object layout includes the attributes to be set for the basic objects and the arrangement of the objects, for example, all the objects are arranged in a row. The data binding relationship is the data content of the object when the component is drawn.
新的元件模版之上架程序如第1圖與第2B圖之步驟S21至步驟S27所述。 The new component template mounting procedure is as described in steps S21 to S27 of FIG. 1 and FIG. 2B.
在第1圖與第2B圖之步驟S21中,由元件開發裝置A(元件開發者)於元件模版設定單元11先選定一已註冊之資料來源。 In step S21 of FIG. 1 and FIG. 2B, the component development device A (component developer) first selects a registered data source in the component template setting unit 11.
在第1圖與第2B圖之步驟S22中,由資料儲存模組30提供基本物件組態33。基本物件組態33提供基本物件需設定之屬性,例如:顏色、圖示來源、文字內容、資料對應方式...等,但不以此為限。以文字之物件為例,需設定之屬性為文字之顏色及文字內容。而以數字圖(digit)之物件為例,需設定之屬性為數字圖之顏色、說明文字及資料對應方式。 In step S22 of FIGS. 1 and 2B, the basic object configuration 33 is provided by the data storage module 30. The basic object configuration 33 provides attributes that need to be set for basic objects, such as color, icon source, text content, data correspondence method, etc., but is not limited thereto. Taking the object of text as an example, the attributes to be set are the color and content of the text. Taking a digit object as an example, the attributes that need to be set are the color of the digit figure, the description text, and the data correspondence method.
在第1圖與第2B圖之步驟S23中,由資料儲存模組30依據資料來源之識別碼提供資料來源之模擬資料32。 In step S23 of FIG. 1 and FIG. 2B, the data storage module 30 provides the simulation data 32 of the data source according to the identification code of the data source.
在第1圖與第2B圖之步驟S24中,由元件模版設定單元11向資料儲存模組30取得基本物件組態33,並依據資料來源之識別碼向資料儲存模組30取得資料來源之模擬資料32。 In step S24 of FIG. 1 and FIG. 2B, the component template setting unit 11 obtains the basic object configuration 33 from the data storage module 30, and obtains a simulation of the data source from the data storage module 30 according to the identification code of the data source. Information 32.
在第1圖與第2B圖之步驟S25中,由元件開發裝置A(元件開發者)設定元件模版組態34。元件模版組態34係描述元件繪出時所需設定,例如基本物件佈局、以及物件與資料綁定關係。 In step S25 of FIG. 1 and FIG. 2B, the component template configuration 34 is set by the component development device A (component developer). The component template configuration 34 describes the settings required when the component is drawn, such as the basic object layout and the object-data binding relationship.
基本物件佈局包括基本物件需設定的屬性及物件的排版,例如所有物件排成一列等。同時,物件與資料綁定關係描述物件與正規化資料之對應關係,每個物件可指定一至多個資料的鍵值,也可以是多個鍵值之內容於運算後的結果,該結果即為物件繪出時顯示之內容。 The basic object layout includes the attributes that need to be set for basic objects and the layout of the objects, such as all objects lined up in a row. At the same time, the object-data binding relationship describes the correspondence between the object and the normalized data. Each object can specify one or more key values of the data, or the content of multiple key values after the operation. The result is The content displayed when the object is drawn.
在第1圖與第2B圖之步驟S26中,將元件模版組態34儲存於資料儲存模組30。 In step S26 in FIG. 1 and FIG. 2B, the component template configuration 34 is stored in the data storage module 30.
在第1圖與第2B圖之步驟S27中,由元件模版管理單元12依據元件模版組態34啟用元件模版即完成元件模版之上架程序。同時,一個資料來源可以依不同的客製需求設定多個元件模版。 In step S27 of FIG. 1 and FIG. 2B, the component template management unit 12 enables the component template according to the component template configuration 34 to complete the component template shelf program. At the same time, one data source can set multiple component templates according to different custom requirements.
另外,用戶裝置B(用戶)可透過元件供應模組20於顯示畫面新增元件,且新增元件程序如下列第2C圖之步驟S31至步驟S41所述。 In addition, the user device B (user) can add components on the display screen through the component supply module 20, and the procedure for adding components is as described in steps S31 to S41 in FIG. 2C below.
在第1圖與第2C圖之步驟S31中,由用戶裝置B(用戶)選定一已註冊之資料來源。 In step S31 of FIG. 1 and FIG. 2C, a registered data source is selected by the user device B (user).
在第1圖與第2C圖之步驟S32中,由元件管理單元21依據資料來源之識別碼向元件模版管理單元12查詢資料來源中可選擇之元件模版及其組態設定。同時,在步驟S33中,由資料儲存模組30提供啟用之元件模版組態34 予元件模版管理單元12。 In step S32 of FIG. 1 and FIG. 2C, the component management unit 21 inquires the component template management unit 12 according to the identification code of the data source to select the component template selectable from the data source and its configuration settings. Meanwhile, in step S33, the enabled component template configuration 34 is provided by the data storage module 30 予 Component template management unit 12.
在第1圖與第2C圖之步驟S34中,由用戶裝置B(用戶)選定欲繪出之元件模版。 In step S34 in FIG. 1 and FIG. 2C, the user device B (user) selects a component template to be drawn.
在第1圖與第2C圖之步驟S35中,由元件管理單元21於繪出元件前提供即時畫面功能,以依據元件模版組態34與資料轉換單元41所提供之資料集43產生即時預覽畫面,有助於用戶裝置B(用戶)了解元件繪出後之介面外觀(look and feel)。 In step S35 of FIG. 1 and FIG. 2C, the component management unit 21 provides a real-time screen function before drawing the component to generate a real-time preview screen according to the component template configuration 34 and the data set 43 provided by the data conversion unit 41. To help user device B (user) understand the look and feel of the interface after the component is drawn.
在第1圖與第2C圖之步驟S36至步驟S37中,由元件管理單元21提供資料來源之識別碼予資料轉換單元41,並由資料轉換單元41向資料儲存模組30取得資料模型規範35且依據資料來源之識別碼查詢原始資料31。 In steps S36 to S37 of FIG. 1 and FIG. 2C, the component management unit 21 provides the data source identification code to the data conversion unit 41, and the data conversion unit 41 obtains the data model specification 35 from the data storage module 30 And query the original data 31 according to the identification code of the data source.
在第1圖與第2C圖之步驟S38中,由資料轉換單元41依據資料模型規範35將原始資料31轉換為正規化資料。 In step S38 in FIG. 1 and FIG. 2C, the data conversion unit 41 converts the original data 31 into normalized data according to the data model specification 35.
在第1圖與第2C圖之步驟S39中,由資料綁定單元42依據元件模版組態34將正規化資料進行資料綁定以產生資料集43。 In step S39 in FIG. 1 and FIG. 2C, the data binding unit 42 performs data binding on the normalized data according to the component template configuration 34 to generate a data set 43.
又,如上述第2C圖之步驟S35所載,由元件管理單元21依據元件模版組態34與資料集43產生即時預覽畫面,以供用戶裝置B(用戶)選擇不同的元件模版以預覽模版之繪出結果。 Also, as described in step S35 of FIG. 2C above, the component management unit 21 generates an instant preview screen according to the component template configuration 34 and the data set 43 for the user device B (user) to select a different component template to preview the template. Plot the results.
在第1圖與第2C圖之步驟S40中,由用戶裝置B(用戶)確認所選定之元件模版。 In step S40 of FIG. 1 and FIG. 2C, the selected component template is confirmed by the user device B (user).
在第1圖與第2C圖之步驟S41中,由元件管理單元21依據元件模版組態34與資料集43繪出元件。 In step S41 in FIG. 1 and FIG. 2C, the component is drawn by the component management unit 21 according to the component template configuration 34 and the data set 43.
另外,刪除元件程序為:由用戶裝置B(用戶)透過元件供應模組20選定欲移除之元件,以由元件管理單元21將該元件於顯示畫面移除。 In addition, the component deletion program is: the user device B (user) selects the component to be removed through the component supply module 20, and the component management unit 21 removes the component from the display screen.
第3圖繪示本發明中以設定虛擬專屬網路(Virtual Private Network;VPN)電路之即時品質元件為例之示意圖,並一併參閱上述第1圖、第2A圖至第2C圖以進行說明。 FIG. 3 is a schematic diagram illustrating the instant quality component of a virtual private network (VPN) circuit in the present invention as an example, and referring to FIG. 1, FIG. 2A to FIG. 2C above for explanation. .
首先,第1圖之元件開發裝置A(元件開發者)設定一個命名為VPN狀態-4個數字圖(VPN status-4 digits)之元件模版,並於第2B圖之步驟S21中選擇虛擬專屬網路(VPN)電路之即時品質之資料來源,並於第2B圖之步驟S25中設定元件模版組態34(包括設定基本物件佈局以及物件與資料綁定關係),且於第2B圖之步驟S26中將設定之元件模版組態34儲存於資料儲存模組30。 First, the component development device A (component developer) of FIG. 1 sets a component template named VPN status-4 digits, and selects a virtual private network in step S21 of FIG. 2B Data source for the real-time quality of the VPN circuit, and set the component template configuration 34 (including setting the basic object layout and object-data binding relationship) in step S25 in FIG. 2B, and in step S26 in FIG. 2B The set component template configuration 34 is stored in the data storage module 30.
上述欲設定之基本物件佈局可例如為:元件使用四個數字圖之圖表之物件組成,並將四個數字圖排成一列。第一個設定顏色為紅色,標示說明文字為障礙電路。第二個設定顏色為黃色,標示說明文字為品質劣化電路。第三個設定顏色為綠色,標示說明文字為正常電路。第四個設定顏色為灰色,標示說明文字為無資料/未監控電路。 The above-mentioned basic object layout to be set may be, for example, that the component is composed of objects of a chart of four digital figures, and the four digital figures are arranged in a row. The first setting color is red, and the caption text is the obstacle circuit. The second setting color is yellow, and the descriptive text is a quality degradation circuit. The third setting color is green, and the caption text is a normal circuit. The fourth setting color is gray, and the caption text is no data / unmonitored circuit.
上述欲設定之物件與資料綁定關係可例如為:第一個數字圖綁定資料鍵值為Number-of-VPN-Defect-Circuit,第 二個數字圖綁定資料鍵值為Number-of-VPN-Degraded-Circuit,第三個數字圖綁定資料鍵值為Number-of-VPN-Normal-Circuit,第四個數字圖綁定資料鍵值為Number-of-Unknown-Circuit。 The above-mentioned object-data binding relationship to be set may be, for example: the first digital graph binding data key value is Number-of-VPN-Defect-Circuit, the first The two digital figure binding data key values are Number-of-VPN-Degraded-Circuit, the third digital figure binding data key values are Number-of-VPN-Normal-Circuit, and the fourth digital figure binding data key is The value is Number-of-Unknown-Circuit.
再者,例如第1圖之用戶裝置B(用戶)提出需求:在元件上以數字圖(digit)顯示虛擬專屬網路(VPN)各種狀態電路之數量。例如,第3圖顯示障礙電路、品質劣化電路、正常電路、無資料/未監控連線之電路數分別為3個、2個、23個、6個。 Furthermore, for example, the user device B (user) in FIG. 1 makes a request: the number of circuits in various states of the virtual private network (VPN) is displayed in digits on the components. For example, Figure 3 shows that the number of obstacle circuits, quality degradation circuits, normal circuits, and circuits with no data / unmonitored connections are three, two, 23, and six, respectively.
以用戶裝置B(用戶)繪出虛擬專屬網路(VPN)電路之即時品質元件為例,用戶裝置B(用戶)可在第2C圖之步驟S31中選定虛擬專屬網路(VPN)電路之即時品質資料來源,在第2C圖之步驟S34中選擇VPN狀態-4個數字圖(VPN Status-4 digits)之元件模版,在第2C圖之步驟S35中預覽元件模版之繪出結果,在第2C圖之步驟S40中確認所選定之元件模版,並在第2C圖之步驟S41中於顯示畫面繪出虛擬專屬網路(VPN)電路之即時品質元件。 Taking the user device B (user) to draw the real-time quality component of the virtual private network (VPN) circuit as an example, the user device B (user) can select the real-time of the virtual private network (VPN) circuit in step S31 in FIG. 2C. Source of quality data. Select the component template of VPN Status-4 digits in step S34 in Figure 2C. Preview the component template drawing results in step S35 in Figure 2C. The selected component template is confirmed in step S40 of the drawing, and the real-time quality components of the virtual private network (VPN) circuit are drawn on the display screen in step S41 of FIG. 2C.
由上可知,本發明之以模版為基礎製作元件之系統及方法中,係可以模版為基礎製作元件並可達成例如動態客製視覺化元件及易於上架元件模版及儲存元件模版組態。 As can be seen from the above, in the system and method for making components based on a template in the present invention, components can be made based on a template and can achieve, for example, dynamic custom visualized components, easy-to-shelf component templates, and storage component template configurations.
又,為因應不同(異質)的資料來源及滿足用戶裝置(用戶)之多元需求,可由元件開發裝置(元件開發者)或元件模版管理單元針對資料來源上架(新的)元件模版,並依據用戶裝置(用戶)之需求客製化設定元件模版(包括基本物件 佈局及物件與資料綁定關係),且一個資料來源可依據不同的需求設定多個元件模版,而用戶裝置(用戶)只需選定資料來源及元件模版即可繪出該元件,藉此縮減(新的)元件之發佈時間,並快速回應用戶裝置(用戶)之需求。 In addition, in order to respond to different (heterogeneous) data sources and meet the diverse needs of user devices (users), component development devices (component developers) or component template management units can list (new) component templates for data sources, and according to users Device (user) needs customized settings component template (including basic objects Layout and object-data binding relationship), and a data source can set multiple component templates according to different needs, and the user device (user) can select the data source and component template to draw the component, thereby reducing ( New) component release time, and respond quickly to the needs of user devices (users).
同時,本發明提供元件開發裝置(元件開發者)可針對單一資料來源設定多種元件模版,而元件模版可由多個不同的基本物件組成(搭配組成),以大幅提升元件模版之視覺豐富度,進而依據資料來源之特性選擇適當圖表呈現。再者,本發明於新增元件時,可藉由即時畫面功能來預覽元件模版之繪出結果,有助用戶裝置(用戶)選擇偏好之元件模版。 At the same time, the present invention provides a component development device (component developer) that can set multiple component templates for a single data source, and a component template can be composed of a plurality of different basic objects (combination) to greatly improve the visual richness of the component template, and further Select the appropriate chart for presentation based on the characteristics of the data source. Furthermore, when the present invention adds a component, the drawing result of the component template can be previewed by the real-time screen function, which helps the user device (user) to select a preferred component template.
上述實施形態僅例示性說明本發明之原理、特點及其功效,並非用以限制本發明之可實施範疇,任何熟習此項技藝之人士均可在不違背本發明之精神及範疇下,對上述實施形態進行修飾與改變。任何運用本發明所揭示內容而完成之等效改變及修飾,均仍應為申請專利範圍所涵蓋。因此,本發明之權利保護範圍,應如申請專利範圍所列。 The above-mentioned embodiments merely exemplify the principles, features, and effects of the present invention, and are not intended to limit the implementable scope of the present invention. Anyone who is familiar with this technology can perform the above operations without departing from the spirit and scope of the present invention. Modifications and changes to the implementation form. Any equivalent changes and modifications made by using the disclosure of the present invention should still be covered by the scope of patent application. Therefore, the scope of protection of the rights of the present invention should be as listed in the scope of patent application.
Claims (18)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW107105533A TWI646439B (en) | 2018-02-14 | 2018-02-14 | System and method for making widget based on template |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW107105533A TWI646439B (en) | 2018-02-14 | 2018-02-14 | System and method for making widget based on template |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TWI646439B TWI646439B (en) | 2019-01-01 |
| TW201935278A true TW201935278A (en) | 2019-09-01 |
Family
ID=65804033
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW107105533A TWI646439B (en) | 2018-02-14 | 2018-02-14 | System and method for making widget based on template |
Country Status (1)
| Country | Link |
|---|---|
| TW (1) | TWI646439B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TWI865090B (en) * | 2022-12-23 | 2024-12-01 | 韓商韓領有限公司 | Method for providing widget based on mixed intelligence |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115373668A (en) * | 2021-05-21 | 2022-11-22 | 中兴通讯股份有限公司 | Widget generation method and device, electronic equipment and storage medium |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7062740B2 (en) * | 2003-05-22 | 2006-06-13 | Taiwan Semiconductor Manufacturing Co., Ltd. | System and method for reducing design cycle time for designing input/output cells |
| TW200502811A (en) * | 2003-07-04 | 2005-01-16 | Hon Hai Prec Ind Co Ltd | System and method for synchronous files maintenance in different areas |
| TWI275018B (en) * | 2005-10-21 | 2007-03-01 | Hon Hai Prec Ind Co Ltd | System and method for defining templates of a punching die carrier automatically |
| TW200921418A (en) * | 2007-11-09 | 2009-05-16 | Inventec Corp | Card data saving system and a method using user defined templates |
| US9529856B2 (en) * | 2013-06-03 | 2016-12-27 | Google Inc. | Query suggestion templates |
| CN106919410A (en) * | 2015-12-25 | 2017-07-04 | 阿里巴巴集团控股有限公司 | The extended method and device of the layout templates of component |
-
2018
- 2018-02-14 TW TW107105533A patent/TWI646439B/en active
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TWI865090B (en) * | 2022-12-23 | 2024-12-01 | 韓商韓領有限公司 | Method for providing widget based on mixed intelligence |
| TWI875673B (en) * | 2022-12-23 | 2025-03-01 | 韓商韓領有限公司 | Method for providing widget based on mixed intelligence |
Also Published As
| Publication number | Publication date |
|---|---|
| TWI646439B (en) | 2019-01-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112099790B (en) | Methods, devices, equipment and storage media for determining page themes | |
| US9514553B2 (en) | Personalized content layout | |
| CN110532159B (en) | Data monitoring method, device, equipment and computer readable storage medium | |
| AU2017216247B2 (en) | Systems and methods for using entity/relationship model data to enhance user interface engine | |
| CN113918194B (en) | A method, device, electronic device and storage medium for displaying page components | |
| CN111800454A (en) | Visual data display system and visual page screen projection method | |
| CN112000911A (en) | Page management method and device, electronic equipment and storage medium | |
| CN111914528A (en) | Content editing method, editor generation method, device, equipment and medium | |
| CN116992092A (en) | Method and device for establishing flow model, storage medium and terminal equipment | |
| CN113592417A (en) | Asset management method and system based on Internet of things | |
| CN115840567A (en) | Application editing method and related equipment | |
| CA2686367A1 (en) | Dynamic native editor code view facade | |
| CN107463413A (en) | A kind of nodal information display methods and device | |
| US9684738B2 (en) | Text-based command generation | |
| TW201935278A (en) | System and method for making widget based on template | |
| CN112527870B (en) | Electronic report generation method, device, electronic equipment and storage medium | |
| CN110912750B (en) | WEB-based data acquisition management method and device | |
| TW201701696A (en) | Method and apparatus for applying device management rules in a router | |
| CN106325658A (en) | Android-based dynamic layout method and system | |
| CN112035210B (en) | Method, device, apparatus and medium for outputting color information | |
| CN113722341A (en) | Operation data processing method and related device | |
| CN119440509B (en) | Dynamic entity input method, device, storage medium and terminal device based on low-code development platform | |
| JP2015072615A (en) | Server device, screen definition system, screen definition method, and program | |
| CN115146129B (en) | Data item selection method, device, storage medium and computer equipment | |
| CN114519099B (en) | Method, electronic device and storage medium for providing visual interactive interface for database |