WO2018130085A1 - Method and apparatus for page presentation - Google Patents

Method and apparatus for page presentation Download PDF

Info

Publication number
WO2018130085A1
WO2018130085A1 PCT/CN2017/119674 CN2017119674W WO2018130085A1 WO 2018130085 A1 WO2018130085 A1 WO 2018130085A1 CN 2017119674 W CN2017119674 W CN 2017119674W WO 2018130085 A1 WO2018130085 A1 WO 2018130085A1
Authority
WO
WIPO (PCT)
Prior art keywords
scene
interface
container
request
container object
Prior art date
Application number
PCT/CN2017/119674
Other languages
French (fr)
Chinese (zh)
Inventor
胡乐水
沈杰
Original Assignee
阿里巴巴集团控股有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2018130085A1 publication Critical patent/WO2018130085A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • the present application relates to the field of computer technology, and in particular, to a page display method and apparatus.
  • the client parses the page code file, renders the page, and displays it in the window.
  • a window displays a page. If multiple pages need to be displayed, multiple windows need to be created, which requires a large overhead. In addition, when a plurality of pages are displayed through a plurality of windows, if inter-page switching is performed, switching between windows is required, which affects switching efficiency.
  • the embodiment of the present application provides a page display method and device.
  • a scene object in the container object to be displayed by the scene interface; wherein a container object includes at least one scene object;
  • the scene interface is displayed in a window corresponding to the container object.
  • a determining module configured to determine a scene object in the container object to be displayed by the scene interface; wherein the container object includes at least one scene object;
  • a rendering module configured to render a display object in the scene object to be displayed by the scene interface according to the scene template corresponding to the scene object to be displayed on the scene interface, to obtain a corresponding scene interface; wherein, the interface template Used to define the layout and/or display mode of the display objects in the scene object;
  • a display module configured to display the scene interface in a window corresponding to the container object.
  • a memory for storing computer program instructions
  • a processor coupled to the memory for reading computer program instructions stored by the memory and, in response, performing the method described in the above embodiments.
  • a communication device provided by another embodiment of the present application includes: one or more processors; and one or more computer readable media having instructions stored on the readable medium, the instructions being the one or more
  • the processor when executed, causes the communication device to perform the method described in the above embodiments.
  • a container object includes a plurality of scene objects, and after determining a scene object to be displayed in the container object, according to the display object layout and/or defined in the interface template corresponding to the scene object.
  • the display mode is to render the display object in the scene object, and obtain a scene interface corresponding to the scene object, and display the window corresponding to the container object. Since a container object can include multiple scene objects, the scene interface obtained based on the scene objects can be displayed in the window corresponding to the container object, and a plurality of scene interfaces can be displayed in one window.
  • FIG. 1 is a schematic diagram of a system architecture of a container object and a Scene object included in an application in an embodiment of the present application;
  • FIG. 2a is a schematic diagram showing a first scene interface in a window in an embodiment of the present application
  • 2b is a schematic diagram showing a second scene interface in a window in the embodiment of the present application.
  • 2c is a schematic diagram showing a third scene interface in a window in the embodiment of the present application.
  • 2d is a schematic diagram showing a fourth scene interface in a window in the embodiment of the present application.
  • FIG. 3 is a schematic diagram of a life cycle of a Scene object in an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a page display process provided by an embodiment of the present application.
  • FIG. 5A is a schematic diagram showing content displayed by an application window in an embodiment of the present application.
  • FIG. 5B is a schematic diagram showing content displayed by an application window in an embodiment of the present application.
  • 5C is a schematic diagram showing content displayed by an application window in an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a page display apparatus according to an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a computer device according to an embodiment of the present application.
  • the embodiment of the present application provides a page display solution, which can display different scene interfaces according to needs in a window corresponding to a container object for displaying a page, thereby implementing a single window (or a single page).
  • the scene display can improve the switching efficiency between scene interfaces.
  • a container object An object used for window display, providing a display frame, such as providing a page or window, and the provided page or window does not contain a display object.
  • a container object can correspond to multiple scene objects.
  • the container object contains properties and methods.
  • the properties of a container object can include the name or identity of the container object.
  • the method of the container object may include a scene object display method, and the method is performed on a scene object in the container object, and the scene interface corresponding to the scene object may be displayed in a window corresponding to the container object.
  • the method included in a container object may further include other methods for managing the life cycle of the scene object, such as a method for implementing a scene object to be closed, a method for implementing a scene object to be hidden, and the like.
  • Scene object an object used to display the scene interface, and the scene interface may include a display object.
  • Scene objects contain properties and methods.
  • the properties of a scene object may include the name or identity of the scene object.
  • a method of a scene object may include methods for implementing some or some of the functions of the application.
  • the display object can constitute a page element.
  • a display object can refer to a DOM (Document Object Model) object.
  • the DOM provides access to all of the Hyper Text Mark-up Language (HTML) elements, along with the text and attributes they contain. You can modify and delete the content, as well as create new ones.
  • a DOM object may include: an Anchor object representing an ⁇ a> element (for providing a link), a Button object representing a ⁇ button> element (a function button), and a Form object representing a ⁇ form> element (a form element), Wait, no longer list them one by one.
  • a container object can correspond to a window.
  • a container object can also correspond to multiple windows.
  • a scene object corresponds to a scene interface
  • the scene interface may include one or more display objects.
  • the scene interface may be in a window corresponding to the container object. Show.
  • the embodiments of the present application can be applied to an electronic device based on Web HTML5 technology, such as a smart TV.
  • a specific Field-Programmable Gate Array (FPGA) architecture can be used, which is integrated in the FPGA system architecture.
  • a hard processor system including processors, peripherals, and memory controllers, reduces system power and cost and reduces board space.
  • Applications based on Web HTML5 technology can run on the FPGA system architecture.
  • Application developers can write program code according to HTML5 and JavaScript programming specifications, and get applications that can run on the FPGA system architecture, thus implementing based on the object mechanism in the JavaScript programming specification. The features you need.
  • the foregoing FPGA system architecture is only an example, and the embodiments of the present application do not exclude other types of FPGA system architectures.
  • an application running framework running on an application based on a specific FPGA system architecture provides a class library required for the application to run, and can provide an operating environment for the application to run.
  • the objects related to the embodiments of the present application may include: a container object and a scene object.
  • some TV devices are provided with a Stage object and a Scene object in an application running framework based on an FPGA system architecture.
  • the Stage object is equivalent to the above-mentioned container object
  • the Scene object is equivalent to the above-mentioned scene object.
  • FIG. 1 exemplarily shows a system architecture of a container object (such as a Stage object) and a scene object (such as a Scene object) contained in an application.
  • an application can contain one or more container objects (only one container object is shown in Figure 1), and different application portals can correspond to different container objects.
  • a container object may correspond to one or more scene objects (one container object corresponding to three scene objects in FIG. 1 is scene object 1, scene object 2, scene object 3).
  • Each scene object may correspond to one or more scene templates (only one scene object corresponds to one scene template in FIG. 1 ), one scene template may be dedicated to one scene object, and multiple scene objects may also share one scene template.
  • the scene template is mainly used to define the layout or display mode of the display object in the scene interface, or to define the layout and display mode of the display object.
  • the layout of the display object may include: a position and an arrangement of the page elements represented by the display object in the page, a size of the scene interface, and the like.
  • the display manner of the display object may include: displaying the display color of the page element represented by the object, and the font size font.
  • Scene templates can be defined using Cascading Style Sheets (CSS) files. When a scene object needs to be displayed, the scene object can be loaded with the scene template corresponding to the scene object. When the scene object is exited, the scene template corresponding to the scene object is released.
  • CSS Cascading Style Sheets
  • a container object corresponding to the entry of the application is created, and a window corresponding to the container object is created and opened; according to the execution logic of the application, the corresponding scene object 1 is created, the scene object 1 Load the scene template 1 corresponding to the object into the memory, and use the scene template 1 to render the scene interface 1, and the scene interface 1 is displayed in the opened window, as shown in FIG. 2a.
  • the scene object 2 When the scene corresponding to the scene object 2 needs to be displayed according to the operation of the user or the logic of the application, the scene object 2 is created, the scene object 2 loads the scene template 2 corresponding to the object to the memory, and the scene template 2 is used for the scene interface 2 Rendering, the scene interface 2 is displayed in the opened window, as shown in Figure 2b.
  • Figure 2b shows the coverage sequence of scene interface 1 and scene interface 2, where scene interface 1 is covered by scene interface 2, and the user can only see scene interface 2 in the window.
  • the scene object 3 when the scene corresponding to the scene object 3 needs to be displayed according to the operation of the user or the logic of the application, the scene object 3 is created, the scene object 3 loads the scene template 3 corresponding to the object into the memory, and the scene template 3 is used.
  • the scene interface 3 is rendered, and the scene interface 3 is displayed in the opened window as shown in Fig. 2c.
  • Figure 2c shows the coverage sequence of each scene interface, wherein the scene interface 1 and the scene interface 2 are covered by the scene interface 3, and the user can only see the scene interface 3 in the window.
  • the scene interface 3 currently displayed in the window is covered by the scene interface 1, as shown in FIG. 2d.
  • the overlay sequence of each scene interface is shown in FIG. 2d, wherein the scene interface 2 and the scene interface 3 are covered by the scene interface 1, and the user can only see the scene interface 1 in the window.
  • the process of creating an object may also be referred to as a process of creating an object instance.
  • the representation of the created object and the created object instance can be used interchangeably.
  • the embodiment of the present application uses the description of the “create object”, and the embodiment of the present application does not specifically declare "Creating an object” can be understood as “creating an object instance.”
  • a window can be created, and no object is displayed in the window at this time.
  • a control that implements a specific function is allowed in the window, such as implementing a "back" key.
  • the scene interface corresponding to the scene object is displayed in the window.
  • the interface of the scene object corresponding to a container object is displayed in the window corresponding to the container object. For example, if a container object corresponds to a window, the interface of all the scene objects corresponding to the container object can share the window and Program running environment.
  • the scene interface of only one scene object in a window is the current active interface, and the user can only see the current active interface.
  • the scene interface of all scene objects corresponding to a container object can be managed through the scene stack.
  • the scene stack can adopt the advanced back-end mechanism to manage the scene interface.
  • the scene interface at the top of the stack is usually the current active interface, and the user can see the interface. Further, the interface can respond to the user's operation.
  • the scenario stack can also use other mechanisms to manage the scenario interface, which is not limited in this embodiment of the present application.
  • object name or object identifier used to identify the container object
  • - Entry method used to define the application entry method. Different entry methods can correspond to different container objects. The way the application is imported can be understood as the way to start the application. The entry files (or entry functions) corresponding to different startup methods may be different, so different windows may need to be displayed.
  • Scene presentation method (expressed as showScene method): Execute this method to create a scene object in the container object and open the scene interface.
  • the input parameters of the method may include, but are not limited to, a name or an identifier of the scene object, which is used to indicate a scene object that needs to be created.
  • a scene object may be created by inheriting the class based on the class of the scene object.
  • the following methods for managing the life cycle of the scene object may be included in the container object.
  • the methods may include, but are not limited to:
  • Scene exit method (expressed as quitScene method): Execute this method to exit the scene object and close the corresponding scene interface.
  • the input parameters of the method may include, but are not limited to, a name or an identifier of the scene object for indicating a scene object that needs to be exited.
  • the close button in the current scene interface or triggers the method by other means, the method is executed.
  • Scene hiding method (represented as hideScene method): Execute this method to hide the scene object and the scene interface corresponding to the object.
  • the input parameters of the method may include, but are not limited to, a name or an identifier of the scene object for indicating a scene object that needs to be hidden.
  • the method is executed.
  • Unhide method (expressed as unhideScene method): Execute this method to unhide the scene object and redisplay the scene interface corresponding to the object.
  • the input parameters of the method may include, but are not limited to, a name or an identifier of the scene object for indicating a scene object that needs to be hidden.
  • the method is executed.
  • the attributes of the scene object may further include:
  • Scene template name or identifier used to identify the scene template associated with the scene object.
  • the method included in the scene object can be defined according to the application function that the scene object needs to implement, and will not be described in detail herein.
  • FIG. 3 shows a life cycle diagram of a scene object by taking the scene object 1 as an example.
  • the method of creating a scene object (the method is represented as showScene method in the following description) is triggered (for example, creating a container object after opening the application, triggering the showScene method in the container object to
  • the main interface is started, wherein the sceneS object is created by executing the showScene method, and the scene object 1 is generated, and the scene interface corresponding to the scene object 1 is generated.
  • the scene interface is displayed in a window corresponding to the container object, and the scene object 1 is The scene object where the current focus is.
  • scene object 1 loses focus in the following cases:
  • Case 1 The showScene method in the container object is executed, a new scene object is created, the new scene object will get the focus, and the scene object 1 loses the focus;
  • Case 2 The hidden scene object method (such as the hideScene method) in the container object is executed, the scene object 1 is hidden, according to the focus management mechanism, the scene object 1 loses focus, and other scene objects obtain focus.
  • the hidden scene object method such as the hideScene method
  • scene object 1 regains the focus, the scene interface corresponding to the scene object 1 object is redisplayed in the window corresponding to the container object. Among them, scene object 1 will regain focus in the following cases:
  • Case 1 The other scene interfaces covering the scene interface corresponding to the scene object 1 are closed. In this case, according to the focus management mechanism, the scene object 1 will regain the focus;
  • Case 2 The focus is switched to the scene object 1. For example, the user moves the focus to the scene interface corresponding to the scene object 1 object through the screen operation, or the user triggers the link to the scene interface corresponding to the scene object 1 through the screen operation or The function key, the focus falls into the scene interface corresponding to the scene object 1;
  • Case 3 Cancel the hiding of scene object 1.
  • the showScene method in the container object or the unhidden method (such as the unhideScene method) cancels the hiding of the scene object 1, and according to the focus management mechanism, the scene object 1 regains the focus.
  • the scene interface corresponding to the scene object 1 is closed, and the scene object 1 is released (that is, the instance of the scene object 1 is destroyed).
  • the quitScene method in the container object is executed.
  • the quitScene method is executed on the scene object where the current focus is located, the scene interface corresponding to the scene object is closed, and the scene object is released (that is, the scene object instance is destroyed).
  • the quitScene method in the container object is executed.
  • FIG. 4 it is a schematic diagram of a page display process provided by an embodiment of the present application. As shown in the figure, the process may include the following steps:
  • a scene object in the container object to be displayed by the scene interface is determined.
  • a container pair includes at least one scene object.
  • the scene object that needs to be displayed on the scene interface may be determined or acquired according to the request. For example, the following situations can be included:
  • Case 1 When the application is started, the container object is created. According to the logic of the application, a scene object in the container object is created (such as the scene object corresponding to the main interface of the application), and the scene object is A scene object that is currently displayed on the scene interface.
  • the first scene object is created in the container object according to the first request.
  • the first request is used to indicate that a scene interface corresponding to the first scene object is created in a window corresponding to the container object.
  • the first request may include a trigger generated by the application launch.
  • an application running framework based on the FPGA system architecture targets the application.
  • the program creates a container object, creates a window corresponding to the container object, and displays the scene object that needs to be created according to the container object's entry function and creates the scene object.
  • Case 2 When a scene object regains focus, the scene object is the scene object that needs to be displayed on the scene interface. For example, when a hidden scene object is unhidden, the scene object regains focus; for example, if a scene scene corresponding to a scene object is covered with other scene interfaces, the other scene interfaces are closed or hidden. After that, the scene object regains focus.
  • the second request after receiving the second request, selecting the second scene object from the created scene objects in the container object according to the second request.
  • the second request is used to switch from the scene interface corresponding to the first scene object to the scene interface corresponding to the second scene object.
  • the second request may be a request to unhide the scene object or a request to return to the previous scene interface.
  • the scene template corresponding to the scene object to be displayed on the scene interface is obtained, and the display object in the scene object to be displayed on the scene interface is performed according to the scene template corresponding to the scene object displayed on the scene interface to be performed. Render and get the corresponding scene interface.
  • the scene object includes an attribute for identifying the associated scene template.
  • the scene template corresponding to the scene object may be acquired according to the attribute value of the attribute in the scene object.
  • the scene interface is displayed in a window corresponding to the container object.
  • the embodiment of the present application further provides a hiding method of a scene object. For example, after receiving the third request, the scene interface corresponding to the third scene object is hidden according to the third request, and the fourth scene object that obtains the focus is determined, and the fourth window is displayed in the window corresponding to the container object.
  • the third request is used to indicate that the scene interface corresponding to the third scene object where the current focus is located is hidden.
  • the embodiment of the present application further provides a method for exiting a scene object. For example, after receiving the fourth request, according to the fourth request, the scene interface corresponding to the fifth scene object is closed, and the fifth scene object is released.
  • the fourth event is used to indicate that the scene interface corresponding to the fifth scene object in the container object is closed. Further, if the scene interface that is currently closed is the unique scene interface in the window corresponding to the container object, the window corresponding to the container object may also be closed, and the container object is released.
  • first scene object to the fifth scene object in the above process only distinguish the scene object for convenience of description, and does not specifically refer to a certain scene object.
  • first to fourth events also distinguish events for convenience of description.
  • a container object may correspond to a plurality of scene objects, and after acquiring a scene object that needs to be displayed in the container object, acquiring an interface template corresponding to the scene object, The display object in the scene object is rendered according to the display object layout and/or the display manner defined in the interface template, and the scene interface corresponding to the scene object is obtained, and displayed in the window corresponding to the container object. Since a container object can correspond to multiple scene objects, the scene interface obtained based on the scene objects can be displayed in the window corresponding to the container object, thereby realizing the purpose of displaying multiple scene interfaces in one window.
  • the architecture of container objects and scene objects in an application for browsing network resources can be as shown in FIG. 1.
  • the container object of the application corresponds to three scene objects, wherein the scene interface of the scene object 1 is a scene interface that is opened by default when the application starts.
  • the scene object 1 is used to display a list of movie resources
  • the scene object 2 is used to display a list of drama resources
  • the scene object 3 is used to display a list of news information resources.
  • the window 500 corresponding to the container object of the application may be as shown in FIG. 5A.
  • the window 500 includes a navigation bar 501.
  • the navigation bar 501 includes a navigation menu 502 for the scene object 1 (corresponding to the navigation menu 502).
  • the navigation bar 501 also includes an exit function button 503 for exiting the application.
  • the window 500 further includes a scene interface display area for displaying a scene interface of the scene object 1, the scene object 2, or the scene object 3.
  • the container object corresponding to the application is created, and the corresponding window 500 is created. Since the scene interface set by default when the application is started is a scene interface for displaying a movie resource list, the container object calls a method for creating the scene object to create the scene object 1.
  • the scene object 1 uses the scene template 1 corresponding to the scene object to render the scene interface for displaying the movie resource list, and obtains the scene interface 1 corresponding to the scene object 1, including the icon of the movie resource (such as the gray filled block in FIG. 5B).
  • a textual introduction further comprising a function button for controlling page turning (such as "previous page”, “next page” and “return” in FIG. 5B), and in the window 500 corresponding to the container object
  • page turning such as "previous page”, “next page” and “return” in FIG. 5B
  • the scene interface is displayed in the scene interface display area 504, as shown in FIG. 5B.
  • the container object calls the method for creating the scene object to create the scene object 2.
  • the scene object 3 uses the scene template 3 corresponding to the scene object to render the scene interface for displaying the news information resource list, and obtains the scene interface 3 corresponding to the scene object 3, including the news title list (the gray filled strip in FIG. 5C). Representing a news title), further including a function button for controlling page turning (such as "previous page”, “next page”, and “return” in FIG. 5C), and a scene in the window 500 corresponding to the container object
  • the scene interface is displayed in the interface display area 504, as shown in FIG. 5C.
  • the user selects the movie in the navigation menu 502 in the navigation bar 501 in the window 500 through the remote controller, then the scene object 3 loses focus, the scene object 1 regains the focus, and the scene interface of the scene object 1 (ie, the movie resource list is displayed)
  • the scene interface is displayed in the scene interface display area 504 in the window 500.
  • the embodiment of the present application further provides a page display device, which can implement the page display function described in the foregoing embodiment.
  • FIG. 6 is a schematic structural diagram of a page display apparatus according to an embodiment of the present disclosure.
  • the apparatus may include: a determining module 601, a rendering module 602, and a display module 603, where:
  • the determining module 601 is configured to determine a scene object to be displayed by the scene interface in the container object, where the container object includes at least one scene object, and the rendering module 602 is configured to use the scene corresponding to the scene object displayed by the scene interface to be performed.
  • the template is configured to render a display object in the scene object to be displayed on the scene interface, and obtain a corresponding scene interface, where the interface template is used to define a layout and/or a display manner of the display object in the scene object; and the display module 603 And the method for displaying the scene interface in a window corresponding to the container object.
  • the determining module 601 is configured to: receive a first request, where the first request is used to create a scene interface corresponding to the first scene object in a window corresponding to the container object; according to the first request, The first scene object is created in the container object.
  • the determining module 601 is specifically configured to: receive a second request, where the second request is used to switch from a scene interface corresponding to the first scene object to a scene interface corresponding to the second scene object; And selecting the second scene object from the created scene objects in the container object.
  • the display module 603 is configured to: in the window corresponding to the container object, cover the scene interface corresponding to the first scene by using a scene interface corresponding to the second scene.
  • the display module 603 is further configured to: receive a third request, where the third request is used to indicate that a scene interface corresponding to the third scene object where the current focus is hidden is hidden; and the third request is performed according to the third request.
  • the scene interface corresponding to the scene object is hidden; the fourth scene object that obtains the focus is determined, and the scene interface corresponding to the fourth scene object is displayed in the window corresponding to the container object.
  • the display module 603 is further configured to: receive a fourth request, where the fourth request is used to indicate that the scene interface corresponding to the fifth scene object in the container object is closed; and the fourth request is closed according to the fourth request The scene interface corresponding to the five scene objects releases the fifth scene object.
  • the display module 603 is further configured to: if the currently closed scene interface is a unique scene interface in the window corresponding to the container object, close the window corresponding to the container object, and release the container object.
  • the determining module 601 is further configured to: after determining a scene object to be displayed by the scene interface in the container object, start the container object, and create a window corresponding to the container object.
  • the container object includes a scene display method, where the scene display method is used to display a scene interface corresponding to the scene object in a window corresponding to the container object.
  • the display module 603 is specifically configured to: execute a scene display method in the container object by using a scene object that is displayed on the scene to be displayed, and display the scene interface in a window corresponding to the container object.
  • one scene object corresponds to one or more scene templates; and/or one scene template is dedicated to one scene object or shared by multiple scene objects.
  • the container object is a container object in a television device operating system
  • the scene object is a scene object in a television device operating system
  • the embodiment of the present application further provides a communication device, which can implement the page display process described in the foregoing embodiment.
  • the communication device can be a television device, such as a smart television.
  • FIG. 7 exemplarily illustrates a communication device 700 in accordance with various embodiments.
  • Apparatus 700 can include one or more processors 702 coupled to at least one processor 702, non-volatile memory (NMV)/memory 704 coupled to system control logic 701, network interface 706 Coupled to system control logic 701.
  • NMV non-volatile memory
  • Processor 702 can include one or more single core processors or multi-core processors.
  • Processor 702 can include any general purpose processor or combination of special purpose processors (eg, image processor, application processor baseband processor, etc.).
  • System control logic 701 in one embodiment may include any suitable interface controller to provide any suitable interface to at least one of processors 702, and/or to any suitable communication in communication with system control logic 701. Any suitable interface to the device or component.
  • System control logic 701 in one embodiment may include one or more memory controllers to provide an interface to system memory 703.
  • System memory 703 is used to trigger and store data and/or instructions.
  • corresponding device 700 in one embodiment, system memory 703 can include any suitable volatile memory.
  • NVM/memory 704 can include one or more tangible, non-transitory computer readable media for storing data and/or instructions.
  • NVM/memory 704 can include any suitable non-volatile storage device, such as one or more hard disk devices (HDDs), one or more compact disks (CDs), and/or one or more Digital versatile disk (DVD).
  • HDDs hard disk devices
  • CDs compact disks
  • DVD Digital versatile disk
  • NVM/memory 704 can include a storage resource that is physically part of, but not necessarily part of, the device that the system is installed on or can be accessed.
  • NVM/memory 704 can be accessed by the network via network interface 706.
  • System memory 703 and NVM/memory 704 can each include a copy of temporary or persistent instructions 710.
  • the instructions 710 can include instructions that, when executed by at least one of the processors 702, cause the apparatus 700 to implement one or a combination of the methods described in Figures 3-4.
  • instructions 710 or hardware, firmware, and/or software components may additionally/alternatively be placed in system control logic 701, network interface 706, and/or processor 702.
  • Network interface 706 can include a receiver to provide device 700 with a wireless interface to communicate with one or more networks and/or any suitable device.
  • Network interface 706 can include any suitable hardware and/or firmware.
  • Network interface 706 can include multiple antennas to provide a multiple input multiple output wireless interface.
  • network interface 706 can include a network adapter, a wireless network adapter, a telephone modem, and/or a wireless modem.
  • At least one of the processors 702 can be packaged with logic for one or more controllers of system control logic. In one embodiment, at least one of the processors may be packaged with logic for one or more controllers of system control logic to form a system level package. In one embodiment, at least one of the processors can be integrated on the same die as the logic of one or more controllers for system control logic. In one embodiment, at least one of the processors can be integrated on the same die as the logic of one or more controllers for system control logic to form a system chip.
  • Apparatus 700 can further include an input/output device 705.
  • Input/output device 705 can include a user interface intended to enable a user to interact with device 700, can include a peripheral component interface that is designed to enable peripheral components to interact with the system, and/or can include sensors for determining environmental conditions And/or location information about the device 700.
  • the embodiment of the present application further provides a communication device, including: one or more processors; and one or more computer readable media having instructions stored thereon, the instructions being When executed by a plurality of processors, the communication device is caused to perform the method described in the previous embodiments.
  • the embodiment of the present application further provides a communication device.
  • the communication device includes one or more processors, and one or more computer readable media having stored thereon instructions that, when executed by the one or more processors, cause the communication
  • the apparatus performs the method described in the previous embodiments.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Stored Programmes (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

A method and an apparatus for page presentation. The method comprises: determining a scene object in a container object, for which scene object a scene interface is to be presented, one container object comprising at least one scene object; according to a scene template corresponding to said scene object for which a scene interface is to be presented, rendering a display object in said scene object for which a scene interface is to be presented, to obtain the corresponding scene interface, an interface template being used for defining the layout and/or display modes of display objects in a scene object; and presenting the scene interface in a window corresponding to said container object. The page presentation method and apparatus can present different scene interfaces in a single window.

Description

一种页面展示方法及装置Page display method and device
本申请要求2017年01月11日递交的申请号为201710020749.6、发明名称为“一种页面展示方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims the priority of the Japanese Patent Application Serial No. JP-A-----------
技术领域Technical field
本申请涉及计算机技术领域,尤其涉及一种页面展示方法及装置。The present application relates to the field of computer technology, and in particular, to a page display method and apparatus.
背景技术Background technique
在基于Web页面的应用中,客户端解析页面代码文件,渲染页面,并在窗口中显示。In a web-based application, the client parses the page code file, renders the page, and displays it in the window.
目前,一个窗口展示一个页面,如果需要展示多个页面,则需要创建多个窗口,这需要较大的系统开销。另外,在通过多个窗口显示多个页面的情况下,如果进行页面间切换,则需要进行窗口间切换,影响切换效率。Currently, a window displays a page. If multiple pages need to be displayed, multiple windows need to be created, which requires a large overhead. In addition, when a plurality of pages are displayed through a plurality of windows, if inter-page switching is performed, switching between windows is required, which affects switching efficiency.
发明内容Summary of the invention
本申请实施例提供一种页面展示方法及装置。The embodiment of the present application provides a page display method and device.
本申请实施例提供的页面展示方法,包括:The page display method provided by the embodiment of the present application includes:
确定容器对象中待进行场景界面展示的场景对象;其中,一个容器对象中包括至少一个场景对象;Determining a scene object in the container object to be displayed by the scene interface; wherein a container object includes at least one scene object;
根据与所述待进行场景界面展示的场景对象对应的场景模板,对所述待进行场景界面展示的场景对象中的显示对象进行渲染,得到对应的场景界面;其中,界面模板用于定义场景对象中的显示对象的布局和/或显示方式;And displaying, according to the scene template corresponding to the scene object to be displayed on the scene interface, the display object in the scene object to be displayed on the scene interface, and obtaining a corresponding scene interface; wherein the interface template is used to define the scene object The layout and/or display mode of the display object in ;
在所述容器对象对应的窗口中展示所述场景界面。The scene interface is displayed in a window corresponding to the container object.
本申请实施例提供的页面展示装置,包括:The page display device provided by the embodiment of the present application includes:
确定模块,用于确定容器对象中待进行场景界面展示的场景对象;其中,一个容器对象中包括至少一个场景对象;a determining module, configured to determine a scene object in the container object to be displayed by the scene interface; wherein the container object includes at least one scene object;
渲染模块,用于根据与所述待进行场景界面展示的场景对象对应的场景模板,对所述待进行场景界面展示的场景对象中的显示对象进行渲染,得到对应的场景界面;其中,界面模板用于定义场景对象中的显示对象的布局和/或显示方式;a rendering module, configured to render a display object in the scene object to be displayed by the scene interface according to the scene template corresponding to the scene object to be displayed on the scene interface, to obtain a corresponding scene interface; wherein, the interface template Used to define the layout and/or display mode of the display objects in the scene object;
显示模块,用于在所述容器对象对应的窗口中展示所述场景界面。And a display module, configured to display the scene interface in a window corresponding to the container object.
本申请实施例提供的通信装置,包括:The communication device provided by the embodiment of the present application includes:
存储器,用于存储计算机程序指令;a memory for storing computer program instructions;
处理器,耦合到所述存储器,用于读取所述存储器存储的计算机程序指令,并作为响应,执行上述实施例所述的方法。A processor coupled to the memory for reading computer program instructions stored by the memory and, in response, performing the method described in the above embodiments.
本申请另一实施例提供的通信装置中,包括:一个或多个处理器;以及一个或多个计算机可读介质,所述可读介质上存储有指令,所述指令被所述一个或多个处理器执行时,使得所述通信装置执行上述实施例所述的方法。A communication device provided by another embodiment of the present application includes: one or more processors; and one or more computer readable media having instructions stored on the readable medium, the instructions being the one or more The processor, when executed, causes the communication device to perform the method described in the above embodiments.
本申请的上述实施例中,一个容器对象中包括多个场景对象,当确定该容器对象中待进行场景展示的场景对象后,根据该场景对象对应的界面模板中定义的显示对象布局和/或显示方式,对该场景对象中的显示对象进行渲染,得到该场景对象对应的场景界面,并在该容器对象所对应的窗口中进行显示。由于一个容器对象中可包含多个场景对象,因此基于这些场景对象所得到的场景界面均可在该容器对象所对应的窗口中进行展示,实现了一个窗口中可展示多种场景界面。In the foregoing embodiment of the present application, a container object includes a plurality of scene objects, and after determining a scene object to be displayed in the container object, according to the display object layout and/or defined in the interface template corresponding to the scene object. The display mode is to render the display object in the scene object, and obtain a scene interface corresponding to the scene object, and display the window corresponding to the container object. Since a container object can include multiple scene objects, the scene interface obtained based on the scene objects can be displayed in the window corresponding to the container object, and a plurality of scene interfaces can be displayed in one window.
附图说明DRAWINGS
图1为本申请实施例中一个应用程序中包含的容器对象和Scene对象的系统架构示意图;1 is a schematic diagram of a system architecture of a container object and a Scene object included in an application in an embodiment of the present application;
图2a为本申请实施例中一个窗口中展示第一场景界面的示意图;2a is a schematic diagram showing a first scene interface in a window in an embodiment of the present application;
图2b为本申请实施例中一个窗口中展示第二场景界面的示意图;2b is a schematic diagram showing a second scene interface in a window in the embodiment of the present application;
图2c为本申请实施例中一个窗口中展示第三场景界面的示意图;2c is a schematic diagram showing a third scene interface in a window in the embodiment of the present application;
图2d为本申请实施例中一个窗口中展示第四场景界面的示意图;2d is a schematic diagram showing a fourth scene interface in a window in the embodiment of the present application;
图3为本申请实施例中Scene对象的生命周期示意图;3 is a schematic diagram of a life cycle of a Scene object in an embodiment of the present application;
图4为本申请实施例提供的页面展示流程示意图;4 is a schematic diagram of a page display process provided by an embodiment of the present application;
图5A为本申请实施例中的应用窗口展示内容示意图;FIG. 5A is a schematic diagram showing content displayed by an application window in an embodiment of the present application; FIG.
图5B为本申请实施例中的应用窗口展示内容示意图;FIG. 5B is a schematic diagram showing content displayed by an application window in an embodiment of the present application;
图5C为本申请实施例中的应用窗口展示内容示意图;5C is a schematic diagram showing content displayed by an application window in an embodiment of the present application;
图6为本申请实施例提供的页面展示装置的结构示意图;FIG. 6 is a schematic structural diagram of a page display apparatus according to an embodiment of the present application;
图7为本申请实施例提供的计算机设备的结构示意图。FIG. 7 is a schematic structural diagram of a computer device according to an embodiment of the present application.
具体实施方式detailed description
本申请实施例提供了页面展示方案,可在一个用于进行页面展示的容器对象所对应 的一个窗口中,根据需要来展示不同的场景界面,从而实现基于单窗口(或称单页面)的多场景展示,可以提高场景界面之间的切换效率。The embodiment of the present application provides a page display solution, which can display different scene interfaces according to needs in a window corresponding to a container object for displaying a page, thereby implementing a single window (or a single page). The scene display can improve the switching efficiency between scene interfaces.
为了更清楚地理解本申请实施例,下面对本申请实施例涉及到的一些技术术语进行简单说明。In order to more clearly understand the embodiments of the present application, some technical terms related to the embodiments of the present application are briefly described below.
-容器对象:用于进行窗口展示的对象,提供展示框架,如提供页面或窗口,所提供的页面或窗口中不包含显示对象。一个容器对象可对应多个场景对象。容器对象中包含有属性和方法。一个容器对象的属性可包括该容器对象的名称或标识。本申请实施例中,容器对象的方法中可包括场景对象展示方法,针对容器对象中的一个场景对象执行该方法,可在该容器对象对应的窗口中,展示该场景对象对应的场景界面。一个容器对象所包括的方法中还可包括用于管理场景对象生命周期的其他方法,比如实现关闭场景对象的方法、用于实现隐藏场景对象的方法等。- Container object: An object used for window display, providing a display frame, such as providing a page or window, and the provided page or window does not contain a display object. A container object can correspond to multiple scene objects. The container object contains properties and methods. The properties of a container object can include the name or identity of the container object. In the embodiment of the present application, the method of the container object may include a scene object display method, and the method is performed on a scene object in the container object, and the scene interface corresponding to the scene object may be displayed in a window corresponding to the container object. The method included in a container object may further include other methods for managing the life cycle of the scene object, such as a method for implementing a scene object to be closed, a method for implementing a scene object to be hidden, and the like.
-场景对象:用于进行场景界面展示的对象,场景界面中可包括显示对象。场景对象中包含有属性和方法。一个场景对象的属性可包括该场景对象的名称或标识。一个场景对象的方法中可包括用于实现应用程序的某种或某些功能的方法。- Scene object: an object used to display the scene interface, and the scene interface may include a display object. Scene objects contain properties and methods. The properties of a scene object may include the name or identity of the scene object. A method of a scene object may include methods for implementing some or some of the functions of the application.
-显示对象:显示对象可构成页面元素。在Web规范中,显示对象可以是指DOM(Document Object Model,文档对象模型)对象。通过DOM可以访问所有的超文本标记语言(Hyper Text Mark-up Language,简称HTML)元素,连同它们所包含的文本和属性。可以对其中的内容进行修改和删除,同时也可以创建新的元素。举例来说,DOM对象可包括:代表<a>元素(用于提供链接)的Anchor对象,代表<button>元素(功能按钮)的Button对象,代表<form>元素(表单元素)的Form对象,等等,在此不再一一列举。- Display object: The display object can constitute a page element. In the web specification, a display object can refer to a DOM (Document Object Model) object. The DOM provides access to all of the Hyper Text Mark-up Language (HTML) elements, along with the text and attributes they contain. You can modify and delete the content, as well as create new ones. For example, a DOM object may include: an Anchor object representing an <a> element (for providing a link), a Button object representing a <button> element (a function button), and a Form object representing a <form> element (a form element), Wait, no longer list them one by one.
-窗口:由容器对象创建。一个容器对象可对应一个窗口。当然,一个容器对象也可以对应多个窗口。- Window: Created by a container object. A container object can correspond to a window. Of course, a container object can also correspond to multiple windows.
-场景界面:由场景对象创建。一个场景对象对应一个场景界面,场景界面中可包含一个或多个显示对象,对于一个场景界面,根据创建它的场景对象所对应的容器对象,该场景界面可在该容器对象所对应的窗口中展示。- Scene interface: Created by a scene object. A scene object corresponds to a scene interface, and the scene interface may include one or more display objects. For a scene interface, according to a container object corresponding to the scene object that created the scene, the scene interface may be in a window corresponding to the container object. Show.
本申请实施例可适用于基于Web HTML5技术的电子设备中,比如智能电视。以智能电视为例,为了降低系统成本和功耗以及智能电视相关应用的运行性能,可采用某种特定的现场可编程门阵列(Field-Programmable Gate Array,FPGA)架构,该FPGA系统架构中集成了硬核处理器系统,具体包括处理器、外设和存储器控制器,可以降低系 统功耗和成本以及减小电路板面积。基于Web HTML5技术的应用可运行于该FPGA系统架构,应用开发者可按照HTML5和JavaScript编程规范编写程序代码,得到可运行于该FPGA系统架构的应用程序,从而基于JavaScript编程规范中的对象机制实现需要的功能。当然,上述FPGA系统架构仅为一种示例,本申请实施例不排除其他类型的FPGA系统架构。The embodiments of the present application can be applied to an electronic device based on Web HTML5 technology, such as a smart TV. Taking smart TV as an example, in order to reduce system cost and power consumption and the performance of smart TV related applications, a specific Field-Programmable Gate Array (FPGA) architecture can be used, which is integrated in the FPGA system architecture. A hard processor system, including processors, peripherals, and memory controllers, reduces system power and cost and reduces board space. Applications based on Web HTML5 technology can run on the FPGA system architecture. Application developers can write program code according to HTML5 and JavaScript programming specifications, and get applications that can run on the FPGA system architecture, thus implementing based on the object mechanism in the JavaScript programming specification. The features you need. Of course, the foregoing FPGA system architecture is only an example, and the embodiments of the present application do not exclude other types of FPGA system architectures.
在电视设备或其他类似的电子设备中,以特定FPGA系统架构为基础的应用所运行的应用程序运行框架中,提供有应用程序运行所需的类库,可以为应用程序运行提供运行环境。其中,与本申请实施例相关的对象可包括:容器对象和场景对象。目前一些电视设备上基于FPGA系统架构的应用程序运行框架中,提供有Stage对象和Scene对象。其中,Stage对象相当于上述的容器对象,Scene对象相当于上述的场景对象。In a television device or other similar electronic device, an application running framework running on an application based on a specific FPGA system architecture provides a class library required for the application to run, and can provide an operating environment for the application to run. The objects related to the embodiments of the present application may include: a container object and a scene object. Currently, some TV devices are provided with a Stage object and a Scene object in an application running framework based on an FPGA system architecture. Among them, the Stage object is equivalent to the above-mentioned container object, and the Scene object is equivalent to the above-mentioned scene object.
下面对本申请实施例的具体实现过程进行详细描述。The specific implementation process of the embodiment of the present application is described in detail below.
本申请实施例中,在开发应用程序时,可使用符合HTML5规范的代码和JavaScript代码定义容器对象和场景对象。图1示例性地示出了一个应用程序中包含的容器对象(比如Stage对象)和场景对象(比如Scene对象)的系统架构。如图1所示,一个应用程序中可包含一个或多个容器对象(图1中仅示出了一个容器对象),不同的应用程序入口可对应不同的容器对象。一个容器对象可对应一个或多个场景对象(图1中示出了一个容器对象对应3个场景对象,分别为场景对象1、场景对象2、场景对象3)。每个场景对象可对应一个或多个场景模板(图1中仅示出了一个场景对象对应一个场景模板),一个场景模板可专用于一个场景对象,多个场景对象也可共享使用一个场景模板。场景模板主要用于定义场景界面中的显示对象的布局或显示方式,或者定义显示对象的布局和显示方式。In the embodiment of the present application, when developing an application, a container object and a scene object may be defined using code and JavaScript code conforming to the HTML5 specification. FIG. 1 exemplarily shows a system architecture of a container object (such as a Stage object) and a scene object (such as a Scene object) contained in an application. As shown in Figure 1, an application can contain one or more container objects (only one container object is shown in Figure 1), and different application portals can correspond to different container objects. A container object may correspond to one or more scene objects (one container object corresponding to three scene objects in FIG. 1 is scene object 1, scene object 2, scene object 3). Each scene object may correspond to one or more scene templates (only one scene object corresponds to one scene template in FIG. 1 ), one scene template may be dedicated to one scene object, and multiple scene objects may also share one scene template. . The scene template is mainly used to define the layout or display mode of the display object in the scene interface, or to define the layout and display mode of the display object.
其中,显示对象的布局可包括:显示对象所代表的页面元素在页面中的位置和排列方式,场景界面的大小等。显示对象的显示方式可包括:显示对象所代表的页面元素的显示颜色、字体大小字型。场景模板可用层叠样式表(Cascading Style Sheets,简称CSS)文件定义。当创建场景对象后需要展示对应的场景界面时,场景对象可加载该场景对象对应的场景模板,当场景对象退出时,释放该场景对象对应的场景模板。The layout of the display object may include: a position and an arrangement of the page elements represented by the display object in the page, a size of the scene interface, and the like. The display manner of the display object may include: displaying the display color of the page element represented by the object, and the font size font. Scene templates can be defined using Cascading Style Sheets (CSS) files. When a scene object needs to be displayed, the scene object can be loaded with the scene template corresponding to the scene object. When the scene object is exited, the scene template corresponding to the scene object is released.
当应用程序的入口被调用后,与该应用程序的入口对应的容器对象被创建,该容器对象对应的窗口被创建和打开;根据应用程序的执行逻辑,相应的场景对象1被创建,场景对象1加载与该对象对应的场景模板1到内存,使用场景模板1对场景界面1进行渲染,该场景界面1显示在被打开的窗口中,如图2a所示。When the entry of the application is invoked, a container object corresponding to the entry of the application is created, and a window corresponding to the container object is created and opened; according to the execution logic of the application, the corresponding scene object 1 is created, the scene object 1 Load the scene template 1 corresponding to the object into the memory, and use the scene template 1 to render the scene interface 1, and the scene interface 1 is displayed in the opened window, as shown in FIG. 2a.
当根据用户的操作或者应用程序的逻辑,需要显示场景对象2对应的场景时,场景对象2被创建,场景对象2加载与该对象对应的场景模板2到内存,使用场景模板2对场景界面2进行渲染,该场景界面2显示在被打开的窗口中,如图2b所示。图2b示出了场景界面1和场景界面2的覆盖顺序,其中,场景界面1被场景界面2所覆盖,用户仅能在该窗口中看到场景界面2。When the scene corresponding to the scene object 2 needs to be displayed according to the operation of the user or the logic of the application, the scene object 2 is created, the scene object 2 loads the scene template 2 corresponding to the object to the memory, and the scene template 2 is used for the scene interface 2 Rendering, the scene interface 2 is displayed in the opened window, as shown in Figure 2b. Figure 2b shows the coverage sequence of scene interface 1 and scene interface 2, where scene interface 1 is covered by scene interface 2, and the user can only see scene interface 2 in the window.
同样的,当根据用户的操作或者应用程序的逻辑,需要显示场景对象3对应的场景时,场景对象3被创建,场景对象3加载与该对象对应的场景模板3到内存,使用场景模板3对场景界面3进行渲染,该场景界面3显示在被打开的窗口中,如图2c所示。图2c示出了各场景界面的覆盖顺序,其中,场景界面1和场景界面2被场景界面3所覆盖,用户仅能在该窗口中看到场景界面3。Similarly, when the scene corresponding to the scene object 3 needs to be displayed according to the operation of the user or the logic of the application, the scene object 3 is created, the scene object 3 loads the scene template 3 corresponding to the object into the memory, and the scene template 3 is used. The scene interface 3 is rendered, and the scene interface 3 is displayed in the opened window as shown in Fig. 2c. Figure 2c shows the coverage sequence of each scene interface, wherein the scene interface 1 and the scene interface 2 are covered by the scene interface 3, and the user can only see the scene interface 3 in the window.
当根据用户的操作或者应用程序的逻辑,需要从该窗口中当前显示的场景界面3切换到场景界面1时,该窗口中当前显示的场景界面3被场景界面1覆盖,如图2d所示。图2d中示出了各场景界面的覆盖顺序,其中,场景界面2和场景界面3被场景界面1所覆盖,用户仅能在该窗口中看到场景界面1。When it is required to switch from the scene interface 3 currently displayed in the window to the scene interface 1 according to the operation of the user or the logic of the application, the scene interface 3 currently displayed in the window is covered by the scene interface 1, as shown in FIG. 2d. The overlay sequence of each scene interface is shown in FIG. 2d, wherein the scene interface 2 and the scene interface 3 are covered by the scene interface 1, and the user can only see the scene interface 1 in the window.
需要说明的是,在有些实施例中,创建对象的过程也可称为创建对象实例的过程。在应用程序编程领域,通常情况下,创建对象和创建对象实例的表述方式可以互用,本申请实施例使用“创建对象”的描述方式,在不特别声明的情况下,本申请实施例中的“创建对象”可以理解为“创建对象实例”。It should be noted that in some embodiments, the process of creating an object may also be referred to as a process of creating an object instance. In the field of application programming, in general, the representation of the created object and the created object instance can be used interchangeably. The embodiment of the present application uses the description of the “create object”, and the embodiment of the present application does not specifically declare "Creating an object" can be understood as "creating an object instance."
上述过程中,一个容器对象创建后,可创建一个窗口,此时的窗口中没有显示对象,可选地,窗口中允许存在实现特定功能的控件,比如实现“回退”键等。当在该容器对象中创建场景对象后,该场景对象所对应的场景界面在该窗口中显示。一个容器对象所对应的场景对象的界面均在该容器对象所对应的窗口中展示,比如在一个容器对象对应一个窗口的情况下,该容器对象所对应的所有场景对象的界面可共用该窗口以及程序运行环境。In the above process, after a container object is created, a window can be created, and no object is displayed in the window at this time. Optionally, a control that implements a specific function is allowed in the window, such as implementing a "back" key. When a scene object is created in the container object, the scene interface corresponding to the scene object is displayed in the window. The interface of the scene object corresponding to a container object is displayed in the window corresponding to the container object. For example, if a container object corresponds to a window, the interface of all the scene objects corresponding to the container object can share the window and Program running environment.
一般情况下,一个窗口中仅有一个场景对象的场景界面是当前活动界面,用户仅能看到当前活动界面。一个容器对象所对应的所有场景对象的场景界面可通过场景栈进行管理。场景栈可采用先进后出的机制进行场景界面的管理,位于栈顶的场景界面通常为当前活动界面,用户可看到该界面,进一步地,该界面可响应用户的操作。当然场景栈也可以采用其他机制管理场景界面,本申请实施例对此不作限制。In general, the scene interface of only one scene object in a window is the current active interface, and the user can only see the current active interface. The scene interface of all scene objects corresponding to a container object can be managed through the scene stack. The scene stack can adopt the advanced back-end mechanism to manage the scene interface. The scene interface at the top of the stack is usually the current active interface, and the user can see the interface. Further, the interface can respond to the user's operation. Of course, the scenario stack can also use other mechanisms to manage the scenario interface, which is not limited in this embodiment of the present application.
容器对象中可包括以下属性:The following properties can be included in the container object:
-对象名称或对象标识:用于标识容器对象;- object name or object identifier: used to identify the container object;
-入口方式:用于定义应用程序入口方式,不同的入口方式可对应不同的容器对象。应用程序的入口方式可以被理解为启动应用程序的方式,不同的启动方式所对应的入口文件(或入口函数)可能不同,因此可能需要展示不同的窗口。- Entry method: used to define the application entry method. Different entry methods can correspond to different container objects. The way the application is imported can be understood as the way to start the application. The entry files (or entry functions) corresponding to different startup methods may be different, so different windows may need to be displayed.
容器对象中可包括以下方法:The following methods can be included in the container object:
-场景展示方法(表示为showScene方法):执行该方法可在容器对象中创建场景对象,打开场景界面。通过调用容器对象中的该方法所创建得到的场景对象,可共享该容器对象所对应的窗口以及应用程序运行环境。该方法的输入参数可包括但不限于:场景对象的名称或标识,用于指示需要创建的场景对象。在具体实施时,可基于场景对象的类,通过继承该类创建得到场景对象。- Scene presentation method (expressed as showScene method): Execute this method to create a scene object in the container object and open the scene interface. By calling the scene object created by the method in the container object, the window corresponding to the container object and the application running environment can be shared. The input parameters of the method may include, but are not limited to, a name or an identifier of the scene object, which is used to indicate a scene object that needs to be created. In a specific implementation, a scene object may be created by inheriting the class based on the class of the scene object.
进一步地,容器对象中还可包括以下用于管理场景对象生命周期的方法,举例来说,这些方法可包括但不限于:Further, the following methods for managing the life cycle of the scene object may be included in the container object. For example, the methods may include, but are not limited to:
-场景退出方法(表示为quitScene方法):执行该方法可退出场景对象,关闭对应的场景界面。该方法的输入参数可包括但不限于:场景对象的名称或标识,用于指示需要退出的场景对象。具体实施时,当用户点击当前场景界面中的关闭键,或者通过其他方式触发该方法时,该方法被执行。- Scene exit method (expressed as quitScene method): Execute this method to exit the scene object and close the corresponding scene interface. The input parameters of the method may include, but are not limited to, a name or an identifier of the scene object for indicating a scene object that needs to be exited. In a specific implementation, when the user clicks the close button in the current scene interface, or triggers the method by other means, the method is executed.
进一步地,容器对象中还可包括以下方法:Further, the following methods may also be included in the container object:
-场景隐藏方法(表示为hideScene方法):执行该方法可隐藏场景对象以及该对象对应的场景界面。该方法的输入参数可包括但不限于:场景对象的名称或标识,用于指示需要隐藏的场景对象。具体实施时,当用户点击当前场景界面中的隐藏键,或者通过其他方式触发该方法时,该方法被执行。- Scene hiding method (represented as hideScene method): Execute this method to hide the scene object and the scene interface corresponding to the object. The input parameters of the method may include, but are not limited to, a name or an identifier of the scene object for indicating a scene object that needs to be hidden. In a specific implementation, when the user clicks a hidden key in the current scene interface, or triggers the method by other means, the method is executed.
-取消隐藏方法(表示为unhideScene方法):执行该方法可取消隐藏场景对象,重新显示该对象对应的场景界面。该方法的输入参数可包括但不限于:场景对象的名称或标识,用于指示需要隐藏的场景对象。具体实施时,当用户点击当前场景界面中的取消隐藏键,或者通过其他方式触发该方法时,该方法被执行。- Unhide method (expressed as unhideScene method): Execute this method to unhide the scene object and redisplay the scene interface corresponding to the object. The input parameters of the method may include, but are not limited to, a name or an identifier of the scene object for indicating a scene object that needs to be hidden. In a specific implementation, when the user clicks the unhide key in the current scene interface, or triggers the method by other means, the method is executed.
进一步地,容器对象中还可包括以下方法:Further, the following methods may also be included in the container object:
-容器对象的打开方法:执行该方法可打开容器对象;- Open method of the container object: Execute this method to open the container object;
-容器对象的关闭方法:执行该方法可关闭容器对象。- Close method of the container object: Execute this method to close the container object.
场景对象中可包括以下属性:The following properties can be included in the scene object:
-对象名称或对象标识:用于标识场景对象。- Object name or object ID: Used to identify the scene object.
进一步地,场景对象的属性中还可包括:Further, the attributes of the scene object may further include:
-场景模板名称或标识:用于标识该场景对象所关联的场景模板。- Scene template name or identifier: used to identify the scene template associated with the scene object.
场景对象中包括的方法,可根据该场景对象需要实现的应用功能进行定义,在此不再详述。The method included in the scene object can be defined according to the application function that the scene object needs to implement, and will not be described in detail herein.
需要说明的是,上述方法命名方式仅为示例,本申请实施例并不限制方法的命名方式,只要能够实现上述容器对象和场景对象生命周期的方法,均在本申请的保护范围内。It should be noted that the naming manner of the above method is only an example, and the method in the present application does not limit the naming manner of the method, as long as the method for implementing the container object and the life cycle of the scene object is within the protection scope of the present application.
图3以场景对象1为例,示出了场景对象的生命周期示意图。FIG. 3 shows a life cycle diagram of a scene object by taking the scene object 1 as an example.
如图中的301至302所示,当创建场景对象的方法(以下描述中将该方法表示为showScene方法)被触发时(比如打开应用程序后创建容器对象,触发该容器对象中的showScene方法以启动主界面,其中,执行showScene方法可创建场景对象),执行该创建得到场景对象1,生成该场景对象1对应的场景界面,该场景界面在容器对象对应的窗口中被显示,场景对象1为当前焦点所在的场景对象。As shown in 301 to 302 in the figure, when the method of creating a scene object (the method is represented as showScene method in the following description) is triggered (for example, creating a container object after opening the application, triggering the showScene method in the container object to The main interface is started, wherein the sceneS object is created by executing the showScene method, and the scene object 1 is generated, and the scene interface corresponding to the scene object 1 is generated. The scene interface is displayed in a window corresponding to the container object, and the scene object 1 is The scene object where the current focus is.
如图中的302至303所示,若焦点切换到其他场景对象,则场景对象1对应的场景界面被获得焦点的场景对象所对应的场景界面所覆盖。其中,在以下情况下,场景对象1会失去焦点:As shown in 302 to 303 in the figure, if the focus is switched to another scene object, the scene interface corresponding to the scene object 1 is covered by the scene interface corresponding to the scene object that has obtained the focus. Among them, scene object 1 loses focus in the following cases:
情况1:该容器对象中的showScene方法被执行,创建新的场景对象,该新的场景对象将获得焦点,场景对象1失去焦点;Case 1: The showScene method in the container object is executed, a new scene object is created, the new scene object will get the focus, and the scene object 1 loses the focus;
情况2:该容器对象中的隐藏场景对象方法(比如hideScene方法)被执行,场景对象1被隐藏,根据焦点管理机制,场景对象1失去焦点,其他场景对象获得焦点。Case 2: The hidden scene object method (such as the hideScene method) in the container object is executed, the scene object 1 is hidden, according to the focus management mechanism, the scene object 1 loses focus, and other scene objects obtain focus.
如图中的303至302所示,若场景对象1重新获得焦点,则在该容器对象对应的窗口中重新显示场景对象1对象对应的场景界面。其中,在以下情况下,场景对象1会重新获得焦点:As shown in 303 to 302 of the figure, if the scene object 1 regains the focus, the scene interface corresponding to the scene object 1 object is redisplayed in the window corresponding to the container object. Among them, scene object 1 will regain focus in the following cases:
情况1:覆盖在场景对象1对应的场景界面上的其他场景界面被关闭。此种情况下,根据焦点管理机制,场景对象1将重新获得焦点;Case 1: The other scene interfaces covering the scene interface corresponding to the scene object 1 are closed. In this case, according to the focus management mechanism, the scene object 1 will regain the focus;
情况2:焦点切换到场景对象1,比如,用户通过屏幕操作,将焦点落入到场景对象1对象对应的场景界面,或者用户通过屏幕操作,触发切换到场景对象1对应的场景界面的链接或功能键,则焦点落入到场景对象1对应的场景界面;Case 2: The focus is switched to the scene object 1. For example, the user moves the focus to the scene interface corresponding to the scene object 1 object through the screen operation, or the user triggers the link to the scene interface corresponding to the scene object 1 through the screen operation or The function key, the focus falls into the scene interface corresponding to the scene object 1;
情况3:取消对场景对象1的隐藏。例如,执行该容器对象中的showScene方法或取消隐藏的方法(比如unhideScene方法),取消对场景对象1的隐藏,根据焦点管理机制,场景对象1重新获得焦点。Case 3: Cancel the hiding of scene object 1. For example, the showScene method in the container object or the unhidden method (such as the unhideScene method) cancels the hiding of the scene object 1, and according to the focus management mechanism, the scene object 1 regains the focus.
如图中的302至304所示,若针对场景对象1执行关闭场景对象(如quitScene方法),则关闭该场景对象1对应的场景界面,释放该场景对象1(也即销毁场景对象1的实例)。具体实施时,当用户点击该场景界面中的用于实现关闭功能的按钮,或基于其他方式关闭场景对象1时,执行容器对象中的quitScene方法。As shown in the figure 302 to 304, if the scene object is closed for the scene object 1 (for example, the quitScene method), the scene interface corresponding to the scene object 1 is closed, and the scene object 1 is released (that is, the instance of the scene object 1 is destroyed). ). In a specific implementation, when the user clicks a button in the scene interface for implementing the shutdown function, or closes the scene object 1 based on other methods, the quitScene method in the container object is executed.
如图中的303至304所示,若针对当前焦点所在的场景对象执行quitScene方法,则关闭该场景对象对应的场景界面,释放该场景对象(也即销毁该场景对象实例)。具体实施时,当用户点击该场景界面中的用于实现关闭功能的按钮,或基于其他方式关闭该场景对象时,执行容器对象中的quitScene方法。As shown in 303 to 304 of the figure, if the quitScene method is executed on the scene object where the current focus is located, the scene interface corresponding to the scene object is closed, and the scene object is released (that is, the scene object instance is destroyed). In a specific implementation, when the user clicks a button in the scene interface for implementing the shutdown function, or closes the scene object based on other methods, the quitScene method in the container object is executed.
如图中的304至301,若再次展示被关闭的场景对象对应的场景界面,则重新执行容器对象中的showScene方法,再次创建该场景对象。As shown in the figure 304 to 301, if the scene interface corresponding to the closed scene object is displayed again, the showScene method in the container object is re-executed, and the scene object is created again.
需要说明的是,本申请实施例对所使用的焦点管理机制不作限制。It should be noted that the embodiment of the present application does not limit the focus management mechanism used.
参见图4,为本申请实施例提供的页面展示流程示意图,如图所示,该流程可包括以下步骤:Referring to FIG. 4, it is a schematic diagram of a page display process provided by an embodiment of the present application. As shown in the figure, the process may include the following steps:
在S401中,确定容器对象中待进行场景界面展示的场景对象。如前所述,一个容器对戏中包括至少一个场景对象。当接收用于展示场景界面的请求时,可根据该请求确定或获取当前需要进行场景界面展示的场景对象。举例来说,可包括以下几种情况:In S401, a scene object in the container object to be displayed by the scene interface is determined. As mentioned earlier, a container pair includes at least one scene object. When receiving a request for displaying a scene interface, the scene object that needs to be displayed on the scene interface may be determined or acquired according to the request. For example, the following situations can be included:
情况1:当应用程序启动后,容器对象被创建,根据应用程序的逻辑,该容器对象中的某个场景对象被创建(比如该应用程序的主界面所对应的场景对象),该场景对象即为当前需要进行场景界面展示的场景对象。Case 1: When the application is started, the container object is created. According to the logic of the application, a scene object in the container object is created (such as the scene object corresponding to the main interface of the application), and the scene object is A scene object that is currently displayed on the scene interface.
具体实施时,在接收第一请求后,根据该第一请求,在该容器对象中创建所述第一场景对象。其中,该第一请求用于指示在该容器对象对应的窗口中创建第一场景对象对应的场景界面。第一请求可以包括由应用程序启动所触发生成。比如,对于采用FPGA系统架构的智能电视,当用户通过遥控器选择电视屏幕上的某个应用程序图标并通过按键发出运行该应用程序的指令后,基于FPGA系统架构的应用程序运行框架针对该应用程序创建容器对象,创建该容器对象对应的窗口并显示,根据容器对象的入口函数确定需要创建的场景对象并创建该场景对象。In a specific implementation, after receiving the first request, the first scene object is created in the container object according to the first request. The first request is used to indicate that a scene interface corresponding to the first scene object is created in a window corresponding to the container object. The first request may include a trigger generated by the application launch. For example, for a smart TV adopting an FPGA system architecture, when a user selects an application icon on a television screen through a remote controller and issues an instruction to run the application through a button, an application running framework based on the FPGA system architecture targets the application. The program creates a container object, creates a window corresponding to the container object, and displays the scene object that needs to be created according to the container object's entry function and creates the scene object.
情况2:当某个场景对象重新获得焦点后,该场景对象即为当前需要进行场景界面展示的场景对象。比如,当某个被隐藏的场景对象取消隐藏后,该场景对象重新获得焦点;再比如,若某个场景对象所对应的场景界面上覆盖有其他场景界面,在这些其他场景界面被关闭或隐藏后,该场景对象重新获得焦点。Case 2: When a scene object regains focus, the scene object is the scene object that needs to be displayed on the scene interface. For example, when a hidden scene object is unhidden, the scene object regains focus; for example, if a scene scene corresponding to a scene object is covered with other scene interfaces, the other scene interfaces are closed or hidden. After that, the scene object regains focus.
具体实施时,在接收到第二请求后,根据该第二请求,从该容器对象中已创建的场景对象中选取该第二场景对象。其中,该第二请求用于指示从第一场景对象对应的场景界面切换到第二场景对象对应的场景界面。比如,第二请求可以是取消隐藏场景对象的请求,或者是返回上一个场景界面的请求。In a specific implementation, after receiving the second request, selecting the second scene object from the created scene objects in the container object according to the second request. The second request is used to switch from the scene interface corresponding to the first scene object to the scene interface corresponding to the second scene object. For example, the second request may be a request to unhide the scene object or a request to return to the previous scene interface.
在S402中,获取与待进行场景界面展示的场景对象对应的场景模板,根据与该待进行场景界面展示的场景对象对应的场景模板,对该待进行场景界面展示的场景对象中的显示对象进行渲染,得到对应的场景界面。In S402, the scene template corresponding to the scene object to be displayed on the scene interface is obtained, and the display object in the scene object to be displayed on the scene interface is performed according to the scene template corresponding to the scene object displayed on the scene interface to be performed. Render and get the corresponding scene interface.
在一些实施例中,场景对象中包括用于标识所关联的场景模板的属性,这种情况下,可根据场景对象中的该属性的属性值,获取与该场景对象对应的场景模板。场景对象可将该场景对象对应的场景模板进行加载后,使用加载的场景模板,对该场景对象中的显示对象进行渲染,得到对应的场景界面。In some embodiments, the scene object includes an attribute for identifying the associated scene template. In this case, the scene template corresponding to the scene object may be acquired according to the attribute value of the attribute in the scene object. After the scene object of the scene object is loaded, the scene object is used to render the display object in the scene object to obtain a corresponding scene interface.
在S403中,在该容器对象对应的窗口中展示该场景界面。In S403, the scene interface is displayed in a window corresponding to the container object.
进一步地,本申请实施例还提供了场景对象的隐藏方法。举例来说,在接收第三请求后,根据该第三请求,将该第三场景对象对应的场景界面隐藏,确定获得焦点的第四场景对象,在该容器对象对应的窗口中展示该第四场景对象对应的场景界面。其中,该第三请求用于指示隐藏当前焦点所在的第三场景对象对应的场景界面。Further, the embodiment of the present application further provides a hiding method of a scene object. For example, after receiving the third request, the scene interface corresponding to the third scene object is hidden according to the third request, and the fourth scene object that obtains the focus is determined, and the fourth window is displayed in the window corresponding to the container object. The scene interface corresponding to the scene object. The third request is used to indicate that the scene interface corresponding to the third scene object where the current focus is located is hidden.
进一步地,本申请实施例还提供的退出场景对象的方法。举例来说,在接收到第四请求后,根据该第四请求,关闭该第五场景对象对应的场景界面,释放该第五场景对象。其中,该第四事件用于指示关闭该容器对象中第五场景对象对应的场景界面。进一步地,若当前被关闭的场景界面为该容器对象对应的窗口中的唯一场景界面,则还可关闭该容器对象对应的窗口,释放该容器对象。Further, the embodiment of the present application further provides a method for exiting a scene object. For example, after receiving the fourth request, according to the fourth request, the scene interface corresponding to the fifth scene object is closed, and the fifth scene object is released. The fourth event is used to indicate that the scene interface corresponding to the fifth scene object in the container object is closed. Further, if the scene interface that is currently closed is the unique scene interface in the window corresponding to the container object, the window corresponding to the container object may also be closed, and the container object is released.
需要说明的是,上述流程中的第一场景对象至第五场景对象,仅为了出于描述方便而对场景对象进行区分,并不特指某个或某种场景对象。同样,第一事件至第四事件,也是出于描述方便而对事件进行区分。It should be noted that the first scene object to the fifth scene object in the above process only distinguish the scene object for convenience of description, and does not specifically refer to a certain scene object. Similarly, the first to fourth events also distinguish events for convenience of description.
通过以上描述可以看出,本申请的上述实施例中,一个容器对象可对应多个场景对象,当获取到该容器对象中需要进行场景展示的场景对象后,获取该场景对象对应的界面模板,根据该界面模板中定义的显示对象布局和/或显示方式,对该场景对象中的显示对象进行渲染,得到该场景对象对应的场景界面,并在该容器对象所对应的窗口中进行显示。由于一个容器对象可对应多个场景对象,因此基于这些场景对象所得到的场景界面均可在该容器对象所对应的窗口中进行展示,实现了一个窗口中可展示多种场景界面 的目的。As can be seen from the above description, in the foregoing embodiment of the present application, a container object may correspond to a plurality of scene objects, and after acquiring a scene object that needs to be displayed in the container object, acquiring an interface template corresponding to the scene object, The display object in the scene object is rendered according to the display object layout and/or the display manner defined in the interface template, and the scene interface corresponding to the scene object is obtained, and displayed in the window corresponding to the container object. Since a container object can correspond to multiple scene objects, the scene interface obtained based on the scene objects can be displayed in the window corresponding to the container object, thereby realizing the purpose of displaying multiple scene interfaces in one window.
为了更清楚地理解本申请的上述实施例,下面以在智能电视中应用本申请实施例为例,并结合具体场景进行描述。For a more clear understanding of the above-mentioned embodiments of the present application, the following describes an embodiment of the present application in a smart television, and is described in conjunction with a specific scenario.
在智能电视中,用于浏览网络资源的应用中的容器对象和场景对象的架构可如图1所示。该应用的容器对象对应有3个场景对象,其中,场景对象1的场景界面是该应用启动时默认打开的场景界面。场景对象1用于展示电影资源列表,场景对象2用于展示电视剧资源列表,场景对象3用于展示新闻资讯资源列表。该应用的容器对象所对应的窗口500可如图5A所示,该窗口500中包括导航栏501,导航栏501中包括导航菜单502,导航菜单502用于在场景对象1(对应于导航菜单502中的“电影”)、场景对象2(对应于导航菜单502中的“电视剧”)和场景对象3(对应于导航菜单502中的“新闻资讯”)之间切换。导航栏501中还包括退出功能按钮503,用于退出该应用。窗口500中还包括场景界面展示区域,用于展示场景对象1、场景对象2或场景对象3的场景界面。In smart TV, the architecture of container objects and scene objects in an application for browsing network resources can be as shown in FIG. 1. The container object of the application corresponds to three scene objects, wherein the scene interface of the scene object 1 is a scene interface that is opened by default when the application starts. The scene object 1 is used to display a list of movie resources, the scene object 2 is used to display a list of drama resources, and the scene object 3 is used to display a list of news information resources. The window 500 corresponding to the container object of the application may be as shown in FIG. 5A. The window 500 includes a navigation bar 501. The navigation bar 501 includes a navigation menu 502 for the scene object 1 (corresponding to the navigation menu 502). Switching between "movie" in the scene, scene object 2 (corresponding to "television" in navigation menu 502), and scene object 3 (corresponding to "news information" in navigation menu 502). The navigation bar 501 also includes an exit function button 503 for exiting the application. The window 500 further includes a scene interface display area for displaying a scene interface of the scene object 1, the scene object 2, or the scene object 3.
当用户启动智能电视,或者对于已启动的智能电视,通过遥控器选择点播节目时,用于浏览网络资源的应用被启动,该应用对应的容器对象被创建,对应的窗口500被创建。由于该应用被启动时默认设置的场景界面为用于展示电影资源列表的场景界面,因此容器对象调用用于创建的场景对象的方法从而创建得到场景对象1。场景对象1使用该场景对象对应的场景模板1,对用于展示电影资源列表的场景界面进行渲染,得到场景对象1对应的场景界面1,其中包括电影资源的图标(如图5B中灰色填充块所示)以及文字简介,进一步还可包括控制翻页的功能按钮(如图5B中的“上一页”、“下一页”和“返回”),并在该容器对象对应的窗口500中的场景界面展示区域504中展示该场景界面,如图5B所示。When the user activates the smart TV, or for the activated smart TV, when the on-demand program is selected by the remote controller, the application for browsing the network resource is started, the container object corresponding to the application is created, and the corresponding window 500 is created. Since the scene interface set by default when the application is started is a scene interface for displaying a movie resource list, the container object calls a method for creating the scene object to create the scene object 1. The scene object 1 uses the scene template 1 corresponding to the scene object to render the scene interface for displaying the movie resource list, and obtains the scene interface 1 corresponding to the scene object 1, including the icon of the movie resource (such as the gray filled block in FIG. 5B). And a textual introduction, further comprising a function button for controlling page turning (such as "previous page", "next page" and "return" in FIG. 5B), and in the window 500 corresponding to the container object The scene interface is displayed in the scene interface display area 504, as shown in FIG. 5B.
此后,用户通过遥控器选择窗口500中导航栏501中导航菜单502中的新闻资讯时,容器对象调用用于创建的场景对象的方法从而创建得到场景对象2。场景对象3使用该场景对象对应的场景模板3,对用于展示新闻资讯资源列表的场景界面进行渲染,得到场景对象3对应的场景界面3,其中包括新闻标题列表(图5C中的灰色填充条表示新闻标题),进一步还可包括控制翻页的功能按钮(如图5C中的“上一页”、“下一页”和“返回”),并在该容器对象对应的窗口500中的场景界面展示区域504中展示该场景界面,如图5C所示。Thereafter, when the user selects the news information in the navigation menu 502 in the navigation bar 501 in the window 500 through the remote controller, the container object calls the method for creating the scene object to create the scene object 2. The scene object 3 uses the scene template 3 corresponding to the scene object to render the scene interface for displaying the news information resource list, and obtains the scene interface 3 corresponding to the scene object 3, including the news title list (the gray filled strip in FIG. 5C). Representing a news title), further including a function button for controlling page turning (such as "previous page", "next page", and "return" in FIG. 5C), and a scene in the window 500 corresponding to the container object The scene interface is displayed in the interface display area 504, as shown in FIG. 5C.
此后,用户通过遥控器选择窗口500中导航栏501中导航菜单502中的电影,则场 景对象3失去焦点,场景对象1重新获得焦点,则场景对象1的场景界面(即展示有电影资源列表的场景界面)被展示在窗口500中的场景界面展示区域504中。Thereafter, the user selects the movie in the navigation menu 502 in the navigation bar 501 in the window 500 through the remote controller, then the scene object 3 loses focus, the scene object 1 regains the focus, and the scene interface of the scene object 1 (ie, the movie resource list is displayed) The scene interface) is displayed in the scene interface display area 504 in the window 500.
基于相同的技术构思,本申请实施例还提供了一种页面展示装置,该装置可实现前述实施例描述的页面展示功能。Based on the same technical concept, the embodiment of the present application further provides a page display device, which can implement the page display function described in the foregoing embodiment.
参见图6,为本申请实施例提供的页面展示装置的结构示意图,该装置可包括:确定模块601、渲染模块602、显示模块603,其中:FIG. 6 is a schematic structural diagram of a page display apparatus according to an embodiment of the present disclosure. The apparatus may include: a determining module 601, a rendering module 602, and a display module 603, where:
确定模块601用于确定容器对象中待进行场景界面展示的场景对象,其中,一个容器对象中包括至少一个场景对象;渲染模块602用于根据与所述待进行场景界面展示的场景对象对应的场景模板,对所述待进行场景界面展示的场景对象中的显示对象进行渲染,得到对应的场景界面,其中,界面模板用于定义场景对象中的显示对象的布局和/或显示方式;显示模块603用于在所述容器对象对应的窗口中展示所述场景界面。The determining module 601 is configured to determine a scene object to be displayed by the scene interface in the container object, where the container object includes at least one scene object, and the rendering module 602 is configured to use the scene corresponding to the scene object displayed by the scene interface to be performed. The template is configured to render a display object in the scene object to be displayed on the scene interface, and obtain a corresponding scene interface, where the interface template is used to define a layout and/or a display manner of the display object in the scene object; and the display module 603 And the method for displaying the scene interface in a window corresponding to the container object.
可选地,确定模块601具体用于:接收第一请求,所述第一请求用于指示在所述容器对象对应的窗口中创建第一场景对象对应的场景界面;根据所述第一请求,在所述容器对象中创建所述第一场景对象。Optionally, the determining module 601 is configured to: receive a first request, where the first request is used to create a scene interface corresponding to the first scene object in a window corresponding to the container object; according to the first request, The first scene object is created in the container object.
可选地,确定模块601具体用于:接收第二请求,所述第二请求用于指示从第一场景对象对应的场景界面切换到第二场景对象对应的场景界面;根据所述第二请求,从所述容器对象中已创建的场景对象中选取所述第二场景对象。Optionally, the determining module 601 is specifically configured to: receive a second request, where the second request is used to switch from a scene interface corresponding to the first scene object to a scene interface corresponding to the second scene object; And selecting the second scene object from the created scene objects in the container object.
可选地,显示模块603具体用于:在所述容器对象对应的窗口中,用所述第二场景对应的场景界面覆盖所述第一场景对应的场景界面。Optionally, the display module 603 is configured to: in the window corresponding to the container object, cover the scene interface corresponding to the first scene by using a scene interface corresponding to the second scene.
可选地,显示模块603还用于:接收第三请求,所述第三请求用于指示隐藏当前焦点所在的第三场景对象对应的场景界面;根据所述第三请求,将所述第三场景对象对应的场景界面隐藏;确定获得焦点的第四场景对象,在所述容器对象对应的窗口中展示所述第四场景对象对应的场景界面。Optionally, the display module 603 is further configured to: receive a third request, where the third request is used to indicate that a scene interface corresponding to the third scene object where the current focus is hidden is hidden; and the third request is performed according to the third request. The scene interface corresponding to the scene object is hidden; the fourth scene object that obtains the focus is determined, and the scene interface corresponding to the fourth scene object is displayed in the window corresponding to the container object.
可选地,显示模块603还用于:接收第四请求,所述第四请求用于指示关闭所述容器对象中第五场景对象对应的场景界面;根据所述第四请求,关闭所述第五场景对象对应的场景界面,释放所述第五场景对象。Optionally, the display module 603 is further configured to: receive a fourth request, where the fourth request is used to indicate that the scene interface corresponding to the fifth scene object in the container object is closed; and the fourth request is closed according to the fourth request The scene interface corresponding to the five scene objects releases the fifth scene object.
可选地,显示模块603还用于:若当前被关闭的场景界面为所述容器对象对应的窗口中的唯一场景界面,则关闭所述容器对象对应的窗口,释放所述容器对象。Optionally, the display module 603 is further configured to: if the currently closed scene interface is a unique scene interface in the window corresponding to the container object, close the window corresponding to the container object, and release the container object.
可选地,确定模块601还用于:在确定容器对象中待进行场景界面展示的场景对象之前,启动所述容器对象,创建所述容器对象对应的窗口。Optionally, the determining module 601 is further configured to: after determining a scene object to be displayed by the scene interface in the container object, start the container object, and create a window corresponding to the container object.
可选地,所述容器对象中包括场景展示方法,所述场景展示方法用于在所述容器对象对应的窗口中展示场景对象所对应的场景界面。显示模块603具体用于:通过针对所述待进行场景界面展示的场景对象,执行所述容器对象中的场景展示方法,在所述容器对象对应的窗口中展示所述场景界面。Optionally, the container object includes a scene display method, where the scene display method is used to display a scene interface corresponding to the scene object in a window corresponding to the container object. The display module 603 is specifically configured to: execute a scene display method in the container object by using a scene object that is displayed on the scene to be displayed, and display the scene interface in a window corresponding to the container object.
可选地,一个场景对象对应一个或多个场景模板;和/或,一个场景模板专用于一个场景对象,或被多个场景对象所共享。Optionally, one scene object corresponds to one or more scene templates; and/or one scene template is dedicated to one scene object or shared by multiple scene objects.
可选地,所述容器对象为电视设备操作系统中的容器对象,所述场景对象为电视设备操作系统中的场景对象。Optionally, the container object is a container object in a television device operating system, and the scene object is a scene object in a television device operating system.
基于相同的技术构思,本申请实施例还提供了一种通信设备,该通信设备可实现前述实施例描述的页面展示流程。该通信设备可以是电视机设备,比如智能电视。Based on the same technical concept, the embodiment of the present application further provides a communication device, which can implement the page display process described in the foregoing embodiment. The communication device can be a television device, such as a smart television.
图7示例性地示出了根据各种实施例的通信装置700。装置700可包括一个或多个处理器702,系统控制逻辑701耦合于至少一个处理器702,非易失性存储器(non-volatile memory,NMV)/存储器704耦合于系统控制逻辑701,网络接口706耦合于系统控制逻辑701。FIG. 7 exemplarily illustrates a communication device 700 in accordance with various embodiments. Apparatus 700 can include one or more processors 702 coupled to at least one processor 702, non-volatile memory (NMV)/memory 704 coupled to system control logic 701, network interface 706 Coupled to system control logic 701.
处理器702可包括一个或多个单核处理器或多核处理器。处理器702可包括任何一般用途处理器或专用处理器(如图像处理器、应用处理器基带处理器等)的组合。 Processor 702 can include one or more single core processors or multi-core processors. Processor 702 can include any general purpose processor or combination of special purpose processors (eg, image processor, application processor baseband processor, etc.).
一个实施例中的系统控制逻辑701,可包括任何适当的接口控制器,以提供到处理器702中的至少一个的任何合适的接口,和/或提供到与系统控制逻辑701通信的任何合适的设备或组件的任何合适的接口。 System control logic 701 in one embodiment may include any suitable interface controller to provide any suitable interface to at least one of processors 702, and/or to any suitable communication in communication with system control logic 701. Any suitable interface to the device or component.
一个实施例中的系统控制逻辑701,可包括一个或多个内存控制器,以提供到系统内存703的接口。系统内存703用来触发以及存储数据和/或指令。例如,对应装置700,在一个实施例中,系统内存703可包括任何合适的易失性存储器。 System control logic 701 in one embodiment may include one or more memory controllers to provide an interface to system memory 703. System memory 703 is used to trigger and store data and/or instructions. For example, corresponding device 700, in one embodiment, system memory 703 can include any suitable volatile memory.
NVM/存储器704可包括一个或多个有形的非暂时的计算机可读介质,用于存储数据和/或指令。例如,NVM/存储器704可包括任何合适的非易失性存储装置,如一个或多个硬盘(hard disk device,HDD),一个或多个光盘(compact disk,CD),和/或一个或多个数字通用盘(digital versatile disk,DVD)。NVM/memory 704 can include one or more tangible, non-transitory computer readable media for storing data and/or instructions. For example, NVM/memory 704 can include any suitable non-volatile storage device, such as one or more hard disk devices (HDDs), one or more compact disks (CDs), and/or one or more Digital versatile disk (DVD).
NVM/存储器704可包括存储资源,该存储资源物理上是该系统所安装的或者可以被访问的设备的一部分,但不一定是设备的一部分。例如,NVM/存储器704可经由网络接口706被网络访问。NVM/memory 704 can include a storage resource that is physically part of, but not necessarily part of, the device that the system is installed on or can be accessed. For example, NVM/memory 704 can be accessed by the network via network interface 706.
系统内存703以及NVM/存储器704可分别包括临时的或持久的指令710的副本。 指令710可包括当由处理器702中的至少一个执行时导致装置700实现图3至图4描述的方法之一或组合的指令。各实施例中,指令710或硬件、固件,和/或软件组件可另外地/可替换地被置于系统控制逻辑701,网络接口706和/或处理器702。 System memory 703 and NVM/memory 704 can each include a copy of temporary or persistent instructions 710. The instructions 710 can include instructions that, when executed by at least one of the processors 702, cause the apparatus 700 to implement one or a combination of the methods described in Figures 3-4. In various embodiments, instructions 710 or hardware, firmware, and/or software components may additionally/alternatively be placed in system control logic 701, network interface 706, and/or processor 702.
网络接口706可包括一个接收器来为装置700提供无线接口来与一个或多个网络和/或任何合适的设备进行通信。网络接口706可包括任何合适的硬件和/或固件。网络接口706可包括多个天线来提供多输入多输出无线接口。在一个实施例中,网络接口706可包括一个网络适配器、一个无线网络适配器、一个电话调制解调器,和/或无线调制解调器。 Network interface 706 can include a receiver to provide device 700 with a wireless interface to communicate with one or more networks and/or any suitable device. Network interface 706 can include any suitable hardware and/or firmware. Network interface 706 can include multiple antennas to provide a multiple input multiple output wireless interface. In one embodiment, network interface 706 can include a network adapter, a wireless network adapter, a telephone modem, and/or a wireless modem.
在一个实施例中,处理器702中的至少一个可以与用于系统控制逻辑的一个或多个控制器的逻辑一起封装。在一个实施例中,处理器中的至少一个可以与用于系统控制逻辑的一个或多个控制器的逻辑一起封装以形成系统级封装。在一个实施例中,处理器中的至少一个可以与用于系统控制逻辑的一个或多个控制器的逻辑集成在相同的管芯上。在一个实施例中,处理器中的至少一个可以与用于系统控制逻辑的一个或多个控制器的逻辑集成在相同的管芯上以形成系统芯片。In one embodiment, at least one of the processors 702 can be packaged with logic for one or more controllers of system control logic. In one embodiment, at least one of the processors may be packaged with logic for one or more controllers of system control logic to form a system level package. In one embodiment, at least one of the processors can be integrated on the same die as the logic of one or more controllers for system control logic. In one embodiment, at least one of the processors can be integrated on the same die as the logic of one or more controllers for system control logic to form a system chip.
装置700可进一步包括输入/输出装置705,。输入/输出装置705可包括用户接口旨在使用户与装置700进行交互,可包括外围组件接口,其被设计为使得外围组件能够与系统交互,和/或,可包括传感器,旨在确定环境条件和/或有关装置700的位置信息。 Apparatus 700 can further include an input/output device 705. Input/output device 705 can include a user interface intended to enable a user to interact with device 700, can include a peripheral component interface that is designed to enable peripheral components to interact with the system, and/or can include sensors for determining environmental conditions And/or location information about the device 700.
本申请实施例还提供了一种通信装置,包括:一个或多个处理器;以及,一个或多个计算机可读介质,所述可读介质上存储有指令,所述指令被所述一个或多个处理器执行时,使得所述通信装置执行前述实施例描述的方法。The embodiment of the present application further provides a communication device, including: one or more processors; and one or more computer readable media having instructions stored thereon, the instructions being When executed by a plurality of processors, the communication device is caused to perform the method described in the previous embodiments.
基于相同的技术构思,本申请实施例还提供了一种通信装置。该通信装置包括一个或多个处理器,以及一个或多个计算机可读介质,所述可读介质上存储有指令,所述指令被所述一个或多个处理器执行时,使得所述通信装置执行前述实施例描述的方法。Based on the same technical concept, the embodiment of the present application further provides a communication device. The communication device includes one or more processors, and one or more computer readable media having stored thereon instructions that, when executed by the one or more processors, cause the communication The apparatus performs the method described in the previous embodiments.
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the present application. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
尽管已描述了本申请的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请范围的所有变更和修改。While the preferred embodiment of the present application has been described, it will be apparent that those skilled in the art can make further changes and modifications to the embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and the modifications and
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。It will be apparent to those skilled in the art that various modifications and changes can be made in the present application without departing from the spirit and scope of the application. Thus, it is intended that the present invention cover the modifications and variations of the present invention.

Claims (24)

  1. 一种页面展示方法,其特征在于,包括:A page display method, comprising:
    确定容器对象中待进行场景界面展示的场景对象;其中,一个容器对象中包括至少一个场景对象;Determining a scene object in the container object to be displayed by the scene interface; wherein a container object includes at least one scene object;
    根据与所述待进行场景界面展示的场景对象对应的场景模板,对所述待进行场景界面展示的场景对象中的显示对象进行渲染,得到对应的场景界面;其中,界面模板用于定义场景对象中的显示对象的布局和/或显示方式;And displaying, according to the scene template corresponding to the scene object to be displayed on the scene interface, the display object in the scene object to be displayed on the scene interface, and obtaining a corresponding scene interface; wherein the interface template is used to define the scene object The layout and/or display mode of the display object in ;
    在所述容器对象对应的窗口中展示所述场景界面。The scene interface is displayed in a window corresponding to the container object.
  2. 如权利要求1所述的方法,其特征在于,确定容器对象中待进行场景界面展示的场景对象,包括:The method of claim 1 , wherein determining a scene object to be displayed by the scene interface in the container object comprises:
    接收第一请求,所述第一请求用于指示在所述容器对象对应的窗口中创建第一场景对象对应的场景界面;Receiving a first request, where the first request is used to indicate that a scene interface corresponding to the first scene object is created in a window corresponding to the container object;
    根据所述第一请求,在所述容器对象中创建所述第一场景对象。The first scene object is created in the container object according to the first request.
  3. 如权利要求1所述的方法,其特征在于,确定容器对象中待进行场景界面展示的场景对象,包括:The method of claim 1 , wherein determining a scene object to be displayed by the scene interface in the container object comprises:
    接收第二请求,所述第二请求用于指示从第一场景对象对应的场景界面切换到第二场景对象对应的场景界面;Receiving a second request, where the second request is used to switch from a scene interface corresponding to the first scene object to a scene interface corresponding to the second scene object;
    根据所述第二请求,从所述容器对象中已创建的场景对象中选取所述第二场景对象。And selecting, according to the second request, the second scene object from the created scene objects in the container object.
  4. 如权利要求3所述的方法,其特征在于,在所述容器对象对应的窗口中展示所述场景界面,包括:The method of claim 3, wherein the displaying the scene interface in a window corresponding to the container object comprises:
    在所述容器对象对应的窗口中,用所述第二场景对应的场景界面覆盖所述第一场景对应的场景界面。In the window corresponding to the container object, the scene interface corresponding to the first scene is covered by the scene interface corresponding to the second scene.
  5. 如权利要求1所述的方法,其特征在于,还包括:The method of claim 1 further comprising:
    接收第三请求,所述第三请求用于指示隐藏当前焦点所在的第三场景对象对应的场景界面;Receiving a third request, where the third request is used to indicate that a scene interface corresponding to the third scene object where the current focus is located is hidden;
    根据所述第三请求,将所述第三场景对象对应的场景界面隐藏;And hiding, according to the third request, a scene interface corresponding to the third scene object;
    确定获得焦点的第四场景对象;Determining a fourth scene object that obtains focus;
    在所述容器对象对应的窗口中展示所述第四场景对象对应的场景界面。Displaying a scene interface corresponding to the fourth scene object in a window corresponding to the container object.
  6. 如权利要求1所述的方法,其特征在于,还包括:The method of claim 1 further comprising:
    接收第四请求,所述第四请求用于指示关闭所述容器对象中第五场景对象对应的场景界面;Receiving a fourth request, where the fourth request is used to indicate that the scene interface corresponding to the fifth scene object in the container object is closed;
    根据所述第四请求,关闭所述第五场景对象对应的场景界面,释放所述第五场景对象。According to the fourth request, the scene interface corresponding to the fifth scene object is closed, and the fifth scene object is released.
  7. 如权利要求6所述的方法,其特征在于,若当前被关闭的场景界面为所述容器对象对应的窗口中的唯一场景界面,则还包括:The method of claim 6, wherein if the currently closed scene interface is a unique scene interface in the window corresponding to the container object, the method further includes:
    关闭所述容器对象对应的窗口,释放所述容器对象。Close the window corresponding to the container object, and release the container object.
  8. 如权利要求1所述的方法,其特征在于,确定容器对象中待进行场景界面展示的场景对象之前,还包括:The method of claim 1, wherein before determining the scene object to be displayed by the scene interface in the container object, the method further comprises:
    启动所述容器对象;Starting the container object;
    创建所述容器对象对应的窗口。Create a window corresponding to the container object.
  9. 如权利要求1至8中任一项所述的方法,其特征在于,所述容器对象中包括场景展示方法,所述场景展示方法用于在所述容器对象对应的窗口中展示场景对象所对应的场景界面;The method according to any one of claims 1 to 8, wherein the container object includes a scene display method, and the scene display method is configured to display a scene object corresponding to the window corresponding to the container object. Scene interface;
    在所述容器对象对应的窗口中展示所述场景界面,包括:Displaying the scene interface in a window corresponding to the container object, including:
    通过针对所述待进行场景界面展示的场景对象,执行所述容器对象中的场景展示方法,在所述容器对象对应的窗口中展示所述场景界面。The scene display method in the container object is executed by the scene object displayed on the scene to be performed, and the scene interface is displayed in a window corresponding to the container object.
  10. 如权利要求1至8中任一项所述的方法,其特征在于,一个场景对象对应一个或多个场景模板;和/或,The method according to any one of claims 1 to 8, wherein one scene object corresponds to one or more scene templates; and/or,
    一个场景模板专用于一个场景对象,或被多个场景对象所共享。A scene template is dedicated to one scene object or shared by multiple scene objects.
  11. 如权利要求1至8中任一项所述的方法,其特征在于,所述容器对象为电视设备操作系统中的容器对象,所述场景对象为电视设备操作系统中的场景对象。The method according to any one of claims 1 to 8, wherein the container object is a container object in a television device operating system, and the scene object is a scene object in a television device operating system.
  12. 一种页面展示装置,其特征在于,包括:A page display device, comprising:
    确定模块,用于确定容器对象中待进行场景界面展示的场景对象;其中,一个容器对象中包括至少一个场景对象;a determining module, configured to determine a scene object in the container object to be displayed by the scene interface; wherein the container object includes at least one scene object;
    渲染模块,用于根据与所述待进行场景界面展示的场景对象对应的场景模板,对所述待进行场景界面展示的场景对象中的显示对象进行渲染,得到对应的场景界面;其中,界面模板用于定义场景对象中的显示对象的布局和/或显示方式;a rendering module, configured to render a display object in the scene object to be displayed by the scene interface according to the scene template corresponding to the scene object to be displayed on the scene interface, to obtain a corresponding scene interface; wherein, the interface template Used to define the layout and/or display mode of the display objects in the scene object;
    显示模块,用于在所述容器对象对应的窗口中展示所述场景界面。And a display module, configured to display the scene interface in a window corresponding to the container object.
  13. 如权利要求12所述的装置,其特征在于,所述确定模块具体用于:The device according to claim 12, wherein the determining module is specifically configured to:
    接收第一请求,所述第一请求用于指示在所述容器对象对应的窗口中创建第一场景对象对应的场景界面;Receiving a first request, where the first request is used to indicate that a scene interface corresponding to the first scene object is created in a window corresponding to the container object;
    根据所述第一请求,在所述容器对象中创建所述第一场景对象。The first scene object is created in the container object according to the first request.
  14. 如权利要求12所述的装置,其特征在于,所述确定模块具体用于:The device according to claim 12, wherein the determining module is specifically configured to:
    接收第二请求,所述第二请求用于指示从第一场景对象对应的场景界面切换到第二场景对象对应的场景界面;Receiving a second request, where the second request is used to switch from a scene interface corresponding to the first scene object to a scene interface corresponding to the second scene object;
    根据所述第二请求,从所述容器对象中已创建的场景对象中选取所述第二场景对象。And selecting, according to the second request, the second scene object from the created scene objects in the container object.
  15. 如权利要求14所述的装置,其特征在于,所述显示模块具体用于:在所述容器对象对应的窗口中,用所述第二场景对应的场景界面覆盖所述第一场景对应的场景界面。The device according to claim 14, wherein the display module is configured to: cover, in a window corresponding to the container object, a scene corresponding to the first scene by using a scene interface corresponding to the second scene interface.
  16. 如权利要求12所述的装置,其特征在于,所述显示模块还用于:The device of claim 12, wherein the display module is further configured to:
    接收第三请求,所述第三请求用于指示隐藏当前焦点所在的第三场景对象对应的场景界面;根据所述第三请求,将所述第三场景对象对应的场景界面隐藏;Receiving a third request, where the third request is used to indicate that the scene interface corresponding to the third scene object in which the current focus is located is hidden; and the scene interface corresponding to the third scene object is hidden according to the third request;
    确定获得焦点的第四场景对象,在所述容器对象对应的窗口中展示所述第四场景对象对应的场景界面。Determining a fourth scene object that is in focus, and displaying a scene interface corresponding to the fourth scene object in a window corresponding to the container object.
  17. 如权利要求12所述的装置,其特征在于,所述显示模块还用于:The device of claim 12, wherein the display module is further configured to:
    接收第四请求,所述第四请求用于指示关闭所述容器对象中第五场景对象对应的场景界面;Receiving a fourth request, where the fourth request is used to indicate that the scene interface corresponding to the fifth scene object in the container object is closed;
    根据所述第四请求,关闭所述第五场景对象对应的场景界面,释放所述第五场景对象。According to the fourth request, the scene interface corresponding to the fifth scene object is closed, and the fifth scene object is released.
  18. 如权利要求17所述的装置,其特征在于,所述显示模块还用于:The device of claim 17, wherein the display module is further configured to:
    若当前被关闭的场景界面为所述容器对象对应的窗口中的唯一场景界面,则关闭所述容器对象对应的窗口,释放所述容器对象。If the scene interface that is currently closed is the unique scene interface in the window corresponding to the container object, the window corresponding to the container object is closed, and the container object is released.
  19. 如权利要求12所述的装置,其特征在于,所述确定模块还用于:The device of claim 12, wherein the determining module is further configured to:
    在确定容器对象中待进行场景界面展示的场景对象之前,启动所述容器对象,创建所述容器对象对应的窗口。Before determining the scene object to be displayed by the scene interface in the container object, the container object is started, and a window corresponding to the container object is created.
  20. 如权利要求12至19中任一项所述的装置,其特征在于,所述容器对象中包括场景展示方法,所述场景展示方法用于在所述容器对象对应的窗口中展示场景对象所对应的场景界面;The device according to any one of claims 12 to 19, wherein the container object includes a scene display method, and the scene display method is configured to display a scene object corresponding to the window corresponding to the container object. Scene interface;
    所述显示模块具体用于:通过针对所述待进行场景界面展示的场景对象,执行所述容器对象中的场景展示方法,在所述容器对象对应的窗口中展示所述场景界面。The display module is specifically configured to: execute a scene display method in the container object by using a scene object that is displayed on the scene to be displayed, and display the scene interface in a window corresponding to the container object.
  21. 如权利要求12至19中任一项所述的装置,其特征在于,一个场景对象对应一个或多个场景模板;和/或,一个场景模板专用于一个场景对象,或被多个场景对象所共享。The apparatus according to any one of claims 12 to 19, wherein one scene object corresponds to one or more scene templates; and/or one scene template is dedicated to one scene object or is used by multiple scene objects shared.
  22. 如权利要求12至19中任一项所述的装置,其特征在于,所述容器对象为电视设备操作系统中的容器对象,所述场景对象为电视设备操作系统中的场景对象。The apparatus according to any one of claims 12 to 19, wherein the container object is a container object in a television device operating system, and the scene object is a scene object in a television device operating system.
  23. 一种通信装置,其特征在于,包括:A communication device, comprising:
    存储器,用于存储计算机程序指令;a memory for storing computer program instructions;
    处理器,耦合到所述存储器,用于读取所述存储器存储的计算机程序指令,并作为响应,执行权利要求1-11中任一项所述的方法。A processor coupled to the memory for reading the computer program instructions stored by the memory and, in response, performing the method of any of claims 1-11.
  24. 一种通信装置,包括:A communication device comprising:
    一个或多个处理器;以及One or more processors;
    一个或多个计算机可读介质,所述可读介质上存储有指令,所述指令被所述一个或多个处理器执行时,使得所述通信装置执行如权利要求1-11中任一项所述的方法。One or more computer readable mediums having stored thereon instructions that, when executed by the one or more processors, cause the communication device to perform any of claims 1-11 Said method.
PCT/CN2017/119674 2017-01-11 2017-12-29 Method and apparatus for page presentation WO2018130085A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710020749.6A CN108304234B (en) 2017-01-11 2017-01-11 Page display method and device
CN201710020749.6 2017-01-11

Publications (1)

Publication Number Publication Date
WO2018130085A1 true WO2018130085A1 (en) 2018-07-19

Family

ID=62839711

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/119674 WO2018130085A1 (en) 2017-01-11 2017-12-29 Method and apparatus for page presentation

Country Status (3)

Country Link
CN (1) CN108304234B (en)
TW (1) TWI766896B (en)
WO (1) WO2018130085A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110928626A (en) * 2019-11-21 2020-03-27 北京金山安全软件有限公司 Interface switching method and device and electronic equipment
CN111158824A (en) * 2019-12-27 2020-05-15 上海米哈游天命科技有限公司 Interface display method, device, equipment and medium
CN112130725A (en) * 2020-09-24 2020-12-25 中国第一汽车股份有限公司 Interface display management method and device, electronic equipment and storage medium
CN113741897A (en) * 2021-09-06 2021-12-03 北京字节跳动网络技术有限公司 Question list generation method, device, equipment and storage medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110941464B (en) * 2018-09-21 2024-04-16 阿里巴巴集团控股有限公司 Light exposure method, device, system and storage medium
CN112073793B (en) * 2019-06-11 2024-09-06 海信视像科技股份有限公司 Image display method and device
CN110764844B (en) * 2019-10-25 2023-04-11 芜湖盟博科技有限公司 Multi-application window custom layout method on vehicle-mounted system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1342931A (en) * 2000-09-14 2002-04-03 上海新致软件有限公司 Page display method for computer
CN102043630A (en) * 2010-12-30 2011-05-04 国网电力科学研究院 Method and system for generating multi-page in framework
CN104267968A (en) * 2014-10-16 2015-01-07 福建星网视易信息系统有限公司 Interface switching method and device
CN105094683A (en) * 2015-06-30 2015-11-25 北京金山安全软件有限公司 Data display method and device
CN105760156A (en) * 2016-01-29 2016-07-13 福建星网锐捷通讯股份有限公司 Main menu navigation method based on Android system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101295243A (en) * 2007-04-26 2008-10-29 环达电脑(上海)有限公司 Method for one window implementing multiple pages in embedded system
US8972873B2 (en) * 2010-11-30 2015-03-03 International Business Machines Corporation Multi-environment widget assembly, generation, and operation
US9383800B2 (en) * 2011-03-22 2016-07-05 International Business Machines Corporation Managing a portal application
US9106709B2 (en) * 2011-09-22 2015-08-11 Opera Software Asa Server side mobile audience intelligence creation
CN106294459A (en) * 2015-05-29 2017-01-04 阿里巴巴集团控股有限公司 Method for page jump based on text hidden and relevant apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1342931A (en) * 2000-09-14 2002-04-03 上海新致软件有限公司 Page display method for computer
CN102043630A (en) * 2010-12-30 2011-05-04 国网电力科学研究院 Method and system for generating multi-page in framework
CN104267968A (en) * 2014-10-16 2015-01-07 福建星网视易信息系统有限公司 Interface switching method and device
CN105094683A (en) * 2015-06-30 2015-11-25 北京金山安全软件有限公司 Data display method and device
CN105760156A (en) * 2016-01-29 2016-07-13 福建星网锐捷通讯股份有限公司 Main menu navigation method based on Android system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110928626A (en) * 2019-11-21 2020-03-27 北京金山安全软件有限公司 Interface switching method and device and electronic equipment
CN111158824A (en) * 2019-12-27 2020-05-15 上海米哈游天命科技有限公司 Interface display method, device, equipment and medium
CN112130725A (en) * 2020-09-24 2020-12-25 中国第一汽车股份有限公司 Interface display management method and device, electronic equipment and storage medium
CN112130725B (en) * 2020-09-24 2022-02-15 中国第一汽车股份有限公司 Interface display management method and device, electronic equipment and storage medium
CN113741897A (en) * 2021-09-06 2021-12-03 北京字节跳动网络技术有限公司 Question list generation method, device, equipment and storage medium
CN113741897B (en) * 2021-09-06 2024-05-28 抖音视界有限公司 Question list generation method, device, equipment and storage medium

Also Published As

Publication number Publication date
TW201826109A (en) 2018-07-16
CN108304234B (en) 2021-08-17
TWI766896B (en) 2022-06-11
CN108304234A (en) 2018-07-20

Similar Documents

Publication Publication Date Title
WO2018130085A1 (en) Method and apparatus for page presentation
JP7013466B2 (en) Application data processing methods, equipment, and computer programs
US8817053B2 (en) Methods and systems for opening a file
CN104375872B (en) A kind of Android system realizes the method and device of quick turn-on
US9804767B2 (en) Light dismiss manager
US20140096049A1 (en) Drag and drop application launches of user interface objects
US10402470B2 (en) Effecting multi-step operations in an application in response to direct manipulation of a selected object
US20140040862A1 (en) Copying Reusable Components from a Remote Source
WO2017084497A1 (en) Terminal, method and system for realizing multi-mode application page
EP2742422A2 (en) Content preview
CN104704468A (en) Cross system installation of WEB applications
CN106257418B (en) Techniques for evaluating an application by using an auxiliary application
US10592063B1 (en) Controlling actions for browser extensions
US9268875B2 (en) Extensible content focus mode
US8850339B2 (en) Secure content-specific application user interface components
CN111008050B (en) Page task execution method, device, terminal and storage medium
US9785560B2 (en) Scene-isolated internet application
CN109416638B (en) Customizable compact overlay window
CN115311051A (en) Page display method, equipment and storage medium for house with view
US10671797B2 (en) Unified graphical user interface views through frame break out
CN112817911B (en) File system repairing method and terminal equipment
CN112578973B (en) Content selection method, device, equipment and computer readable storage medium
CN116702115A (en) Application program authority application method and device and computer equipment
CN117616392A (en) Application starting method and device, electronic equipment and storage medium
CN116450962A (en) Page display method, device, equipment and storage medium based on distributed system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17891749

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17891749

Country of ref document: EP

Kind code of ref document: A1