Summary of the invention
The object of the embodiment of the present invention is to provide a kind of virtual keyboard display method and system, to realize the object of intelligent display keyboard.
For achieving the above object, the embodiment of the invention discloses a kind of virtual keyboard display method, being applied in electronic equipment, the dummy keyboard in described electronic equipment has the multiple display modes with data validity Condition Matching, and described method comprises:
Receive user to the edit instruction of first module lattice in electrical form;
The data validity condition of described first module lattice is obtained according to described edit instruction;
Make described dummy keyboard to show with the display mode of described data validity Condition Matching.
Preferably, described data validity condition is any value, integer, decimal, sequence, date, time or text size;
When described data validity condition is integer, decimal, date or time, be numeric keypad pattern with the display mode of described data validity Condition Matching;
When described data validity condition is any value, with the display mode of described data validity Condition Matching for give tacit consent to keyboard mode;
When described data validity condition is text size, be literal keyboard pattern with the display mode of described data validity Condition Matching;
When described data validity condition is sequence, is list mode with the display mode of described data validity Condition Matching, in described list, includes at least one selectable option.
Preferably, described data validity condition is any value, integer, decimal, sequence, date, time or text size;
When described data validity condition is integer, be integer keyboard mode with the display mode of described data validity Condition Matching;
When described data validity condition is decimal, be decimal keyboard mode with the display mode of described data validity Condition Matching;
When described data validity condition is the date, be date keyboard mode with the display mode of described data validity Condition Matching;
When described data validity condition is the time, be time keyboard mode with the display mode of described data validity Condition Matching;
When described data validity condition is any value, with the display mode of described data validity Condition Matching for give tacit consent to keyboard mode;
When described data validity condition is text size, be literal keyboard pattern with the display mode of described data validity Condition Matching;
When described data validity condition is sequence, is list mode with the display mode of described data validity Condition Matching, in described list, includes at least one selectable option.
Preferably, under described integer keyboard mode, the button in described dummy keyboard comprises: button 0 to 9, delete button and button Enter;
Under described decimal keyboard mode, the button in described dummy keyboard comprises: button 0 to 9, delete button, button ". " and button Enter;
Under described date keyboard mode, the button in described dummy keyboard comprises: the button of button 0 to 9, delete button, button forward slash, input current date and button Enter;
Under described time keyboard mode, the button in described dummy keyboard comprises: the button of button 0 to 9, delete button, button colon, input current time and button Enter.
Preferably, at described dummy keyboard with the described date, keyboard mode showed, described method also comprises:
Receive first click commands of user to the button of input current date;
Get Date according to described first click commands;
Described current date is shown in the formula bar of described dummy keyboard.
Preferably, at described dummy keyboard with the described time, keyboard mode showed, described method also comprises:
Receive second click commands of user to the button of input current time;
Current time is obtained according to described second click commands;
Described current time is shown in the formula bar of described dummy keyboard.
A kind of dummy keyboard display system, be applied in electronic equipment, the dummy keyboard in described electronic equipment has the multiple display modes with data validity Condition Matching, and described system comprises: instruction reception unit, validity obtain unit and display unit,
Described instruction reception unit, for receiving the edit instruction of user to first module lattice in electrical form;
Described validity obtains unit, for obtaining the data validity condition of described first module lattice according to described edit instruction;
Described display unit, for making described dummy keyboard to show with the display mode of described data validity Condition Matching.
Preferably, described data validity condition is any value, integer, decimal, sequence, date, time or text size;
When described data validity condition is integer, decimal, date or time, be numeric keypad pattern with the display mode of described data validity Condition Matching;
When described data validity condition is any value, with the display mode of described data validity Condition Matching for give tacit consent to keyboard mode;
When described data validity condition is text size, be literal keyboard pattern with the display mode of described data validity Condition Matching;
When described data validity condition is sequence, is list mode with the display mode of described data validity Condition Matching, in described list, includes at least one selectable option.
Preferably, described data validity condition is any value, integer, decimal, sequence, date, time or text size;
When described data validity condition is integer, be integer keyboard mode with the display mode of described data validity Condition Matching;
When described data validity condition is decimal, be decimal keyboard mode with the display mode of described data validity Condition Matching;
When described data validity condition is the date, be date keyboard mode with the display mode of described data validity Condition Matching;
When described data validity condition is the time, be time keyboard mode with the display mode of described data validity Condition Matching;
When described data validity condition is any value, with the display mode of described data validity Condition Matching for give tacit consent to keyboard mode;
When described data validity condition is text size, be literal keyboard pattern with the display mode of described data validity Condition Matching;
When described data validity condition is sequence, is list mode with the display mode of described data validity Condition Matching, in described list, includes at least one selectable option.
Preferably, under described integer keyboard mode, the button in described dummy keyboard comprises: button 0 to 9, delete button and button Enter;
Under described decimal keyboard mode, the button in described dummy keyboard comprises: button 0 to 9, delete button, button ". " and button Enter;
Under described date keyboard mode, the button in described dummy keyboard comprises: the button of button 0 to 9, delete button, button forward slash, input current date and button Enter;
Under described time keyboard mode, the button in described dummy keyboard comprises: the button of button 0 to 9, delete button, button colon, input current time and button Enter.
Preferably, at described dummy keyboard with the described date, keyboard mode showed, described system also comprises: first clicks receiving element, date acquisition unit and date display element,
Described first clicks receiving element, for receiving first click commands of user to the button of input current date;
Described date acquisition unit, for getting Date according to described first click commands;
Described date display element, for showing described current date in the formula bar of described dummy keyboard.
Preferably, at described dummy keyboard with the described time, keyboard mode showed, described system also comprises: second clicks receiving element, time acquisition unit and time display unit,
Described second clicks receiving element, for receiving second click commands of user to the button of input current time;
Described time acquisition unit, for obtaining current time according to described second click commands;
Described time display unit, for showing described current time in the formula bar of described dummy keyboard.
A kind of virtual keyboard display method that the embodiment of the present invention provides and system, when user edits cell, according to the data validity condition of cell, can show the dummy keyboard with the display mode of data validity matching criteria.Therefore, the present invention can automatically according to the dummy keyboard of the data validity condition display different display modes of different units lattice, and not need user to carry out manual switchover again, more convenient to use.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
As shown in Figure 1, a kind of virtual keyboard display method that the embodiment of the present invention provides, is applied in electronic equipment, and the dummy keyboard in described electronic equipment has the multiple display modes with data validity Condition Matching, and the method can comprise:
S100, reception user are to the edit instruction of first module lattice in electrical form;
Concrete, edit instruction can for double-clicking instruction or other instructions.
S200, obtain the data validity condition of described first module lattice according to described edit instruction;
Wherein, described data validity condition is any value, integer, decimal, sequence, date, time or text size.
S300, make described dummy keyboard to show with the display mode of described data validity Condition Matching.
Concrete, when described data validity condition is integer, decimal, date or time, can be numeric keypad pattern with the display mode of described data validity Condition Matching, as shown in Figure 2, not only button 0 to 9 is comprised in dummy keyboard shown in Fig. 2, "+", "-", " * ", the "/" for performing mathematical calculations can also be comprised, and for input decimal and date ". ", ": ", delete button for input time, button Enter, Chinese-English keyboard switching push button.
When described data validity condition is any value, with the display mode of described data validity Condition Matching for give tacit consent to keyboard mode;
When described data validity condition is text size, be literal keyboard pattern with the display mode of described data validity Condition Matching;
When described data validity condition is sequence, is list mode with the display mode of described data validity Condition Matching, in described list, includes at least one selectable option.
Certainly, in other embodiments of the present invention, the dummy keyboard of other types also can be shown for data validity condition:
When described data validity condition is integer, can be integer keyboard mode with the display mode of described data validity Condition Matching;
When described data validity condition is decimal, can be decimal keyboard mode with the display mode of described data validity Condition Matching;
When described data validity condition is the date, can be date keyboard mode with the display mode of described data validity Condition Matching;
When described data validity condition is the time, can be time key dish pattern with the display mode of described data validity Condition Matching;
When described data validity condition is any value, with the display mode of described data validity Condition Matching for give tacit consent to keyboard mode;
When described data validity condition is text size, be literal keyboard pattern with the display mode of described data validity Condition Matching;
When described data validity condition is sequence, is list mode with the display mode of described data validity Condition Matching, in described list, includes at least one selectable option.
Wherein, button shown in the dummy keyboard of above-mentioned each keyboard mode can be corresponding with data validity condition, and the present invention does not limit each button in the dummy keyboard of each keyboard mode.The building form of button in some concrete dummy keyboards is provided below:
As shown in Figure 3, under described integer keyboard mode, the button in described dummy keyboard can comprise: button 0 to 9, delete button and button Enter;
Under described decimal keyboard mode, as shown in Figure 4, the button in described dummy keyboard can comprise: button 0 to 9, delete button, button ". " and button Enter;
Under described date keyboard mode, as shown in Figure 5, the button in described dummy keyboard can comprise: the button of button 0 to 9, delete button, button forward slash, input current date and button Enter;
Under described time keyboard mode, as shown in Figure 6, the button in described dummy keyboard can comprise: the button of button 0 to 9, delete button, button colon, input current time and button Enter.
Certainly, can also include Chinese-English keyboard switching push button etc. in each dummy keyboard shown in Fig. 3 to Fig. 6, the present invention does not limit at this.
A kind of virtual keyboard display method that the embodiment of the present invention provides, when user edits cell, according to the data validity condition of cell, can show the dummy keyboard with the display mode of data validity matching criteria.Therefore, the present invention can automatically according to the dummy keyboard of the data validity condition display different display modes of different units lattice, and not need user to carry out manual switchover again, more convenient to use.
As shown in Figure 7, the another kind of virtual keyboard display method that the embodiment of the present invention provides, when described dummy keyboard carries out showing with the dummy keyboard under the date keyboard mode shown in Fig. 5, the method can also comprise:
S400, reception user are to the first click commands of the button of input current date;
S500, to get Date according to described first click commands;
S600, described current date to be shown in the formula bar of described dummy keyboard.
Be understandable that, by inputting the button of current date, user directly can input current date, and no longer needs manual input, convenient.
As shown in Figure 8, the another kind of virtual keyboard display method that the embodiment of the present invention provides, when described dummy keyboard carries out showing with the dummy keyboard under the time keyboard mode shown in Fig. 6, the method can also comprise:
S700, reception user are to the second click commands of the button of input current time;
S800, according to described second click commands obtain current time;
S900, described current time to be shown in the formula bar of described dummy keyboard.
Be understandable that, by inputting the button of current time, user directly can input current time, and no longer needs manual input, convenient.
Corresponding to embodiment of the method above, present invention also offers a kind of dummy keyboard display system, be applied in electronic equipment, dummy keyboard in described electronic equipment has the multiple display modes with data validity Condition Matching, as shown in Figure 9, this system can comprise: instruction reception unit 100, validity obtain unit 200 and display unit 300
Instruction reception unit 100, for receiving the edit instruction of user to first module lattice in electrical form;
Validity obtains unit 200, for obtaining the data validity condition of described first module lattice according to described edit instruction;
Wherein, described data validity condition is any value, integer, decimal, sequence, date, time or text size.
Display unit 300, for making described dummy keyboard to show with the display mode of described data validity Condition Matching.
Concrete, when described data validity condition is integer, decimal, date or time, can be numeric keypad pattern with the display mode of described data validity Condition Matching, as shown in Figure 2, not only button 0 to 9 is comprised in dummy keyboard shown in Fig. 2, "+", "-", " * ", the "/" for performing mathematical calculations can also be comprised, and for input decimal and date ". ", ": ", delete button for input time, button Enter, Chinese-English keyboard switching push button.
When described data validity condition is any value, with the display mode of described data validity Condition Matching for give tacit consent to keyboard mode;
When described data validity condition is text size, be literal keyboard pattern with the display mode of described data validity Condition Matching;
When described data validity condition is sequence, is list mode with the display mode of described data validity Condition Matching, in described list, includes at least one selectable option.
Certainly, in other embodiments of the present invention, the dummy keyboard of other types also can be shown for data validity condition:
When described data validity condition is integer, can be integer keyboard mode with the display mode of described data validity Condition Matching;
When described data validity condition is decimal, can be decimal keyboard mode with the display mode of described data validity Condition Matching;
When described data validity condition is the date, can be date keyboard mode with the display mode of described data validity Condition Matching;
When described data validity condition is the time, can be time key dish pattern with the display mode of described data validity Condition Matching;
When described data validity condition is any value, with the display mode of described data validity Condition Matching for give tacit consent to keyboard mode;
When described data validity condition is text size, be literal keyboard pattern with the display mode of described data validity Condition Matching;
When described data validity condition is sequence, is list mode with the display mode of described data validity Condition Matching, in described list, includes at least one selectable option.
Wherein, button shown in the dummy keyboard of above-mentioned each keyboard mode can be corresponding with data validity condition, and the present invention does not limit each button in the dummy keyboard of each keyboard mode.The building form of button in some concrete dummy keyboards is provided below:
As shown in Figure 3, under described integer keyboard mode, the button in described dummy keyboard can comprise: button 0 to 9, delete button and button Enter;
Under described decimal keyboard mode, as shown in Figure 4, the button in described dummy keyboard can comprise: button 0 to 9, delete button, button ". " and button Enter;
Under described date keyboard mode, as shown in Figure 5, the button in described dummy keyboard can comprise: the button of button 0 to 9, delete button, button forward slash, input current date and button Enter;
Under described time keyboard mode, as shown in Figure 6, the button in described dummy keyboard can comprise: the button of button 0 to 9, delete button, button colon, input current time and button Enter.
Certainly, can also include Chinese-English keyboard switching push button etc. in each dummy keyboard shown in Fig. 3 to Fig. 6, the present invention does not limit at this.
A kind of dummy keyboard display system that the embodiment of the present invention provides, when user edits cell, according to the data validity condition of cell, can show the dummy keyboard with the display mode of data validity matching criteria.Therefore, the present invention can automatically according to the dummy keyboard of the data validity condition display different display modes of different units lattice, and not need user to carry out manual switchover again, more convenient to use.
In another embodiment of the invention, at described dummy keyboard with the described date, keyboard mode showed, system shown in Figure 9 can also comprise: first clicks receiving element, date acquisition unit and date display element,
Described first clicks receiving element, for receiving first click commands of user to the button of input current date;
Described date acquisition unit, for getting Date according to described first click commands;
Described date display element, for showing described current date in the formula bar of described dummy keyboard.
In another embodiment of the invention, at described dummy keyboard with the described time, keyboard mode showed, system shown in Figure 9 can also comprise: second clicks receiving element, time acquisition unit and time display unit,
Described second clicks receiving element, for receiving second click commands of user to the button of input current time;
Described time acquisition unit, for obtaining current time according to described second click commands;
Described time display unit, for showing described current time in the formula bar of described dummy keyboard.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
Each embodiment in this instructions all adopts relevant mode to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.Especially, for system embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.