TWI875105B - Method and apparatus for generating ui component - Google Patents
Method and apparatus for generating ui component Download PDFInfo
- Publication number
- TWI875105B TWI875105B TW112128544A TW112128544A TWI875105B TW I875105 B TWI875105 B TW I875105B TW 112128544 A TW112128544 A TW 112128544A TW 112128544 A TW112128544 A TW 112128544A TW I875105 B TWI875105 B TW I875105B
- Authority
- TW
- Taiwan
- Prior art keywords
- slot
- state information
- object component
- component
- default
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04817—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0482—Interaction with lists of selectable items, e.g. menus
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/103—Formatting, i.e. changing of presentation of documents
- G06F40/109—Font handling; Temporal or kinetic typography
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/36—Software reuse
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Databases & Information Systems (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Data Mining & Analysis (AREA)
- User Interface Of Digital Computer (AREA)
- Stored Programmes (AREA)
- Computing Systems (AREA)
Abstract
本發明揭示了於電子裝置中產生UI組件之方法。具體而言,產生UI組件之方法可包括如下步驟:確認對象組件;確認對象組件之至少一個槽;在與對象組件相關之原始碼中,識別與至少一個槽相關之狀態資訊;根據狀態資訊,確定與至少一個槽對應之至少一個子組件;及基於對象組件之階層式結構,產生包括至少一個子組件之對象組件。 The present invention discloses a method for generating a UI component in an electronic device. Specifically, the method for generating a UI component may include the following steps: confirming an object component; confirming at least one slot of the object component; identifying state information associated with at least one slot in source code associated with the object component; determining at least one subcomponent corresponding to at least one slot based on the state information; and generating an object component including at least one subcomponent based on the hierarchical structure of the object component.
Description
本說明書之實施例係關於一種產生UI(User Interface,用戶介面)組件之方法及裝置。本說明書之實施例係關於一種基於對象組件之階層式結構而產生包括至少一個子組件之對象組件之方法及其裝置。 The embodiments of this specification are related to a method and device for generating a UI (User Interface) component. The embodiments of this specification are related to a method and device for generating an object component including at least one subcomponent based on the hierarchical structure of the object component.
UI組件可為構成網頁或行動頁面之單位。例如,與行動頁面所包括之介面工具集對應之UI組件可構成為包括下位級別之組件之階層式結構。 A UI component can be a unit that constitutes a web page or a mobile page. For example, a UI component corresponding to an interface tool set included in a mobile page can be constructed as a hierarchical structure including lower-level components.
本說明書中揭示之實施例旨在提供一種產生UI組件之方法及其裝置。 The embodiments disclosed in this specification are intended to provide a method and device for generating UI components.
本實施例所欲解決之技術課題不侷限於如上所述之技術課題,亦可從以下之實施例中推斷出其他技術課題。 The technical issues that this embodiment aims to solve are not limited to the technical issues described above, and other technical issues can also be inferred from the following embodiments.
作為用以實現上述課題之技術手段,本發明之第1方面之於電子裝置中產生UI組件之方法可包括如下步驟:確認對象組件;確認對 象組件之至少一個槽;在與對象組件相關之原始碼中,識別與至少一個槽相關之狀態資訊;根據狀態資訊,確定與至少一個槽對應之至少一個子組件;及基於對象組件之階層式結構,產生包括至少一個子組件之對象組件。 As a technical means for realizing the above-mentioned subject, the method for generating a UI component in an electronic device in the first aspect of the present invention may include the following steps: confirming an object component; confirming at least one slot of the object component; identifying state information related to at least one slot in source code related to the object component; determining at least one subcomponent corresponding to at least one slot based on the state information; and generating an object component including at least one subcomponent based on the hierarchical structure of the object component.
根據一實施例,識別狀態資訊之步驟可包括如下步驟:利用第1級別之API,將狀態資訊中之第1類型之狀態資訊確定為所設置之第1類型的預設狀態資訊;及利用第1級別之API,於原始碼中識別狀態資訊中之第2類型之狀態資訊。 According to one embodiment, the step of identifying the state information may include the following steps: using the level 1 API to determine the state information of the first type in the state information as the set default state information of the first type; and using the level 1 API to identify the state information of the second type in the state information in the source code.
根據一實施例,原始碼可包括:第1欄位,其表示第1類型之狀態資訊被設置為所設置之第1類型之預設狀態資訊;及第2欄位,其表示第2類型之狀態資訊。 According to one embodiment, the source code may include: a first field indicating that the status information of the first type is set to the set default status information of the first type; and a second field indicating the status information of the second type.
根據一實施例,識別狀態資訊之步驟可包括如下步驟:利用第2級別之API,於原始碼中識別第1類型之狀態資訊及第2類型之狀態資訊。 According to one embodiment, the step of identifying the state information may include the following steps: using the level 2 API to identify the state information of type 1 and the state information of type 2 in the source code.
根據一實施例,第2級別之API可為原始碼包括第3欄位時利用之API,第3欄位係表示第1類型之狀態資訊中之至少一部分被設置為與所設置之第1類型之預設狀態資訊不同之第1類型之狀態資訊。 According to one embodiment, the second level API may be an API used when the source code includes the third field, and the third field indicates that at least a portion of the first type of status information is set to the first type of status information that is different from the set first type of default status information.
根據一實施例,預設版本之對象組件可包括至少一個預設子組件,該預設子組件係對應於與至少一個槽相關之預設狀態資訊。 According to one embodiment, a default version of an object component may include at least one default subcomponent, which corresponds to default status information associated with at least one slot.
根據一實施例,於至少一個槽中之第1槽之狀態資訊不同於預設版本之對象組件中之第1槽的預設狀態資訊,且至少一個槽中之第2槽之狀態資訊為預設版本之對象組件中之第2槽的預設狀態資訊時,原始碼可包括:第1子欄位,其表示第1槽之狀態資訊被設置為與第1槽之預設 狀態資訊不同之狀態資訊;及第2子欄位,其表示第2槽之狀態資訊被設置為第2槽之預設狀態資訊。 According to one embodiment, when the state information of the first slot in at least one slot is different from the default state information of the first slot in the default version of the object component, and the state information of the second slot in at least one slot is the default state information of the second slot in the default version of the object component, the source code may include: a first subfield, which indicates that the state information of the first slot is set to state information different from the default state information of the first slot; and a second subfield, which indicates that the state information of the second slot is set to the default state information of the second slot.
根據一實施例,識別狀態資訊之步驟可進而包括如下步驟:藉由介面來識別與至少一個槽相關之狀態資訊。 According to one embodiment, the step of identifying status information may further include the following steps: identifying status information associated with at least one slot through an interface.
根據一實施例,介面可包括:第1區域,其設置對象組件之狀態資訊;及第2區域,其設置至少一個子組件各者之狀態資訊。 According to one embodiment, the interface may include: a first area, which sets the state information of the object component; and a second area, which sets the state information of each of at least one subcomponent.
根據一實施例,確定至少一個子組件之步驟包括如下步驟:基於狀態資訊,識別至少一個子組件各者之資料;產生對象組件之步驟可包括如下步驟:基於狀態資訊來渲染至少一個子組件各者之資料以滿足階層式結構,藉此產生對象組件。 According to one embodiment, the step of determining at least one subcomponent includes the following steps: based on the state information, identifying the data of each of the at least one subcomponent; the step of generating the object component may include the following steps: based on the state information, rendering the data of each of the at least one subcomponent to satisfy the hierarchical structure, thereby generating the object component.
根據一實施例,原始碼可為xml(Extensible Markup Language,可延伸標示語言)形式之原始碼或json(JavaScript Object Notation,JavaScript物件表示法)形式之原始碼中之一者。 According to one embodiment, the source code may be one of source code in the form of xml (Extensible Markup Language) or source code in the form of json (JavaScript Object Notation).
本發明之第2方面之用以產生UI組件之電子裝置可包括:收發器;儲存一個以上之命令之儲存器;及一個以上之處理器;以及儲存藉由一個以上之處理器執行之一個以上之命令之儲存器;且一個以上之處理器如下:藉由執行一個以上之命令而確認對象組件,確認對象組件之至少一個槽,在與對象組件相關之原始碼中,識別與至少一個槽相關之狀態資訊,根據狀態資訊,確定與至少一個槽對應之至少一個子組件,且基於對象組件之階層式結構,產生包括至少一個子組件之對象組件。 The electronic device for generating a UI component according to the second aspect of the present invention may include: a transceiver; a register storing one or more commands; and one or more processors; and a register storing one or more commands executed by one or more processors; and the one or more processors are as follows: confirming an object component by executing one or more commands, confirming at least one slot of the object component, identifying state information associated with at least one slot in source code associated with the object component, determining at least one subcomponent corresponding to at least one slot based on the state information, and generating an object component including at least one subcomponent based on the hierarchical structure of the object component.
本發明之第3方面之記錄媒體可為記錄有用以於電腦中執行產生UI組件之方法之程式之非暫時性電腦可讀記錄媒體。 The recording medium of the third aspect of the present invention may be a non-transitory computer-readable recording medium recording a program for executing a method for generating a UI component in a computer.
根據本說明書之實施例,電子裝置可在與對象組件相關之原始碼中識別與對象組件之至少一個槽相關之狀態資訊。電子裝置可利用狀態資訊來確定與至少一個槽對應之至少一個子組件,基於對象組件之階層式結構而產生至少包括子組件之對象組件。據此,當預設版本之對象組件與特定子組件產生不同版本之對象組件時,即便僅修正與對象組件相關之原始碼的與特定子組件相關之欄位,電子裝置可重新使用特定子組件以外之其他子組件,有效率地產生不同版本之對象組件。 According to an embodiment of the present specification, an electronic device can identify state information related to at least one slot of an object component in source code related to the object component. The electronic device can use the state information to determine at least one subcomponent corresponding to at least one slot, and generate an object component including at least subcomponents based on the hierarchical structure of the object component. Accordingly, when a default version of an object component and a specific subcomponent generate different versions of an object component, even if only the fields related to the specific subcomponent of the source code related to the object component are modified, the electronic device can reuse other subcomponents other than the specific subcomponent to efficiently generate different versions of the object component.
本發明之效果並不限制於以上提及之效果,本技術領域之普通技術人員可根據申請專利範圍之記載而明確地理解未提及之其他效果。 The effects of the present invention are not limited to the effects mentioned above. Ordinary technicians in this technical field can clearly understand other effects not mentioned based on the description of the scope of the patent application.
200:對象組件 200: Object component
210:第1槽 210: Slot 1
220:第2槽 220: Slot 2
230:第3槽 230: Slot 3
240:第4槽 240: Slot 4
300:狀態資訊樹 300: Status information tree
310:第2類型之狀態資訊 310: Type 2 status information
311:狀態資訊 311: Status information
312:狀態資訊 312: Status information
313:狀態資訊 313: Status information
314:狀態資訊 314: Status information
320:對象組件之階層 320: Hierarchy of object components
321:影像相關子組件 321: Image-related subcomponents
322:文本相關子組件 322: Text related subcomponents
323:文本相關子組件 323: Text related subcomponents
324:按鍵相關子組件 324:Key-related subcomponents
400:原始碼 400: Source code
401:第1欄位 401: Field 1
402:第2欄位 402: Field 2
410:狀態資訊樹 410: Status information tree
411:第2類型之狀態資訊 411: Type 2 status information
413:狀態資訊 413: Status information
414:狀態資訊 414: Status information
415:狀態資訊 415: Status information
500:原始碼 500: Source code
501:第1欄位 501: Field 1
502:第2欄位 502: Field 2
503:子欄位 503: Subfield
504:子欄位 504: Subfield
505:子欄位 505: Subfield
510:狀態資訊樹 510: Status information tree
511:第2類型之狀態資訊 511: Type 2 status information
513:狀態資訊 513: Status information
514:狀態資訊 514: Status information
515:狀態資訊 515: Status information
600:對象組件 600: Object component
610:第1槽 610: Slot 1
620:第2槽 620: Slot 2
630:第3槽 630: Slot 3
640:第4槽 640: Slot 4
700:原始碼 700: Source code
701:第1子欄位 701: 1st subfield
702:第2子欄位 702: Second subfield
710:狀態資訊樹 710: Status information tree
711:狀態資訊 711: Status information
712:狀態資訊 712: Status information
800:對象組件 800: Object component
810:第1槽 810: Slot 1
820:第2槽 820: Slot 2
830:第3槽 830: Slot 3
840:第4槽 840: Slot 4
900:介面 900: Interface
901:第1區域 901: Area 1
902:第2區域 902: Area 2
910:原始碼 910: Source code
911:第1欄位 911: Field 1
920:原始碼 920: Source code
921:第1欄位 921: Field 1
1000:對象組件 1000: Object component
1050:對象組件 1050: Object component
1100:電子裝置 1100: Electronic devices
1110:處理器 1110: Processor
1120:儲存器 1120: Storage
S110:步驟 S110: Step
S120:步驟 S120: Step
S130:步驟 S130: Step
S140:步驟 S140: Step
S150:步驟 S150: Step
圖1係表明電子裝置產生UI組件之方法之流程圖。 FIG1 is a flow chart showing a method for generating UI components in an electronic device.
圖2係用以說明一實施例之對象組件之圖。 FIG. 2 is a diagram for illustrating an object component of an embodiment.
圖3係繼圖2之後,用以說明基於與一實施例之槽相關之狀態資訊來產生包括至少一個子組件之對象組件之方法的圖,該至少一個子組件滿足對象組件之階層式結構。 FIG. 3 is a diagram subsequent to FIG. 2 for illustrating a method of generating an object component including at least one subcomponent based on state information associated with a slot of an embodiment, wherein the at least one subcomponent satisfies the hierarchical structure of the object component.
圖4係用以說明一實施例之於原始碼中識別與至少一個槽相關之狀態資訊之方法的圖。 FIG. 4 is a diagram for illustrating a method for identifying state information associated with at least one slot in source code according to an embodiment.
圖5係用以說明一實施例之於原始碼中識別與至少一個槽相關之狀態資訊之方法的圖。 FIG. 5 is a diagram for illustrating a method for identifying state information associated with at least one slot in source code according to an embodiment.
圖6係用以說明圖4及圖5之一實施例之新版本之對象組件的圖。 FIG. 6 is a diagram for illustrating a new version of an object component of an embodiment of FIG. 4 and FIG. 5 .
圖7係用以說明一實施例之於原始碼中識別與至少一個槽相關之狀態 資訊之方法的圖。 FIG. 7 is a diagram for illustrating a method for identifying state information associated with at least one slot in source code according to an embodiment.
圖8係繼圖7之後,用以說明一實施例之版本之對象組件之圖。 FIG8 is a diagram of an object component used to illustrate a version of an embodiment, following FIG7.
圖9係用以說明藉由介面來識別與至少一個槽相關之狀態資訊之方法之圖。 FIG. 9 is a diagram for explaining a method for identifying status information associated with at least one slot through an interface.
圖10係繼圖9之後,用以說明一實施例之對象組件之圖。 FIG. 10 is a diagram following FIG. 9 and is used to illustrate an object component of an embodiment.
圖11係將一實施例之用以產生UI組件之電子裝置圖示化之方塊圖。 FIG. 11 is a block diagram illustrating an electronic device for generating a UI component according to an embodiment.
實施例中使用之用語係考慮本發明中之功能而儘可能地選擇目前廣泛使用之普通用語,但會根據本領域之技術人員之意圖或先例、新技術之出現等而有所不同。又,於特定之情形時,亦存在申請人任意選擇之用語,於該情形時,將在相應之說明部分詳細地記載其含義。因此,本發明中使用之用語應基於該用語所具有之含義及本發明之整體內容來定義,而並非簡單地基於用語之名稱來定義。 The terms used in the embodiments are common terms that are currently widely used as much as possible, considering the functions of the invention, but they may vary according to the intentions of technicians in this field or precedents, the emergence of new technologies, etc. In addition, in specific cases, there are terms that the applicant chooses arbitrarily. In such cases, their meanings will be described in detail in the corresponding description. Therefore, the terms used in the invention should be defined based on the meaning of the terms and the overall content of the invention, rather than simply based on the names of the terms.
於整篇說明書中提及某個部分「包括」某個構成要素時,意味著若無特別相反之記載,則不排除其他構成要素,而是可進而包括其他構成要素。又,說明書中記載之「…部」、「…模組」等用語係指對至少一種功能或動作進行處理之單元,其可由硬體或軟體實現,或者由硬體與軟體之組合來實現。 When a part is mentioned in the entire manual as "including" a certain component, it means that other components are not excluded unless otherwise stated, but may further include other components. In addition, the terms "...part" and "...module" in the manual refer to a unit that processes at least one function or action, which can be implemented by hardware or software, or by a combination of hardware and software.
整篇說明書中記載之「a、b及c中之至少一者」之表述可包括「單獨之a」、「單獨之b」、「單獨之c」、「a及b」、「a及c」、「b及c」或「a、b、c三者」。 The expression "at least one of a, b and c" recorded in the entire manual may include "a alone", "b alone", "c alone", "a and b", "a and c", "b and c" or "a, b, c".
以下提及之「終端」可由電腦或攜帶用終端來實現,該電腦或攜帶用終端可藉由網路而與伺服器或其他終端連接。此處,電腦例如 包括裝載有網頁瀏覽器(WEB Browser)之筆記型電腦、桌上型電腦(desktop)、膝上型電腦(laptop)等,攜帶用終端作為確保攜帶性及移動性之無線通訊裝置,例如可包括IMT(International Mobile Telecommunication,國際行動通訊)、CDMA(Code Division Multiple Access,分碼多重存取)、W-CDMA(W-Code Division Multiple Access,寬頻分碼多重存取)、LTE(Long Term Evolution,長期演進)等通訊終端、如智慧型手機、平板電腦等所有類型之手持式(Handheld)無線通訊裝置。 The "terminal" mentioned below can be realized by a computer or a portable terminal, which can be connected to a server or other terminals via a network. Here, the computer includes, for example, a notebook computer, a desktop computer, a laptop computer, etc. equipped with a web browser (WEB Browser), and the portable terminal is a wireless communication device that ensures portability and mobility, for example, it can include IMT (International Mobile Telecommunication), CDMA (Code Division Multiple Access), W-CDMA (W-Code Division Multiple Access), LTE (Long Term Evolution) and other communication terminals, such as smart phones, tablet computers and all types of handheld wireless communication devices.
以下,參照附圖,對本發明之實施例進行詳細說明,以使本發明所屬之技術領域內具有常識者可容易地實施。然而,本發明能夠以各種不同形態實現,並不限定於此處說明之實施例。 Below, with reference to the attached drawings, the embodiments of the present invention are described in detail so that those with common sense in the technical field to which the present invention belongs can easily implement it. However, the present invention can be implemented in various forms and is not limited to the embodiments described here.
於對實施例進行說明時,省略本發明所屬之技術領域內熟知且與本發明無直接關聯之技術內容之說明。其原因在於:藉由省略多餘之說明而清晰地傳達本發明之主旨,以避免混淆本發明之主旨。 When describing the embodiments, the description of the technical contents that are well known in the technical field to which the present invention belongs and are not directly related to the present invention is omitted. The reason is: by omitting redundant descriptions, the main idea of the present invention is clearly conveyed to avoid confusion of the main idea of the present invention.
出於相同之原因,於附圖中誇張、省略或概略地表示一部分構成要素。又,各構成要素之尺寸並非完全反映實際尺寸。對各圖式中相同或對應之構成要素賦予相同之參照符號。 For the same reason, some components are exaggerated, omitted or roughly represented in the attached drawings. In addition, the size of each component does not fully reflect the actual size. The same reference symbols are given to the same or corresponding components in each drawing.
若參照附圖及後文詳述之實施例,則可明確本發明之優點及特徵、以及實現該等優點及特徵之方法。然而,本發明並不限定於以下所揭示之實施例,亦能夠以各種不同之形態實現,本實施例只是為了完整地揭示本發明並將發明之範疇完整地告知本發明所屬之技術領域內具有常識者而提供,本發明僅由發明申請專利範圍來定義。於整篇說明書中,相同之參照符號指相同之構成要素。 If you refer to the attached figures and the embodiments described in detail below, you can clearly understand the advantages and features of the present invention, as well as the methods for realizing such advantages and features. However, the present invention is not limited to the embodiments disclosed below, and can also be implemented in various different forms. This embodiment is only provided to fully disclose the present invention and fully inform the scope of the invention to those with common knowledge in the technical field to which the present invention belongs. The present invention is only defined by the scope of the invention patent application. Throughout the specification, the same reference symbols refer to the same constituent elements.
此時,應理解,處理流程圖之各方塊與流程圖之組合可藉由電腦程式指令而實行。該等電腦程式指令可裝載於通用電腦、特殊用電腦或其他可編程資料處理設備之處理器,因此藉由電腦或其他可編程資料處理設備之處理器而實行之該等指令會產生實行流程圖之方塊中說明之功能的方法。為了以特定方式實現功能,該等電腦程式指令可儲存於可面向電腦或其他可編程資料處理設備之電腦可用或電腦可讀記憶體,故儲存於該電腦可用或電腦可讀記憶體中之指令亦可產生包含如下指令方法的製造品項,該指令方法實行流程圖之方塊中說明之功能。電腦程式指令亦可裝載於電腦或其他可編程資料處理設備上,因此於電腦或其他可編程資料處理設備上實行一系列之動作步驟而產生藉由電腦執行之流程,從而由電腦或其他可編程資料處理設備實行之指令亦可提供用以執行流程圖之方塊中說明之功能的步驟。 At this point, it should be understood that the combination of each block of the process flow chart and the flow chart can be implemented by computer program instructions. Such computer program instructions can be loaded on a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that such instructions implemented by the processor of the computer or other programmable data processing device will produce a method for implementing the functions described in the blocks of the flow chart. In order to implement the functions in a specific manner, such computer program instructions can be stored in a computer-usable or computer-readable memory that can be oriented to a computer or other programmable data processing device, so that the instructions stored in the computer-usable or computer-readable memory can also produce a manufactured item that includes the following instruction method, which implements the functions described in the blocks of the flow chart. Computer program instructions may also be loaded onto a computer or other programmable data processing device, thereby executing a series of action steps on the computer or other programmable data processing device to generate a process executed by the computer, and the instructions executed by the computer or other programmable data processing device may also provide steps for executing the functions described in the blocks of the flowchart.
又,各方塊可表示包括用以執行特定之邏輯功能之一個以上之可執行指令的模組、片段或代碼之一部分。又,應注意於若干替代實施例中,亦可不按順序產生方塊中提及之功能。例如,相繼表示之兩個方塊實質上既可同時實行,亦可偶爾根據對應之功能而按照相反之順序實行。 Furthermore, each block may represent a module, a fragment, or a portion of code that includes one or more executable instructions for performing a specific logical function. Furthermore, it should be noted that in some alternative embodiments, the functions mentioned in the blocks may not be generated in sequence. For example, two blocks represented in succession may be executed simultaneously or in reverse order depending on the corresponding functions.
以下,參照附圖,對本發明之實施例進行詳細地說明。 Below, with reference to the attached drawings, the practical examples of the present invention are described in detail.
圖1係表明電子裝置產生UI組件之方法之流程圖。 Figure 1 is a flow chart showing a method for generating UI components in an electronic device.
參照圖1,可清楚地理解,電子裝置產生UI組件之各動作於本發明所屬技術領域中具有常識者明確理解之範圍內可變更、置換一部分動作或變更動作間之一部分順序。 Referring to Figure 1, it can be clearly understood that the actions of the electronic device to generate the UI component can be changed, part of the actions can be replaced, or part of the order between the actions can be changed within the scope of the technical field to which the present invention belongs.
於步驟S110中,電子裝置可確認對象組件。 In step S110, the electronic device can confirm the target component.
於本發明中,組件可為構成網頁或行動頁面之單位。組件可分類為原子組件(atomic component)及合成組件(composite component)。基於組件之階層式結構而被確認為無下位級別之組件的組件可被分類為原子組件。原子組件可為構成網頁或行動頁面之最小單位。又,基於組件之階層式結構而被確認為包括下位級別之組件的組件可被識別為合成組件。即,合成組件可為以下位級別之每一組件為一個要素而構成為階層式之組件。於本發明中,下位級別之組件可指子組件。 In the present invention, a component may be a unit constituting a web page or a mobile page. Components may be classified into atomic components and composite components. Components that are identified as components without lower-level components based on the hierarchical structure of components may be classified as atomic components. Atomic components may be the smallest unit constituting a web page or a mobile page. Furthermore, components that are identified as components including lower-level components based on the hierarchical structure of components may be identified as composite components. That is, a composite component may be a component that is hierarchically constructed with each lower-level component as an element. In the present invention, lower-level components may refer to subcomponents.
根據一實施例,電子裝置可識別成為組件產生之對象的對象組件。此處,對象組件係以下位級別之每一組件為一個要素而構成為階層式之組件,可為合成組件。 According to one embodiment, an electronic device can identify an object component that is an object generated by a component. Here, the object component is a hierarchical component that is composed of each component at a lower level as an element, and can be a composite component.
於步驟S120中,電子裝置可確認對象組件之至少一個槽。 In step S120, the electronic device can identify at least one slot of the target component.
於本發明中,槽可為構成合成組件之子組件之占位符(placeholder)。合成組件中是否存在槽可根據產生UI組件時是否支持用戶轉換而有所不同,可於電子裝置中預設。支持用戶轉換之合成組件可包括作為子組件之占位符之槽。與現有服務之UI組件對應之預設子組件可位於合成組件各者之槽。包括預設子組件之合成組件可為預設版本之合成組件。但是,預設子組件僅可位於槽中,而可位於槽中之組件不限制於預設子組件。例如,與預設子組件不同之子組件可位於槽中。又,子組件亦可不位於槽中。此時,合成組件之相應槽可為空(void)區域。 In the present invention, a slot may be a placeholder for a subcomponent constituting a composite component. Whether a slot exists in a composite component may vary depending on whether user conversion is supported when the UI component is generated, and may be preset in the electronic device. A composite component that supports user conversion may include a slot as a placeholder for a subcomponent. A default subcomponent corresponding to a UI component of an existing service may be located in a slot of each composite component. A composite component including a default subcomponent may be a composite component of a default version. However, a default subcomponent may only be located in a slot, and components that may be located in a slot are not limited to default subcomponents. For example, a subcomponent different from a default subcomponent may be located in a slot. In addition, a subcomponent may not be located in a slot. At this time, the corresponding slot of the composite component may be a void area.
根據一實施例,電子裝置可確認至少一個子槽,該個子槽係係合成組件之對象組件之占位符。更具體而言,電子裝置可基於對象組件之階層式結構,確認作為對象組件之占位符之至少一個子槽。此處,至少一個槽之各者可為原子組件,但不侷限於此。至少一個槽中之至少一部 分可為合成組件。即,對象組件之子組件不僅可為其與對象組件之關係中之下位級別之子組件,亦可為合成組件。 According to one embodiment, the electronic device can identify at least one subslot, which is a placeholder for an object component of a composite component. More specifically, the electronic device can identify at least one subslot as a placeholder for an object component based on a hierarchical structure of the object component. Here, each of the at least one slot can be an atomic component, but is not limited thereto. At least a portion of at least one slot can be a composite component. That is, a subcomponent of an object component can be not only a subcomponent of a lower level in its relationship with the object component, but also a composite component.
於步驟S130中,電子裝置可在與對象組件相關之原始碼中,識別與至少一個槽相關之狀態資訊。 In step S130, the electronic device may identify status information associated with at least one slot in source code associated with the object component.
於本發明中,狀態資訊可為用以設置位於槽中之子組件之特徵之資訊。更具體而言,子組件之特徵可為終端所顯示之UI組件之UI方面之詳細特徵,狀態資訊可為與渲染UI組件時利用之特徵對應之參數值。例如,狀態資訊可包括組件之大小之狀態資訊、組件之背景及文本之色調之狀態資訊、組件之文本之對準之狀態資訊、組件之文本間之間隔之狀態資訊、組件之圓弧半徑(corner radius)之狀態資訊中之至少一者。 In the present invention, the state information may be information for setting the characteristics of the subcomponent located in the slot. More specifically, the characteristics of the subcomponent may be detailed characteristics of the UI aspect of the UI component displayed by the terminal, and the state information may be a parameter value corresponding to the characteristics used when rendering the UI component. For example, the state information may include at least one of the state information of the size of the component, the state information of the color tone of the background and text of the component, the state information of the alignment of the text of the component, the state information of the spacing between the texts of the component, and the state information of the corner radius of the component.
根據一實施例,藉由電子裝置而識別之與至少一個槽相關之狀態資訊可劃分為:第2類型之狀態資訊,其設置由至少一個槽構成之對象組件整體角度上之特徵;及第1類型之狀態資訊,其設置至少一個槽各者之特徵。電子裝置可識別:第2類型之狀態資訊,其在與對象組件相關之原始碼中設置對象組件自身之特徵;及第1類型狀態資訊,其設置構成對象組件之至少一個槽各者之特徵。此處,原始碼可為xml形式之原始碼或json形式之原始碼。根據另一實施例,電子裝置可基於與藉由介面而確認到之對象組件相關之設置,識別與至少一個槽相關之狀態資訊。此處,介面係用以設置與至少一個槽相關之狀態資訊之介面,可為figma。以下,將詳細說明於介面或原始碼中識別與至少一個槽相關之狀態資訊之具體方法。 According to one embodiment, the status information associated with at least one slot identified by the electronic device can be divided into: the second type of status information, which sets the characteristics of the object component composed of at least one slot from an overall perspective; and the first type of status information, which sets the characteristics of each of the at least one slot. The electronic device can identify: the second type of status information, which sets the characteristics of the object component itself in the source code associated with the object component; and the first type of status information, which sets the characteristics of each of the at least one slot constituting the object component. Here, the source code can be a source code in the form of xml or a source code in the form of json. According to another embodiment, the electronic device can identify the status information associated with at least one slot based on the settings associated with the object component confirmed through the interface. Here, the interface is an interface for setting status information associated with at least one slot, which can be a figma. The following will describe in detail the specific method of identifying the status information associated with at least one slot in the interface or source code.
於步驟S140中,電子裝置可根據狀態資訊,確定與至少一個槽對應之至少一個子組件。 In step S140, the electronic device can determine at least one subassembly corresponding to at least one slot based on the status information.
根據一實施例,電子裝置可識別:第2類型之狀態資訊,其設置對象組件自身之特徵;及至少一個槽各者之子組件,該至少一個槽對應於第1類型狀態資訊,該第1類型狀態資訊設置構成對象組件之至少一個槽各者之特徵。 According to one embodiment, the electronic device can identify: the second type of status information, which sets the characteristics of the object component itself; and the subcomponents of at least one slot, the at least one slot corresponding to the first type of status information, the first type of status information sets the characteristics of at least one slot constituting the object component.
當所識別之狀態資訊係與槽對應之預設狀態資訊時,位於槽中之子組件可確定為預設組件。但是,預設子組件僅可位於槽中,而可位於槽中之組件不限制於預設子組件。即,當根據業務決策而產生新版本之對象組件時,其他類型之子組件可位於槽中,而非預設子組件。此時,電子裝置可將槽之狀態資訊識別為與其他類型之子組件對應之狀態資訊,而非預設狀態資訊。電子裝置可將與槽對應之子組件確定為其他類型之子組件,而非預設子組件。 When the identified status information is the default status information corresponding to the slot, the subcomponent located in the slot can be determined as the default component. However, the default subcomponent can only be located in the slot, and the components that can be located in the slot are not limited to the default subcomponents. That is, when a new version of an object component is generated according to a business decision, other types of subcomponents can be located in the slot instead of the default subcomponent. At this time, the electronic device can identify the status information of the slot as the status information corresponding to the other types of subcomponents, instead of the default status information. The electronic device can determine the subcomponent corresponding to the slot as the other types of subcomponents, instead of the default subcomponent.
於步驟S150中,電子裝置可基於對象組件之階層式結構,產生包括至少一個子組件之對象組件。 In step S150, the electronic device may generate an object component including at least one subcomponent based on the hierarchical structure of the object component.
根據一實施例,電子裝置可藉由組合(combine)或組裝(aggrcgate)至少一個子組件來產生對象組件,以滿足對象組件之階層式結構。預設版本之對象組件可包括與預設狀態資訊對應之預設子組件,該預設狀態資訊與至少一個槽相關,該至少一個槽構成對象組件。與此相關,當與各對象組件之槽對應之預設子組件被定位時,電子裝置可識別包括預設子組件之預設版本之對象組件。藉由電子裝置而識別之對象組件可為預設版本之對象組件,但不侷限於此。當根據業務決策而產生新版本之對象組件時,其他類型之子組件可位於槽中,而非預設子組件。此時,電子裝置可識別新版本之對象組件,該新版本之對象組件係於相應槽中定位有與預設版本之對象組件不同之其他類型之子組件。 According to one embodiment, an electronic device may generate an object component by combining or aggrcgate at least one subcomponent to satisfy a hierarchical structure of the object component. A default version of an object component may include a default subcomponent corresponding to default state information, the default state information being associated with at least one slot that constitutes the object component. In connection therewith, when a default subcomponent corresponding to a slot of each object component is located, the electronic device may identify an object component of a default version including a default subcomponent. The object component identified by the electronic device may be an object component of a default version, but is not limited thereto. When a new version of an object component is generated based on a business decision, other types of subcomponents may be located in the slot instead of the default subcomponent. At this time, the electronic device can recognize the new version of the object component, which has a sub-component of a different type than the default version of the object component located in the corresponding slot.
圖2係用以說明一實施例之對象組件之圖。 FIG. 2 is a diagram for illustrating an object component of an embodiment.
對象組件可對應於構成網頁或行動頁面之介面工具集中之一者。參照圖2,對象組件200可為與訊息框相關之組件,該訊息框係藉由彈出頁面而向利用計算器件之用戶傳輸資訊或提供問題。又,對象組件200可為預設版本之對象組件。但是,對象組件不侷限於訊息框相關組件,對象組件可為如文本按鍵、容器按鍵之UI元素之組件。 The object component may correspond to one of the interface tool sets constituting a web page or a mobile page. Referring to FIG. 2 , the object component 200 may be a component related to a message box, which transmits information or provides questions to a user using a computing device by popping up a page. In addition, the object component 200 may be a default version of the object component. However, the object component is not limited to a message box-related component, and the object component may be a component of a UI element such as a text button or a container button.
對象組件200係綠色(green)色調之背景之組件,可劃分為至少一個子槽。參照圖2,對象組件200係合成組件,可包括第1槽210、第2槽220、第3槽230及第4槽240。 The object component 200 is a component with a green background, which can be divided into at least one sub-slot. Referring to FIG. 2 , the object component 200 is a composite component, which can include a first slot 210, a second slot 220, a third slot 230, and a fourth slot 240.
第1槽210可為包括影像或圖標之開始槽(start slot)。更具體而言,與第1槽210對應之預設子組件可為於深綠色(deep green)色調之圓中刻有字母C之圖標。更具體而言,圖標內之字母C之色調可與作為對象組件200之背景色調之綠色(green)相同。當電子裝置於原始碼中確定與第1槽210對應之預設子組件時,可將與第1槽210對應之預設狀態資訊識別為用以設置在深綠色(deep green)色調之圓中刻有字母C之圖標之狀態資訊。但是,與圖2之第1槽210對應之子組件不侷限於預設子組件,與第1槽210對應之子組件可為其他類型之子組件,而非預設子組件。例如,與第1槽210對應之子組件可為文本相關子組件。 The first slot 210 may be a start slot including an image or an icon. More specifically, the default sub-assembly corresponding to the first slot 210 may be an icon with the letter C engraved in a circle with a deep green hue. More specifically, the hue of the letter C in the icon may be the same as the green color that is the background hue of the object assembly 200. When the electronic device determines the default sub-assembly corresponding to the first slot 210 in the source code, the default state information corresponding to the first slot 210 may be identified as the state information for setting the icon with the letter C engraved in a circle with a deep green hue. However, the sub-assembly corresponding to the first slot 210 of FIG. 2 is not limited to the default sub-assembly, and the sub-assembly corresponding to the first slot 210 may be a sub-assembly of another type, rather than a default sub-assembly. For example, the subcomponent corresponding to the first slot 210 may be a text-related subcomponent.
第2槽220可為包括文本之內容槽(content slot)。更具體而言,與第2槽220對應之預設子組件可包括文本「訊息框v3尚不支持開發代碼。若欲利用RDS(Relational Database Service,關係型資料庫服務)代碼,請使用V2。」。當電子裝置於原始碼中確定與第2槽220對應之預設子組件時,可將與第2槽220對應之預設狀態資訊識別為用以設置文本「訊 息框v3尚不支持開發代碼。若欲利用RDS代碼,請使用V2。」之狀態資訊。但是,與圖2之第2槽220對應之子組件不侷限於預設子組件,與第2槽220對應之子組件可為其他類型之子組件,而非預設子組件。例如,與第2槽220對應之子組件可為影像或圖標相關子組件。 The second slot 220 may be a content slot including text. More specifically, the default subcomponent corresponding to the second slot 220 may include the text "Message box v3 does not support development code yet. If you want to use RDS (Relational Database Service) code, please use V2." When the electronic device determines the default subcomponent corresponding to the second slot 220 in the source code, the default status information corresponding to the second slot 220 may be identified as the status information for setting the text "Message box v3 does not support development code yet. If you want to use RDS code, please use V2." However, the subcomponent corresponding to the second slot 220 of FIG. 2 is not limited to the default subcomponent, and the subcomponent corresponding to the second slot 220 may be a subcomponent of another type, rather than a default subcomponent. For example, the subcomponent corresponding to the second slot 220 may be an image or icon related subcomponent.
第3槽230可為包括文本之底槽(bottom slot)。更具體而言,與第3槽230對應之預設子組件可包括文本「按鍵」及與文本相關之圖標。更具體而言,文本及與文本相關之圖標之色調可為藍色(blue)。當電子裝置於原始碼中確定與第3槽230對應之預設子組件時,可將與第3槽230對應之預設狀態資訊識別為用以設置文本「按鍵」及與文本相關之圖標之狀態資訊。但是,與圖2之第3槽230對應之子組件不侷限於預設子組件,與第3槽230對應之子組件可為其他類型之子組件,而非預設子組件。例如,與第3槽230對應之子組件可為影像相關圖標。或,可不單獨設置與第3槽230對應之狀態資訊。此時,第3槽230可為空區域。 The third slot 230 may be a bottom slot including text. More specifically, the default sub-component corresponding to the third slot 230 may include the text "button" and icons associated with the text. More specifically, the color tone of the text and the icons associated with the text may be blue. When the electronic device determines the default sub-component corresponding to the third slot 230 in the source code, the default state information corresponding to the third slot 230 may be identified as state information for setting the text "button" and icons associated with the text. However, the sub-component corresponding to the third slot 230 of Figure 2 is not limited to the default sub-component, and the sub-component corresponding to the third slot 230 may be other types of sub-components instead of the default sub-component. For example, the sub-component corresponding to the third slot 230 may be an image-related icon. Alternatively, the status information corresponding to the third slot 230 may not be set separately. In this case, the third slot 230 may be an empty area.
第4槽240可為包括按鍵之結束槽(end slot)。更具體而言,與第4槽240對應之預設子組件可包括與按鍵相關之箭頭形狀之按鍵圖標。當電子裝置於原始碼中確定與第4槽240對應之預設子組件時,可將與第4槽240對應之預設狀態資訊識別為用以設置箭頭形狀之按鍵圖標之狀態資訊。但是,與第4槽240對應之子組件不侷限於預設子組件,與第4槽240對應之子組件可為其他類型之子組件,而非預設子組件。例如,與第4槽240對應之子組件可為文本相關圖標。 The fourth slot 240 may be an end slot including a button. More specifically, the default subassembly corresponding to the fourth slot 240 may include an arrow-shaped button icon associated with the button. When the electronic device determines the default subassembly corresponding to the fourth slot 240 in the source code, the default state information corresponding to the fourth slot 240 may be identified as state information for setting the arrow-shaped button icon. However, the subassembly corresponding to the fourth slot 240 is not limited to the default subassembly, and the subassembly corresponding to the fourth slot 240 may be a subassembly of another type, rather than a default subassembly. For example, the subassembly corresponding to the fourth slot 240 may be a text-related icon.
圖3係繼圖2之後,用以說明基於與一實施例之槽相關之狀態資訊來產生包括至少一個子組件之對象組件之方法的圖,該至少一個對象組件滿足對象組件之階層式結構。 FIG. 3 is a diagram subsequent to FIG. 2 for illustrating a method of generating an object component including at least one subcomponent based on state information associated with a slot of an embodiment, wherein the at least one object component satisfies a hierarchical structure of the object component.
根據一實施例,電子裝置可在與對象組件相關之原始碼或與狀態資訊之設置相關之介面中,識別與構成對象組件之至少一個槽相關之狀態資訊。與對象組件相關之狀態資訊樹300可以階層之方式表示與對象組件相關之狀態資訊。狀態資訊樹300所顯示之與對象組件相關之狀態資訊可包括:第2類型之狀態資訊310,其設置對象組件整體角度上之特徵;及第1類型之狀態資訊,其設置至少一個槽各者之特徵。 According to one embodiment, an electronic device can identify state information related to at least one slot constituting an object component in source code related to the object component or in an interface related to setting of state information. The state information tree 300 related to the object component can represent the state information related to the object component in a hierarchical manner. The state information related to the object component displayed by the state information tree 300 may include: the second type of state information 310, which sets the characteristics of the object component from an overall perspective; and the first type of state information, which sets the characteristics of each of at least one slot.
第2類型之狀態資訊310係用以設置對象組件自身之特徵之資訊,可包括對象組件之背景色調資訊、對象組件之大小資訊。參照圖2,對象組件之背景色調資訊可為綠色(green),對象組件之大小資訊為M。 The second type of status information 310 is used to set the characteristics of the object component itself, which may include the background color information of the object component and the size information of the object component. Referring to FIG. 2 , the background color information of the object component may be green, and the size information of the object component may be M.
第1類型之狀態資訊係設置至少一個槽各者之特徵之狀態資訊,可包括第1槽210之狀態資訊311、第2槽220之狀態資訊312、第3槽230之狀態資訊313及第4槽240之狀態資訊314。 The first type of status information is status information that sets the characteristics of at least one slot, and may include status information 311 of the first slot 210, status information 312 of the second slot 220, status information 313 of the third slot 230, and status information 314 of the fourth slot 240.
第1槽210之狀態資訊311係用以設置在深綠色(deep green)色調之圓(circle)中刻有字母C之圖標之資訊,可包括與圖標相關之資料之資訊、作為圖標之圓之大小資訊及字母C之色調資訊、字型大小資訊。第2槽220之狀態資訊312作為用以設置文本「訊息框v3尚不支持開發代碼。若欲利用RDS代碼,請使用V2。」之資訊,可包括文本資料之資訊、文本之字型大小資訊及文本之字型色調資訊。第3槽230之狀態資訊313係用以設置文本「按鍵」及與文本相關之箭頭形狀之圖標之資訊,可包括與文本相關之資料資訊、文本之字型大小資訊、文本之字型色調資訊。又,第3槽230之狀態資訊313可包括與箭頭形狀之圖標相關之資料資訊、圖標之色調資訊。第4槽240之狀態資訊314係用以設置箭頭形狀之按鍵圖標之資 訊,可包括與圖標相關之資料資訊、圖標之大小資訊及圖標之色調資訊。 The state information 311 of the first slot 210 is used to set the information of the icon with the letter C engraved in a circle of deep green hue, and may include information of data related to the icon, size information of the circle of the icon, hue information of the letter C, and font size information. The state information 312 of the second slot 220 is used to set the text "Message box v3 does not support development code yet. If you want to use RDS code, please use V2." and may include information of text data, font size information of the text, and font hue information of the text. The state information 313 of the third slot 230 is used to set the text "button" and the information of the arrow-shaped icon related to the text, and may include information of data related to the text, font size information of the text, and font hue information of the text. In addition, the state information 313 of the third slot 230 may include data information related to the arrow-shaped icon and the color tone information of the icon. The state information 314 of the fourth slot 240 is used to set the information of the arrow-shaped button icon, and may include data information related to the icon, the size information of the icon, and the color tone information of the icon.
根據一實施例,電子裝置可根據第2類型之狀態資訊310及第1類型之狀態資訊來識別與至少一個槽之各者對應之資料,基於與對象組件相關之狀態資訊來渲染至少一個子組件各者之資料以滿足階層式結構,藉此可產生第1版本之對象組件。更具體而言,電子裝置可藉由渲染邏輯來對至少一個子組件各者之資料實行渲染,從而產生對象組件。 According to one embodiment, the electronic device can identify data corresponding to each of at least one slot according to the second type of state information 310 and the first type of state information, and render the data of each of at least one subcomponent based on the state information related to the object component to satisfy the hierarchical structure, thereby generating the first version of the object component. More specifically, the electronic device can render the data of each of at least one subcomponent through rendering logic, thereby generating the object component.
參照對象組件之階層(hierarchy)320,與狀態資訊311對應之影像相關子組件321可位於對象組件之第1槽210,與狀態資訊312對應之文本相關子組件322可位於對象組件之第2槽220,與狀態資訊313對應之文本相關子組件323可位於對象組件之第3槽230,與狀態資訊314對應之按鍵相關子組件324可位於對象組件之第4槽240。即,藉由電子裝置而產生之對象組件可依存於狀態資訊樹300或指向(oriented)狀態資訊樹300,可為與狀態資訊樹300一對一對應之關係。 Referring to the hierarchy 320 of the object component, the image-related subcomponent 321 corresponding to the state information 311 may be located in the first slot 210 of the object component, the text-related subcomponent 322 corresponding to the state information 312 may be located in the second slot 220 of the object component, the text-related subcomponent 323 corresponding to the state information 313 may be located in the third slot 230 of the object component, and the key-related subcomponent 324 corresponding to the state information 314 may be located in the fourth slot 240 of the object component. That is, the object component generated by the electronic device may depend on the state information tree 300 or be oriented to the state information tree 300, and may be in a one-to-one correspondence relationship with the state information tree 300.
根據一實施例,與特定槽對應之狀態資訊可被設置為與狀態資訊樹300不同,且與除特定槽之外之槽對應之狀態資訊被設置為與狀態資訊樹300相同,以產生圖2之預設版本之對象組件200與位於特定槽之子組件不同之版本之對象組件。即,可於產生不同版本之對象組件時按原樣重新使用位於除特定槽之外之槽之子組件。開發者可於原始碼中追加與狀態資訊相關之欄位,該狀態資訊對應於特定槽,重新使用與狀態資訊相關之欄位,該狀態資訊對應於除特定槽之外之槽。即,可最小化重複之工作,如開發者編寫不必要之原始碼。又,即便係由設計師更新之子組件,若子組件所位於之槽之狀態資訊無變更,則開發者可直接利用更新之子組件,而無需額外工作。 According to one embodiment, the state information corresponding to the specific slot can be set to be different from the state information tree 300, and the state information corresponding to the slot other than the specific slot is set to be the same as the state information tree 300, so as to generate the object component 200 of the default version of FIG. 2 and the object component of a different version of the subcomponent located in the specific slot. That is, the subcomponent located in the slot other than the specific slot can be reused as it is when generating different versions of the object component. The developer can add a field related to the state information corresponding to the specific slot in the source code, and reuse the field related to the state information corresponding to the slot other than the specific slot. That is, it is possible to minimize repeated work, such as the developer writing unnecessary source code. Furthermore, even if a sub-assembly is updated by a designer, if the status information of the slot where the sub-assembly is located has not changed, the developer can directly use the updated sub-assembly without any additional work.
圖4係用以說明一實施例之於原始碼中識別與至少一個槽相關之狀態資訊之方法的圖。 FIG. 4 is a diagram for illustrating a method for identifying state information associated with at least one slot in source code according to an embodiment.
原始碼400可包括與第1類型之狀態資訊相關之第1欄位401及與第2類型之狀態資訊相關之第2欄位402。此處,原始碼可為用以產生與圖2之預設版本之對象組件不同之版本之對象組件的原始碼。電子裝置可利用第1級別之API而於原始碼400中識別與至少一個槽相關之狀態資訊。 The source code 400 may include a first field 401 associated with the first type of state information and a second field 402 associated with the second type of state information. Here, the source code may be a source code for generating a version of an object component different from the default version of the object component in FIG. 2 . The electronic device may use the first level API to identify the state information associated with at least one slot in the source code 400 .
於本發明中,第1級別之API係反映對象組件之設計規格之API,可為簡化預定義之(predefined)風格之對象組件之產生的API。即,第1級別之API係用以快速提供預定義之風格之對象組件之API,可防止開發者進行硬編碼(Hard-Coding)。此處,預定義之風格可意味著與至少一個槽相關之狀態資訊中之第1類型的狀態資訊被設置為預設狀態資訊。 In the present invention, the first-level API is an API that reflects the design specifications of the object component, and can be an API that simplifies the generation of object components of a predefined style. That is, the first-level API is an API for quickly providing an object component of a predefined style, which can prevent developers from hard-coding. Here, the predefined style can mean that the first type of state information in the state information associated with at least one slot is set as the default state information.
第1欄位401可表示對象組件所包括之至少一個子槽中之至少一個第1子槽之第1類型之狀態資訊為設置之第1類型之預設狀態資訊。例如,除作為至少一個槽之第1槽、第2槽、第3槽及第4槽中之第3槽之外之至少一個第1槽的狀態資訊可包括於第1欄位401。第1欄位401可表示:藉由設置狀態資訊之Setstate(buildMessageBoxState,建立訊息框狀態)函數,將第1槽即開始槽、第2槽即內容槽及第4槽即結束槽之第1類型之狀態資訊設置為預設狀態資訊。即,與第1槽、第2槽及第4槽對應之子組件可確定為預設之風格之預設子組件。 The first field 401 may indicate that the state information of the first type of at least one first subslot of at least one subslot included in the object component is the default state information of the first type set. For example, the state information of at least one first slot other than the third slot of the first slot, the second slot, the third slot, and the fourth slot as at least one slot may be included in the first field 401. The first field 401 may indicate that the state information of the first slot, i.e., the start slot, the second slot, i.e., the content slot, and the fourth slot, i.e., the end slot, is set to the default state information by the Setstate (buildMessageBoxState) function that sets the state information. That is, the subcomponents corresponding to the first slot, the second slot, and the fourth slot may be determined as the default subcomponents of the default style.
根據一實施例,電子裝置可利用第1級別之API而於原始碼中將至少一個第1子槽之第1類型之狀態資訊確定為所設置之第1類型之預設狀態資訊。狀態資訊樹410之第1類型之狀態資訊可對應於作為第1槽、 第2槽及第4槽各者之第1類型之狀態資訊的狀態資訊413、狀態資訊414及狀態資訊415。與預設版本之對象組件200之第1槽210、第2槽220及第4槽240相同之子組件可位於新版本之對象組件之第1槽、第2槽及第4槽。相反,電子裝置可確認原始碼400內未記載與第3槽對應之狀態資訊。即,子組件可不位於新版本之對象組件之第3槽,新版本之對象組件之第3槽可為空區域。 According to one embodiment, the electronic device may use the first level API to determine the first type of state information of at least one first sub-slot as the set first type of default state information in the source code. The first type of state information of the state information tree 410 may correspond to the state information 413, state information 414, and state information 415 as the first type of state information of each of the first slot, the second slot, and the fourth slot. The sub-assemblies that are the same as the first slot 210, the second slot 220, and the fourth slot 240 of the default version of the object assembly 200 may be located in the first slot, the second slot, and the fourth slot of the new version of the object assembly. On the contrary, the electronic device may confirm that the state information corresponding to the third slot is not recorded in the source code 400. That is, the sub-assembly may not be located in the third slot of the new version of the object assembly, and the third slot of the new version of the object assembly may be an empty area.
第2欄位402可表示第2類型之狀態資訊。更具體而言,參照圖4,第2欄位402可表示第2類型之狀態資訊為所設置之第2類型之預設狀態資訊。可將對象組件之預設色調值、預設大小值及預設效果(effect)值預設為與對象組件相關之規格。例如,第1類型狀態資訊中之對象組件之背景色調資訊係所設置之預設色調值(value)之色調(Color),可為綠色(green)。又,第1類型之狀態資訊中之對象組件之大小資訊係所設置之預設大小值之大小(Size),可為M。第1類型之狀態資訊中之對象組件之效果(effect)資訊係所設置之預設效果(effect)值之效果(effect),可為淺色(tint)。即,對象組件之背景之特徵可確定為淺綠色(green)色調。 The second field 402 may represent the status information of the second type. More specifically, referring to FIG. 4 , the second field 402 may represent that the status information of the second type is the set default status information of the second type. The default color tone value, default size value, and default effect value of the object component may be preset to the specifications related to the object component. For example, the background color tone information of the object component in the first type of status information is the color (Color) of the set default color tone value (value), which may be green (green). Furthermore, the size information of the object component in the first type of status information is the size (Size) of the set default size value, which may be M. The effect information of the object component in the first type of status information is the effect of the set default effect value, which can be a tint. That is, the background feature of the object component can be determined to be a light green tint.
根據一實施例,電子裝置可利用第1級別之API而於原始碼中識別對象組件之第2類型之狀態資訊。參照圖4,對象組件之第2類型之狀態資訊411可為所設置之第2類型之預設狀態資訊。即,新版本之對象組件之大小及背景顏色可與預設版本之對象組件200之大小及背景顏色相同。基於原始碼400而產生之新版本之對象組件可具有與預設版本之對象組件200相同之設計,除第3槽230為空區域之外。第1欄位401內之至少一個第1槽之第1類型之狀態資訊被設置為預設狀態資訊,新版本之對象組件可為預定義之風格之對象組件。 According to one embodiment, the electronic device can use the first level API to identify the second type of state information of the object component in the source code. Referring to FIG. 4, the second type of state information 411 of the object component can be the set default state information of the second type. That is, the size and background color of the new version of the object component can be the same as the size and background color of the default version of the object component 200. The new version of the object component generated based on the source code 400 can have the same design as the default version of the object component 200, except that the third slot 230 is an empty area. The first type of state information of at least one first slot in the first field 401 is set to the default state information, and the new version of the object component can be an object component of a predefined style.
根據一實施例,電子裝置可分析原始碼,確定用以分析狀態資訊之API。更具體而言,對至少一個槽之各者,當第1類型之狀態資訊於原始碼中被設置為預設之預設狀態資訊或不包括於原始碼中時,電子裝置可利用第1級別之API而於原始碼中識別與至少一個槽相關之狀態資訊。 According to one embodiment, the electronic device can analyze the source code to determine the API for analyzing the status information. More specifically, for each of at least one slot, when the first type of status information is set as the default status information in the source code or is not included in the source code, the electronic device can use the first level API to identify the status information associated with the at least one slot in the source code.
圖5係繼圖4之後,用以說明於另一實施例之原始碼中識別與至少一個槽相關之狀態資訊之方法的圖。 FIG. 5 is a diagram subsequent to FIG. 4 for illustrating a method for identifying state information associated with at least one slot in source code of another embodiment.
原始碼500可包括與第1類型之狀態資訊相關之第1欄位501及與第2類型之狀態資訊相關之第2欄位502。此處,原始碼可為用以產生與圖2之預設版本之對象組件不同之版本之對象組件的原始碼。電子裝置可利用第2級別之API而於原始碼500中識別與至少一個槽相關之狀態資訊。 The source code 500 may include a first field 501 associated with the first type of status information and a second field 502 associated with the second type of status information. Here, the source code may be a source code for generating a version of an object component different from the default version of the object component in FIG. 2 . The electronic device may use the second level API to identify the status information associated with at least one slot in the source code 500 .
於本發明中,第2級別之API可為用以產生及組裝至少一個子組件之API。更具體而言,第2級別之API可為用以產生以不同之風格客制化之(customized)對象組件而非預定義之風格之對象組件的API。 In the present invention, the second-level API may be an API for generating and assembling at least one subcomponent. More specifically, the second-level API may be an API for generating object components customized in different styles rather than object components of a predefined style.
第1欄位501可表示對象組件所包括之至少一個子槽中之至少一個第1子槽之第1類型之狀態資訊。例如,除作為至少一個槽之第1槽、第2槽、第3槽及第4槽中之第3槽之外之至少一個第1槽的狀態資訊可包括於第1欄位501。第1欄位501內之與第1槽對應之子欄位503可包括與標識(Logo)、圖標(Icon)、圓形影像(Circular Image)、方形影像(Square Image)相關之影像資料之資訊、影像資料之高度(height)及寬度(width)之資訊、影像資料之色調資訊、影像資料內之文本之字型色調資訊。第1欄位501內之與第2槽對應之子欄位504可包括文本資料之資訊、文本資料之 字型大小資訊及字型色調資訊。第1欄位501內之與第4槽對應之子欄位505可包括按鍵相關圖標資料之資訊、圖標資料之高度及寬度之資訊、圖標資料之色調資訊。又,子欄位505可包括文本按鍵之資訊之欄位,但與第4槽相關之文本按鍵之資訊可不設置於子欄位505內。 The first field 501 may indicate the status information of the first type of at least one first sub-slot of at least one sub-slot included in the object component. For example, the status information of at least one first slot other than the first slot, the second slot, the third slot, and the third slot of the fourth slot as at least one slot may be included in the first field 501. The sub-field 503 corresponding to the first slot in the first field 501 may include information of image data related to a logo, an icon, a circular image, a square image, information of the height and width of the image data, information of the color tone of the image data, and information of the font color tone of the text in the image data. The subfield 504 corresponding to the second slot in the first field 501 may include information about text data, font size information, and font color information of the text data. The subfield 505 corresponding to the fourth slot in the first field 501 may include information about icon data related to a key, information about the height and width of the icon data, and color information of the icon data. In addition, the subfield 505 may include a field for information about text keys, but the information about text keys related to the fourth slot may not be set in the subfield 505.
第2欄位502可表示第2類型之狀態資訊。更具體而言,參照圖5,第2欄位502可表示第2類型之狀態資訊為所設置之第2類型之預設狀態資訊。例如,第1類型狀態資訊中之對象組件之背景色調資訊係所設置之預設色調值(value)之色調(Color),可為綠色(green)。又,第1類型之狀態資訊中之對象組件之大小資訊係所設置之預設大小值之大小(Size),可為M。第1類型之狀態資訊中之對象組件之效果(effect)資訊係所設置之預設效果(effect)值之效果(effect),可為淺色(tint)。 The second field 502 may represent the second type of status information. More specifically, referring to FIG. 5 , the second field 502 may represent that the second type of status information is the set second type of default status information. For example, the background color information of the object component in the first type of status information is the color (Color) of the set default color value (value), which may be green (green). In addition, the size information of the object component in the first type of status information is the size (Size) of the set default size value (M). The effect information of the object component in the first type of status information is the effect (effect) of the set default effect (effect) value (tint).
根據一實施例,電子裝置可利用第2級別之API而於原始碼中確定第1類型之狀態資訊及第2類型之狀態資訊。狀態資訊樹510之第1類型之狀態資訊可對應於作為第1槽、第2槽及第4槽各者之第1類型之狀態資訊的狀態資訊513、狀態資訊514及狀態資訊515。與預設版本之對象組件200之第1槽210、第2槽220及第4槽240相同之子組件可位於新版本之對象組件之第1槽、第2槽及第4槽。相反,第3槽之狀態資訊不在第1欄位501內,電子裝置可確認無與第3槽對應之第1類型之狀態資訊。即,子組件可不位於新版本之對象組件之第3槽,新版本之對象組件之第3槽可為空區域。又,對象組件之第2類型之狀態資訊511可為所設置之第2類型之預設狀態資訊。基於原始碼500而產生之新版本之對象組件除第3槽為空區域之外,可具有與預設版本之對象組件200相同之設計。 According to one embodiment, the electronic device may determine the first type of state information and the second type of state information in the source code using the second level API. The first type of state information of the state information tree 510 may correspond to the state information 513, the state information 514, and the state information 515 as the first type of state information of each of the first slot, the second slot, and the fourth slot. The subassemblies that are the same as the first slot 210, the second slot 220, and the fourth slot 240 of the object assembly 200 of the default version may be located in the first slot, the second slot, and the fourth slot of the object assembly of the new version. On the contrary, the state information of the third slot is not in the first field 501, and the electronic device may confirm that there is no first type of state information corresponding to the third slot. That is, the sub-assembly may not be located in the third slot of the new version of the object assembly, and the third slot of the new version of the object assembly may be an empty area. In addition, the second type of state information 511 of the object assembly may be the set second type of default state information. The new version of the object assembly generated based on the source code 500 may have the same design as the default version of the object assembly 200 except that the third slot is an empty area.
圖6係用以說明圖4及圖5之一實施例之新版本之對象組件 的圖。 FIG. 6 is a diagram for illustrating a new version of an object component of an embodiment of FIG. 4 and FIG. 5
圖6表示與基於圖4之原始碼400或圖5之原始碼500而產生之預設版本之對象組件200不同之新版本之對象組件600。觀察可知,位於對象組件600之第1槽610、第2槽620及第4槽640之子組件可與位於對象組件200之第1槽210、第2槽220及第4槽240之子組件相同。相反,子組件可不位於對象組件600之第3槽630,對象組件600之第3槽630可為空區域。即,對象組件600之第3槽630與對象組件200之第3槽230之差異在於子組件是否位於第3槽。 FIG. 6 shows a new version of the object component 600 that is different from the default version of the object component 200 generated based on the source code 400 of FIG. 4 or the source code 500 of FIG. 5 . It can be observed that the subcomponents located in the first slot 610, the second slot 620, and the fourth slot 640 of the object component 600 may be the same as the subcomponents located in the first slot 210, the second slot 220, and the fourth slot 240 of the object component 200. On the contrary, the subcomponent may not be located in the third slot 630 of the object component 600, and the third slot 630 of the object component 600 may be an empty area. That is, the difference between the third slot 630 of the object component 600 and the third slot 230 of the object component 200 is whether the subcomponent is located in the third slot.
與對象組件相關之各種版本之對象組件可儲存於電子裝置。與此相關,當電子裝置接收與對象組件之呼叫相關之原始碼時,可向終端提供與原始碼內之變體(variant)之欄位值對應之版本之對象組件。當向終端提供特定版本之對象組件時,如實行AB測試時,可藉由UI組件之提供者而確定向用戶各者之終端提供之對象組件之版本。 Various versions of object components associated with an object component may be stored in an electronic device. In this regard, when the electronic device receives source code associated with a call to an object component, a version of the object component corresponding to a field value of a variant in the source code may be provided to the terminal. When a specific version of an object component is provided to a terminal, such as when performing AB testing, the version of the object component provided to each user's terminal may be determined by the provider of the UI component.
參照圖4及圖5,將至少一個第1槽之第1類型之狀態資訊分別設置為至少一個第1槽之第1類型之預設狀態資訊,新版本之對象組件600不與預設版本之對象組件200完全相同,但可為預定義之風格之對象組件。即,電子裝置利用第1級別之API及第2級別之API中之第1級別之API而於原始碼中產生對象組件,會更有效率。 Referring to FIG. 4 and FIG. 5 , the state information of the first type of at least one slot 1 is respectively set to the default state information of the first type of at least one slot 1. The new version of the object component 600 is not exactly the same as the default version of the object component 200, but can be an object component of a predefined style. That is, it is more efficient for the electronic device to generate the object component in the source code using the first level API and the first level API in the second level API.
但是,若對象組件並非預定義之風格之對象組件,則電子裝置可利用第2級別之API而於原始碼中產生對象組件。即,當原始碼包括表示第1類型之狀態資訊中之至少一部分被設置為與所設置之第1類型之預設狀態資訊不同之第1類型之狀態資訊之欄位時,第2級別之API可為用於識別狀態資訊之API。 However, if the object component is not an object component of a predefined style, the electronic device may generate the object component in the source code using the second level API. That is, when the source code includes a field indicating that at least a portion of the first type of state information is set to the first type of state information different from the set first type of default state information, the second level API may be an API for identifying the state information.
圖7係用以說明一實施例之於原始碼中識別與至少一個槽相關之狀態資訊之方法的圖。 FIG. 7 is a diagram for illustrating a method for identifying state information associated with at least one slot in source code according to an embodiment.
根據一實施例,於至少一個槽中之第1槽之狀態資訊不同於預設版本之對象組件中之第1槽之預設狀態資訊,且至少一個槽中之第2槽之狀態資訊為預設版本之對象組件中之第2槽的預設狀態資訊時,原始碼可包括:第1子欄位,其表示第1槽之狀態資訊被設置為與第1槽之預設狀態資訊不同之狀態資訊;及第2子欄位,其表示第2槽之狀態資訊被設置為第2槽之預設狀態資訊。 According to one embodiment, when the state information of the first slot in at least one slot is different from the default state information of the first slot in the object component of the default version, and the state information of the second slot in at least one slot is the default state information of the second slot in the object component of the default version, the source code may include: a first subfield indicating that the state information of the first slot is set to state information different from the default state information of the first slot; and a second subfield indicating that the state information of the second slot is set to the default state information of the second slot.
原始碼700之與第1槽對應之第1子欄位701可與原始碼500之與第1槽對應之子欄位503不同。更具體而言,第1子欄位701可表示第1槽即開始槽之狀態資訊為兩個圓形影像狀態(TwocircularImageState)。即,第1子欄位701可表示第1槽之狀態資訊被設置為與作為第1槽之預設狀態資訊之狀態資訊513不同之狀態資訊。與兩個圓形影像(TwocircularImage)相關之影像資料係藉由開發者而預先產生之資料,可被設置為兩個圓形影像狀態(TwocircularImageState)之資料。與原始碼700之兩個圓形影像(TwocircularImage)相關之影像資料之高度及寬度的資訊、影像資料之色調資訊及影像資料內之文本之字型色調資訊被設置為與原始碼500之狀態資訊相同。相反,原始碼700之與第2槽對應之第2子欄位702可與原始碼500之與第2槽對應之子欄位504相同。即,第2子欄位702可表示第2槽之狀態資訊被設置為與作為第2槽之預設狀態資訊之狀態資訊514相同。 The first subfield 701 corresponding to the first slot of the source code 700 may be different from the subfield 503 corresponding to the first slot of the source code 500. More specifically, the first subfield 701 may indicate that the state information of the first slot, i.e., the start slot, is the two circular image state (TwocircularImageState). That is, the first subfield 701 may indicate that the state information of the first slot is set to state information different from the state information 513 which is the default state information of the first slot. The image data related to the two circular images (TwocircularImage) is data pre-generated by the developer and may be set to the data of the two circular image state (TwocircularImageState). The information of the height and width of the image data related to the two circular images (TwocircularImage) of the source code 700, the hue information of the image data, and the font hue information of the text in the image data are set to be the same as the state information of the source code 500. On the contrary, the second subfield 702 corresponding to the second slot of the source code 700 can be the same as the subfield 504 corresponding to the second slot of the source code 500. That is, the second subfield 702 can indicate that the state information of the second slot is set to be the same as the state information 514 which is the default state information of the second slot.
參照與原始碼700對應之狀態資訊樹710,第1類型之狀態資訊中之與第1槽對應之狀態資訊711可與狀態資訊樹510中之與第1槽對 應之狀態資訊513不同。相反,第1類型之狀態資訊中之與第2槽對應之狀態資訊712可與狀態資訊樹510中之與第2槽對應之狀態資訊514不同。 Referring to the state information tree 710 corresponding to the source code 700, the state information 711 corresponding to the first slot in the state information of the first type may be different from the state information 513 corresponding to the first slot in the state information tree 510. On the contrary, the state information 712 corresponding to the second slot in the state information of the first type may be different from the state information 514 corresponding to the second slot in the state information tree 510.
圖8係繼圖7之後,用以說明一實施例之版本之對象組件之圖。 FIG8 is a diagram of an object component used to illustrate a version of an embodiment, following FIG7.
圖8表示與基於圖7之原始碼700而產生之預設版本之對象組件200不同之新版本的對象組件800。位於對象組件800之第2槽820及第4槽840之子組件可與位於對象組件600之第2槽620及第4槽640之子組件相同。又,對象組件800之第3槽830可為空區域,如對象組件600之第3槽630。相反,位於對象組件800之第1槽810之子組件可如圖8所示。 FIG8 shows a new version of the object component 800 that is different from the default version of the object component 200 generated based on the source code 700 of FIG7 . The subcomponents located in the second slot 820 and the fourth slot 840 of the object component 800 may be the same as the subcomponents located in the second slot 620 and the fourth slot 640 of the object component 600. In addition, the third slot 830 of the object component 800 may be an empty area, such as the third slot 630 of the object component 600. On the contrary, the subcomponent located in the first slot 810 of the object component 800 may be as shown in FIG8 .
更具體而言,位於第1槽810之子組件可為根據第1子欄位701內之狀態資訊來渲染與兩個圓形影像(TwocircularImage)相關之影像資料而產生。參照圖8,位於第1槽810之子組件可為於一部分重疊之兩個圓內部刻有字母C之圖標。 More specifically, the subcomponent located in the first slot 810 may be generated by rendering image data related to two circular images (TwoCircularImage) according to the state information in the first subfield 701. Referring to FIG. 8 , the subcomponent located in the first slot 810 may be an icon with the letter C engraved inside two partially overlapping circles.
圖9係用以說明藉由介面來識別與至少一個槽相關之狀態資訊之方法之圖。 FIG. 9 is a diagram for explaining a method for identifying status information associated with at least one slot through an interface.
根據一實施例,開發者或UI設計師可藉由選擇介面之設置,設置與對象組件相關之狀態資訊。此處,介面係用以設置與至少一個槽相關之狀態資訊之介面,可為figma。更具體而言,介面可包括:第1區域901,其設置對象組件自身之狀態資訊;及第2區域902,其設置至少一個子組件各者之狀態資訊。 According to one embodiment, a developer or UI designer can set the state information related to the object component by selecting the setting of the interface. Here, the interface is an interface for setting the state information related to at least one slot, which can be a figma. More specifically, the interface can include: a first area 901, which sets the state information of the object component itself; and a second area 902, which sets the state information of each of at least one subcomponent.
第1區域901可為能夠設置對象組件整體角度上之特徵之第2類型之設置狀態資訊之介面900內的區域。即,第1區域901可為設置對象組件自身之狀態資訊之區域。更具體而言,第1區域901之類型(type)可 對應於原始碼400之效果(effect),設置為淺色(tint)。又,第1區域901之(Size)可對應於原始碼400之大小(size),設置為M。又,第1區域901之色調(Color)可對應於原始碼400之色調(Color),設置為綠色(green)。 The first area 901 may be an area in the interface 900 of the second type of setting state information capable of setting the overall characteristics of the object component. That is, the first area 901 may be an area for setting the state information of the object component itself. More specifically, the type (type) of the first area 901 may correspond to the effect (effect) of the source code 400 and be set to tint. Furthermore, the size (Size) of the first area 901 may correspond to the size (size) of the source code 400 and be set to M. Furthermore, the color (Color) of the first area 901 may correspond to the color (Color) of the source code 400 and be set to green (green).
第2區域902可為能夠設置至少一個槽各者之狀態資訊之一部分之介面900內的區域。例如,關於第1槽即開始槽,第2區域902可包括選擇位於第1槽中之影像資料作為圖標(Icon)、標識(Logo)、圓形影像(Circular Image)、方形影像(Square Image)中之一者的子區域;及選擇所選擇之類型之複數個影像資料中之一者的子區域。參照圖9,位於第1槽之影像資料被設置為圖標(Icon)。又,位於第1槽之影像資料可對應於圖標(Icon)中之圖6之第1槽610內之圖標。又,亦可藉由第2區域902來設置是否啟用(activate)第1槽即開始槽。 The second area 902 may be an area in the interface 900 that can set a portion of the status information of at least one slot. For example, regarding the first slot, i.e., the start slot, the second area 902 may include a sub-area for selecting the image data located in the first slot as one of an icon, a logo, a circular image, and a square image; and a sub-area for selecting one of the multiple image data of the selected type. Referring to FIG. 9 , the image data located in the first slot is set as an icon. Furthermore, the image data located in the first slot may correspond to the icon in the first slot 610 of FIG. 6 in the icon. Furthermore, whether to activate the first slot, i.e., the start slot, may also be set by the second area 902.
原始碼910可為設置於介面900之至少一個槽各者之狀態資訊被轉換(transform)之原始碼。設置於介面900之至少一個槽各者之狀態資訊中,隨著作為底槽之第3槽被停用(deactivated),原始碼910內之第1欄位911僅包括與第1槽即開始槽、第2槽即內容槽及第4槽即結束槽相關之狀態資訊,可不包括被停用之第3槽即底槽之狀態資訊。 Source code 910 may be source code in which the status information of at least one slot set in interface 900 is transformed. In the status information of at least one slot set in interface 900, as slot 3 as the bottom slot is deactivated, the first field 911 in source code 910 only includes status information related to slot 1, i.e., the start slot, slot 2, i.e., the content slot, and slot 4, i.e., the end slot, and may not include status information of the deactivated slot 3, i.e., the bottom slot.
於原始碼920中之介面900中設置之至少一個槽各者之狀態資訊中,根據第3槽即底槽及第4槽即結束槽被停用,原始碼920內之第1欄位921僅包括與第1槽即開始槽及第2槽即內容槽相關之狀態資訊,可不包括被停用之第3槽即底槽及第4槽即結束槽之狀態資訊。 In the status information of at least one slot set in the interface 900 in the source code 920, since the third slot, i.e., the bottom slot, and the fourth slot, i.e., the end slot, are disabled, the first field 921 in the source code 920 only includes the status information related to the first slot, i.e., the start slot, and the second slot, i.e., the content slot, and may not include the status information of the disabled third slot, i.e., the bottom slot, and the fourth slot, i.e., the end slot.
圖10係繼圖9之後,用以說明一實施例之對象組件之圖。 FIG. 10 is a diagram following FIG. 9 and is used to illustrate an object component of an embodiment.
對象組件1000可為基於原始碼910而產生之版本之對象組件。參照圖9,第1欄位911可不包括被停用之第3槽即底槽之狀態資訊, 基於原始碼910而產生之對象組件1000可與圖6之對象組件600相同。作為對象組件1000之第3槽之底槽可為空區域。 The object component 1000 may be a version of the object component generated based on the source code 910. Referring to FIG. 9, the first field 911 may not include the status information of the disabled third slot, i.e., the bottom slot. The object component 1000 generated based on the source code 910 may be the same as the object component 600 of FIG. 6. The bottom slot as the third slot of the object component 1000 may be an empty area.
對象組件1050可為基於原始碼920而產生之版本之對象組件。參照圖9,第1欄位921可不包括被停用之第3槽即底槽及第4槽即結束槽之狀態資訊。即,子組件可不位於基於原始碼920而產生之對象組件1050之第3槽即底槽及第4槽即結束槽,對象組件1050之第3槽即底槽及第4槽即結束槽可為空區域。位於對象組件1050之第1槽即開始槽及第2槽即內容槽的子組件可與位於對象組件1000之第1槽即開始槽及第2槽即內容槽之子組件相同。 The object component 1050 may be a version of the object component generated based on the source code 920. Referring to FIG. 9, the first field 921 may not include the status information of the disabled third slot, i.e., the bottom slot, and the fourth slot, i.e., the end slot. That is, the subcomponent may not be located in the third slot, i.e., the bottom slot, and the fourth slot, i.e., the end slot of the object component 1050 generated based on the source code 920, and the third slot, i.e., the bottom slot, and the fourth slot, i.e., the end slot of the object component 1050 may be empty areas. The subcomponent located in the first slot, i.e., the start slot, and the second slot, i.e., the content slot of the object component 1050 may be the same as the subcomponent located in the first slot, i.e., the start slot, and the second slot, i.e., the content slot of the object component 1000.
圖11係將一實施例之用以產生U1組件之電子裝置圖示化之方塊圖。 FIG. 11 is a block diagram illustrating an electronic device for generating a U1 component according to an embodiment.
圖11之電子裝置1100可對應於本發明說明書之電子裝置。本發明之電子裝置1100可根據一實施例,包括處理器1110及儲存器1120。與本實施例相關之技術領域內具有常識者可理解,圖11所示之構成要素並非實現電子裝置所必需的,本說明書中說明之電子裝置1100可具有較以上列舉之構成要素多或少之構成要素。另一方面,於實施例中,處理器1110可包括至少一個處理器。 The electronic device 1100 of FIG. 11 may correspond to the electronic device of the present invention. The electronic device 1100 of the present invention may include a processor 1110 and a memory 1120 according to an embodiment. A person with common sense in the technical field related to the present embodiment may understand that the components shown in FIG. 11 are not necessary for realizing the electronic device, and the electronic device 1100 described in the present invention may have more or less components than the components listed above. On the other hand, in the embodiment, the processor 1110 may include at least one processor.
處理器1110可控制電子裝置1100之整體動作並處理資料及訊號。處理器1110可實行上文圖1至圖11所述之一種方法。處理器1110可藉由儲存器1120及與電子裝置1100可進而包括之構成要素之相互作用來控制電子裝置1100實行之實施例。 The processor 1110 can control the overall operation of the electronic device 1100 and process data and signals. The processor 1110 can implement one of the methods described in Figures 1 to 11 above. The processor 1110 can control the embodiments implemented by the electronic device 1100 through the interaction with the memory 1120 and the components that the electronic device 1100 may further include.
一個以上之處理器1110可藉由與記憶體1120及電子裝置1100可進而包括之構成要素之相互作用來控制電子裝置1100實行之實施 例。根據一實施例,一個以上之處理器1110可如下:藉由執行一個以上之命令而確認對象組件,確認對象組件之至少一個槽,在與對象組件相關之原始碼中,識別與至少一個槽相關之狀態資訊,根據狀態資訊,確定與至少一個槽對應之至少一個子組件,且基於對象組件之階層式結構,產生包括至少一個子組件之對象組件。 One or more processors 1110 may control an embodiment of the electronic device 1100 by interacting with the memory 1120 and the components that the electronic device 1100 may further include. According to one embodiment, one or more processors 1110 may be as follows: confirm an object component by executing one or more commands, confirm at least one slot of the object component, identify state information associated with at least one slot in source code associated with the object component, determine at least one subcomponent corresponding to the at least one slot based on the state information, and generate an object component including at least one subcomponent based on the hierarchical structure of the object component.
儲存器1120可儲存用以實行上文圖1至圖11所述之至少一種方法之資訊。儲存器1120可稱為記憶體,可為揮發性記憶體或非揮發性記憶體。又,儲存器1120可儲存實行處理器1110之動作所需之一個以上之命令,可暫時儲存平台上儲存或外部記憶體中儲存之資料。儲存器1120可儲存與對象組件相關之原始碼、至少一個子組件各者之資料、對象組件之階層式結構之資訊。又,儲存器1120可儲存包括預設版本之對象組件之各種版本之對象組件。 The memory 1120 can store information for implementing at least one method described in Figures 1 to 11 above. The memory 1120 can be called a memory, which can be a volatile memory or a non-volatile memory. In addition, the memory 1120 can store one or more commands required to implement the actions of the processor 1110, and can temporarily store data stored on the platform or in an external memory. The memory 1120 can store source code related to the object component, data of at least one subcomponent, and information of the hierarchical structure of the object component. In addition, the memory 1120 can store various versions of the object component including the default version of the object component.
電子裝置1100可進而包括收發器(未圖示)。收發器可包括利用有無線通訊技術與外部之裝置進行通訊的收發器。外部之裝置可為客戶端裝置、終端、開放原始碼平台或伺服器。收發器所利用之通訊技術可包括GSM(Global System for Mobile communication,全球行動通訊系統)、CDMA(Code Division Multi Access,分碼多重存取)、LTE(Long Term Evolution,長期演進)、5G(5th Generation Mobile Communication Technology,第五代移動通信技術)、WLAN(Wireless LAN,無線區域網)、Wi-Fi(Wireless-Fidelity,無線保真)、藍牙(Bluetooth)、RFID(Radio Frequency Identification,無線射頻識別)、紅外線通訊(Infrared Data Association,IrDA)、紫蜂(Zigbee)、NFC(Near Field Communication,近場通訊)等,但不侷限於此。 The electronic device 1100 may further include a transceiver (not shown). The transceiver may include a transceiver that communicates with an external device using wireless communication technology. The external device may be a client device, a terminal, an open source platform, or a server. The communication technologies used by the transceiver may include GSM (Global System for Mobile communication), CDMA (Code Division Multi Access), LTE (Long Term Evolution), 5G (5th Generation Mobile Communication Technology), WLAN (Wireless LAN), Wi-Fi (Wireless-Fidelity), Bluetooth, RFID (Radio Frequency Identification), Infrared Data Association (IrDA), Zigbee, NFC (Near Field Communication), etc., but are not limited to these.
另一方面,本說明書及圖式中揭示了本發明之較佳實施例,雖然使用了特定術語,但僅於一般意義上使用,以容易地說明本發明之技術內容並幫助理解發明,而並非為了限制本發明之範圍。顯然,對於本發明所屬之技術領域內具有常識者而言,除了此處揭示之實施例,亦可實施基於本發明之技術思想的其他變化例。 On the other hand, this specification and drawings disclose the preferred embodiments of the present invention. Although specific terms are used, they are used only in a general sense to easily explain the technical content of the present invention and help understand the invention, and are not intended to limit the scope of the present invention. Obviously, for those with common sense in the technical field to which the present invention belongs, in addition to the embodiments disclosed here, other variations based on the technical ideas of the present invention can also be implemented.
上述實施例之電子裝置或終端可包括處理器、儲存並執行程式資料之記憶體、如磁碟驅動器之永久儲存器(permanent storage)、與外部裝置通訊之通訊埠、如觸控面板、按鍵(key)、圖標之用戶介面裝置等。藉由軟體模組或演算法實現之方法作為可於上述處理器上執行之電腦可讀代碼或程式命令,可儲存於電腦可讀記錄媒體上。此處,作為電腦可讀記錄媒體,有磁儲存媒體(例如,ROM(read-only memory,唯讀記憶體)、RAM(random-Access memory,隨機存取記憶體)、軟磁碟、硬磁碟等)及光學讀取媒體(例如,光碟唯讀記憶體(CD-ROM)、數位多功能光碟(DVD:Digital Versatile Disc))等。電腦可讀記錄媒體分散於連接於網路之電腦系統,從而能夠以分散方式儲存電腦可讀代碼並執行。媒體可藉由電腦讀取,儲存於記憶體中,可於處理器中執行。 The electronic device or terminal of the above embodiment may include a processor, a memory for storing and executing program data, a permanent storage such as a disk drive, a communication port for communicating with external devices, a user interface device such as a touch panel, a key, an icon, etc. The method implemented by the software module or algorithm can be stored in a computer-readable recording medium as a computer-readable code or program command that can be executed on the above processor. Here, as computer-readable recording media, there are magnetic storage media (e.g., ROM (read-only memory), RAM (random-Access memory), floppy disk, hard disk, etc.) and optical readable media (e.g., CD-ROM, DVD: Digital Versatile Disc)). Computer-readable recording media are distributed in computer systems connected to the network, so that computer-readable codes can be stored and executed in a distributed manner. The media can be read by the computer, stored in the memory, and executed in the processor.
本實施例可由功能塊構成及各種處理步驟表示。此種功能塊可藉由執行特定功能之不同個數之硬體或/及軟體構成來實現。例如,實施例可採用能夠藉由一個以上之微處理器之控制或其他控制裝置而執行各種功能之積體電路構成,如記憶體、處理、邏輯(logic)、查找表(look-uptable)等。構成要素可藉由軟體程式或軟體元件而執行,與此相似,本實施例包括以資料結構、程序、常式或其他程式構成之組合實現之演算法,因此可藉由如C、C++、Java、組譯程式(assembler)及Python等程式 設計或腳本語言來實現。於功能方面而言,可藉由在一個以上之處理器中執行之演算法來實現。又,本實施例可採用先前技術來進行電子環境設置、信號處理及/或資料處理。「機制」、「元件」、「機構」、「構成」等用語可廣泛地使用,並不限定於機械與物理構成。上述用語可與處理器等關聯而包括軟體之一系列處理(routines)之含義。 The present embodiment may be represented by a functional block structure and various processing steps. Such functional blocks may be implemented by different numbers of hardware and/or software structures that perform specific functions. For example, the embodiment may be implemented by an integrated circuit structure that can perform various functions such as memory, processing, logic, look-up tables, etc. through the control of one or more microprocessors or other control devices. The components may be executed by software programs or software components. Similarly, the present embodiment includes algorithms implemented by a combination of data structures, programs, routines, or other program structures, and thus may be implemented by programming or scripting languages such as C, C++, Java, assemblers, and Python. In terms of functionality, it can be implemented by algorithms executed in one or more processors. In addition, this embodiment can use prior art to perform electronic environment settings, signal processing and/or data processing. Terms such as "mechanism", "component", "mechanism", and "structure" can be used widely and are not limited to mechanical and physical structures. The above terms can be associated with processors and include the meaning of a series of processes (routines) of software.
上述實施例僅為一示例,可於下文敍述之發明申請專利範圍內實現其他實施例。 The above embodiment is only an example, and other embodiments can be implemented within the scope of the invention application described below.
300:狀態資訊樹 300: Status information tree
310:第2類型之狀態資訊 310: Type 2 status information
311:狀態資訊 311: Status information
312:狀態資訊 312: Status information
313:狀態資訊 313: Status information
314:狀態資訊 314: Status information
320:對象組件之階層 320: Hierarchy of object components
321:影像相關子組件 321: Image-related subcomponents
322:文本相關子組件 322: Text related subcomponents
323:文本相關子組件 323: Text related subcomponents
324:按鍵相關子組件 324:Key-related subcomponents
Claims (13)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| KR10-2023-0057229 | 2023-05-02 | ||
| KR1020230057229A KR102584355B1 (en) | 2023-05-02 | 2023-05-02 | Method and appartus for generating ui component |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TW202445384A TW202445384A (en) | 2024-11-16 |
| TWI875105B true TWI875105B (en) | 2025-03-01 |
Family
ID=88293482
Family Applications (2)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW114103912A TW202522257A (en) | 2023-05-02 | 2023-07-31 | Method and apparatus for generating ui component |
| TW112128544A TWI875105B (en) | 2023-05-02 | 2023-07-31 | Method and apparatus for generating ui component |
Family Applications Before (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW114103912A TW202522257A (en) | 2023-05-02 | 2023-07-31 | Method and apparatus for generating ui component |
Country Status (3)
| Country | Link |
|---|---|
| KR (3) | KR102584355B1 (en) |
| TW (2) | TW202522257A (en) |
| WO (1) | WO2024228409A1 (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030145305A1 (en) * | 2001-11-16 | 2003-07-31 | Mario Ruggier | Method for developing and managing large-scale web user interfaces (WUI) and computing system for said WUI |
| TW200500889A (en) * | 2003-06-24 | 2005-01-01 | Academia Sinica | XML document editor |
| CN112835584A (en) * | 2021-01-13 | 2021-05-25 | 普元信息技术股份有限公司 | Method for realizing component extension and management based on ReactNative |
| CN113448552A (en) * | 2020-03-27 | 2021-09-28 | 北京沃东天骏信息技术有限公司 | Code generation method and device |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR101709186B1 (en) * | 2013-01-25 | 2017-02-22 | 한국전자통신연구원 | Interactive multimedia E-book authoring apparatus and method |
| US10127261B2 (en) * | 2013-12-31 | 2018-11-13 | Dassault Systems Enovia Corporation | Methods and systems for resolving conflicts in hierarchically-referenced data |
| KR20150092880A (en) * | 2014-02-06 | 2015-08-17 | 한국전자통신연구원 | Method and Apparatus for Re-Configuring Design Decisions after Developing Graphic User Interface |
| KR101588592B1 (en) * | 2014-08-22 | 2016-02-12 | (주)비원이즈 | Hybrid application development system based on object relational mapping and the method thereof |
| KR102327083B1 (en) * | 2020-09-14 | 2021-11-15 | 한화시스템 주식회사 | System and method for sharing software component |
-
2023
- 2023-05-02 KR KR1020230057229A patent/KR102584355B1/en active Active
- 2023-05-04 WO PCT/KR2023/006107 patent/WO2024228409A1/en active Pending
- 2023-07-31 TW TW114103912A patent/TW202522257A/en unknown
- 2023-07-31 TW TW112128544A patent/TWI875105B/en active
- 2023-09-25 KR KR1020230128119A patent/KR102812892B1/en active Active
-
2025
- 2025-05-21 KR KR1020250066203A patent/KR20250084085A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030145305A1 (en) * | 2001-11-16 | 2003-07-31 | Mario Ruggier | Method for developing and managing large-scale web user interfaces (WUI) and computing system for said WUI |
| TW200500889A (en) * | 2003-06-24 | 2005-01-01 | Academia Sinica | XML document editor |
| CN113448552A (en) * | 2020-03-27 | 2021-09-28 | 北京沃东天骏信息技术有限公司 | Code generation method and device |
| CN112835584A (en) * | 2021-01-13 | 2021-05-25 | 普元信息技术股份有限公司 | Method for realizing component extension and management based on ReactNative |
Also Published As
| Publication number | Publication date |
|---|---|
| KR20240160498A (en) | 2024-11-11 |
| KR102584355B1 (en) | 2023-10-05 |
| TW202445384A (en) | 2024-11-16 |
| KR102812892B1 (en) | 2025-05-26 |
| WO2024228409A1 (en) | 2024-11-07 |
| KR20250084085A (en) | 2025-06-10 |
| TW202522257A (en) | 2025-06-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111522552B (en) | Sub-application generation method and device, computer equipment and storage medium | |
| US8631349B2 (en) | Apparatus and method for changing application user interface in portable terminal | |
| US9465529B1 (en) | Platform-independent environments for customizing user interfaces of native applications for portable electronic devices | |
| US9411561B2 (en) | Apparatus and method for changing theme of application in portable terminal | |
| CN101460943A (en) | Modifying a chart | |
| US20200409513A1 (en) | Metadata-driven binding of platform-agnostic content to platform-specific user-interface elements | |
| US20160380915A1 (en) | Rules-Based Workflow Messaging | |
| RU2639667C2 (en) | Context invitation in trial version of application | |
| US11915073B2 (en) | Non-transitory computer-readable recording medium storing computer-readable instructions for terminal device, and method performed by terminal device for causing label printer to perform printing | |
| US10567435B2 (en) | Apparatus that is managed in accordance with a security policy, control method thereof, and storage medium | |
| WO2013109858A1 (en) | Design canvas | |
| TWI875105B (en) | Method and apparatus for generating ui component | |
| JP6156054B2 (en) | Information processing apparatus and program | |
| WO2020157918A1 (en) | Rendering assistance device, display device, rendering assistance method, and computer program | |
| KR101208463B1 (en) | How to block ads, terminals and recording media | |
| US20150169642A1 (en) | Method and system for making index page using content authoring tool | |
| JP6709924B1 (en) | Information processing device, information processing method, program and document | |
| CN117348952A (en) | Boot file generation method, operation boot method, device and storage medium | |
| KR102053078B1 (en) | Document editing processing device supporting customization of document editing interface and operating method thereof | |
| KR101977208B1 (en) | Document editor and method using the same | |
| Bakir et al. | Program the Internet of Things with Swift for iOS | |
| JP7691026B2 (en) | Environment construction support device, system, method and program | |
| US20250069302A1 (en) | Information processing apparatus, method of controlling information processing apparatus, and storage medium | |
| TWI885802B (en) | Method, electronic device and recording medium for dynamically editing widget | |
| TW202526601A (en) | Electronic device and document provision method thereof |