Patent ID: 9361277
Filing Date: 2016-06-07
CPC Classification: G06F,G06Q

Claim Text:
1. A method for implementing a microblog message page comprising: encapsulating a common logic of a plurality of types of message pages in a message page control base for a microblog, wherein the plurality of types of message pages include a home page, a guest page, and an @ message page of the microblog, each type of message pages being able to reuse the same common logic; pulling content data of a message page control of one of the plurality of types of message pages, wherein the message page control is a container to contain a plurality of types of controls; enabling the message page control of the one of the plurality of types of message pages to inherit from the common logic encapsulated in the message page control base; and executing the common logic, based on the pulled content data of the message page control containing the plurality of types of controls of one of the plurality of types of message pages, to load the message page control of the one of the plurality of types of message pages and to display the plurality of types of controls contained in the message page control on the one of the plurality of types of message pages; wherein the plurality of types of controls contained in the message page control of the one of the plurality of types of message pages includes one or more of: at least one message item control, at least one loading item control, at least one fault item control, and a more item control; the method further including: encapsulating other logics of the one of the plurality of types of message pages into an other item control of the one of the plurality of types of message pages, according to the other logics, to load the other item control of the one of the plurality of types of message pages and to display the other item control on the one of the plurality of types of message pages, wherein executing the common logic further includes: acquiring timestamp and size information of the one or more of the at least one message item control, the at least one loading item control, the at least one fault item control, the more item control, and the other item control by a public interface of the message page control; and sorting and managing layout of the one or more of the at least one message item control, the at least one loading item control, the at least one fault item control, the more item control, and the other item control, based on the timestamp and the size information; wherein the one of the plurality of types of message pages is the guest page and the other item control includes a guest info control, wherein the acquiring of the timestamp and the size information of the other item control by the public interface of the message page control includes: acquiring timestamp and size information of the guest info control by using an interface of the guest info control that inherits from the public interface of the message page control; wherein the sorting and managing layout of the other item control according to the acquired timestamp and size information includes: arranging the guest info control at top of the guest page according to the acquired timestamp and size information of the guest info control; wherein the at least one loading item control includes at least one guest page loading item control, and the at least one message item control includes at least one guest page message item control; wherein the pulling of the content data of the message page control of the one of the plurality of types of message pages includes pulling guest page message data; and wherein the loading and displaying of the message page control of the one of the plurality of types of message pages includes: displaying a corresponding guest page loading item control, before the guest page message data is returned; and after the guest page message data is returned, according to the returned guest page message data, loading the at least one guest page message item control and displaying the at least one guest page message item control by an order of timestamp, and hiding a corresponding guest page loading item control; and wherein the at least one fault item control is at least one guest page fault item control, the method further including: when a newly posted guest page message needs to be added to the guest page, repeat executing loading and displaying the message page control of the one of the plurality of types of message pages, and if there is no posting time overlapping between the loaded newly posted guest page message and an already displayed guest page message, displaying a corresponding guest page fault item control, wherein a timestamp of the corresponding guest page fault item control equals to a timestamp of an above-posted guest page message item control subtracted by one.