A kind of method and device of opened file folder
Technical field
The present invention relates to document presentation field, in particular, a kind of method relating to opened file folder
And device.
Background technology
File management is an important function in intelligent television operating system, in intelligent television, user
Program and data, the program of operating system self and data, the most various output input devices, be all
Occur with document form.For the preservation file of neat specification, the file management of intelligent television is typically adopted
File is preserved by the form of file.
As it is shown in figure 1, be a kind of intelligent television file management interface in prior art, in locally stored
Storage has multiple file, and when file 1 is opened, it shows interface as shown in Figure 2.But,
File icon inside it is to be laid in the interface being opened simultaneously, based on the above-mentioned file side of opening
Method, when in file, file icon is too much, will cause showing that file icon needs data volume to be processed relatively
Greatly, and then cause time of opened file folder longer.
Summary of the invention
In view of this, the invention provides the method and device of a kind of opened file folder, to overcome existing skill
In art due to file be opened time, the file icon inside it is to be laid in the interface being opened simultaneously
, when in file, file icon is too much, will cause showing that file icon needs data volume to be processed relatively
Big problem.
For achieving the above object, the present invention provides following technical scheme:
A kind of method of opened file folder, is applied to intelligent television file management, including:
Receiving the instruction of user's input, described instruction opens file to be opened for instruction;
The listed files corresponding with described file to be opened, described listed files is obtained according to described instruction
Middle storage has the file comprised in described file to be opened;
When described listed files is not empty, generate file icon list according to described listed files, described
In file icon list, storage has the icon that the file comprised in described file to be opened is corresponding;
Described icon is shown successively according to the preset order of the icon of storage in described file icon list.
Preferably, described show successively according to the preset order of icon of storage in described file icon list
Described icon, including:
Obtaining interval time, described interval time is time and its next phase that an icon starts displaying
Adjacent icon starts the interval of the time shown;
According to the preset order of the icon of storage in described interval time and described file icon list successively
Show described icon.
Preferably, described according to the icon of storage in described interval time and described file icon list
Preset order shows described icon successively, including:
According to the preset order of the icon of storage in described interval time and described file icon list, choosing
Take icon to be presented;
Determine the displaying original position of described icon to be presented;
Calculate the final display location of described icon to be presented;
Described icon to be presented is moved to described final display location from described displaying original position.
Preferably, the described displaying original position determining described icon to be presented, including:
Determine that described icon to be presented location in described file icon list is described figure to be presented
Target shows original position.
Preferably, the final display location of the described icon to be presented of described calculating includes:
Obtain the described icon to be presented sequence number in described file icon list;
Determining and preset the number showing that interface often row shows icon, described default displaying interface is by all figures
After mark arrangement tiling, the displaying interface of formation;
According to often row from left to right, row order from top to bottom determines the displaying position at described default displaying interface
The number of putting;
Described default displaying interface determines the location number pair identical with the sequence number of described icon to be presented
The display location answered is described final display location.
Preferably, described described icon to be presented is moved to described final exhibition from described displaying original position
Show position, including:
Described icon to be presented is applied to described final display location from described displaying original position, described
Translation includes rectilinear translation and/or curvilinear translation.
Preferably, described by described icon to be presented from described displaying original position apply to described final exhibition
Show position, including:
During described icon to be presented translates, adjust the point-to-point speed of described icon to be presented.
Preferably, described described icon to be presented is moved to described final exhibition from described displaying original position
Show position, including:
During described icon to be presented moves, adjust the size of described icon to be presented;
And/or, during described icon to be presented moves, overturn described icon to be presented.
The device of a kind of opened file folder, is applied to intelligent television file management, including:
Instruction reception unit, for receiving the instruction of user's input, described instruction is opened for instruction and is waited to beat
Open file is pressed from both sides;
Listed files acquiring unit, for obtaining corresponding with described file to be opened according to described instruction
Listed files, in described listed files, storage has the file comprised in described file to be opened;
File icon list generation unit, for when described listed files is not empty, according to described file
List generates file icon list, and in described file icon list, storage has bag in described file to be opened
The icon that the file that contains is corresponding;
Icon shows unit, for depending on according to the preset order of the icon of storage in described file icon list
The described icon of secondary displaying.
Preferably, described icon shows unit includes:
Interval time obtains subelement, is used for obtaining interval time, and described interval time is that an icon is opened
The time of beginning displaying and its next adjacent icon start the interval of the time shown;
Icon to be presented obtains subelement, for according to described interval time and described file icon list
The preset order of the icon of middle storage, chooses icon to be presented;
Show that original position determines subelement, for determining the displaying original position of described icon to be presented;
Final display location computation subunit, for calculating the final display location of described icon to be presented;
Mover unit, for by described icon to be presented from described displaying original position move to described
Whole display location.
Understand via above-mentioned technical scheme, compared with prior art, the invention discloses one and open literary composition
Part folder method and device, be applied to intelligent television file management, receive user input for referring to
After showing the instruction opening file to be opened, obtain corresponding with described file to be opened according to this instruction
Listed files, when listed files is not empty, generate file icon list according to described listed files,
And show that described file icon arranges successively according to the preset order of the icon of storage in described file icon list
The icon of storage in table.By said method, when in file, file icon is too much, it is possible to avoid by
All icons tile simultaneously and show the problem that the data volume of single treatment caused is excessive, save and open
The time of file.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to reality
Execute the required accompanying drawing used in example or description of the prior art to be briefly described, it should be apparent that below,
Accompanying drawing in description is only embodiments of the invention, for those of ordinary skill in the art, not
On the premise of paying creative work, it is also possible to obtain other accompanying drawing according to the accompanying drawing provided.
Fig. 1 is a kind of intelligent television file management interface schematic diagram disclosed in background of invention;
Fig. 2 is the interface schematic diagram after a kind of opened file folder disclosed in background of invention;
Fig. 3 is the idiographic flow signal of a kind of method of opened file folder disclosed in the embodiment of the present invention one
Figure;
Fig. 4 is the idiographic flow signal of the method for another kind of opened file folder disclosed in the embodiment of the present invention two
Figure;
Fig. 5 is the concrete structure signal of the device of a kind of opened file folder disclosed in the embodiment of the present invention three
Figure;
Fig. 6 is the concrete structure signal of the device of another kind of opened file folder disclosed in the embodiment of the present invention four
Figure.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out
Clearly and completely describe, it is clear that described embodiment is only a part of embodiment of the present invention, and
It is not all, of embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art are not doing
Go out the every other embodiment obtained under creative work premise, broadly fall into the scope of protection of the invention.
From background technology, in prior art, when file is opened, the file icon inside it is
It is laid in the interface being opened, based on above-mentioned file deployment method, when file in file simultaneously
When icon is too much, will cause showing that file icon needs data volume to be processed relatively big, and then cause opening literary composition
The time of part folder is longer.
To this end, the invention discloses the method and device of a kind of opened file folder, it is applied to intelligent television
File management, receive user's input after the instruction that file to be opened is opened in instruction, root
The listed files corresponding with described file to be opened is obtained according to this instruction, when listed files is not empty,
File icon list is generated according to described listed files, and according to the figure of storage in described file icon list
Target preset order shows the icon of storage in described file icon list successively.By said method, when
When in file, file icon is too much, it is possible to avoiding tiles all icons simultaneously shows the single caused
The excessive problem of data volume processed, saves the time of opened file folder.
It is related to the idiographic flow of the method for above-mentioned opened file folder and the device of above-mentioned opened file folder
Concrete structure will be illustrated in detail by way of the following examples.
Embodiment one
Refer to accompanying drawing 3, the concrete stream of a kind of method of opened file folder disclosed in the embodiment of the present invention one
Journey schematic diagram, the method for this opened file folder is applied to intelligent television file management, and the method includes:
S101: receive the instruction of user's input, described instruction opens file to be opened for instruction.
File is opened by file management application support, when opened file folder, it is possible to check and opened
File in content.File management application includes multiple file, therein any one or
Multiple can act as file to be opened, when user chooses file to be opened, just input an instruction
May indicate that and open file to be opened.
S102: obtain the listed files corresponding with described file to be opened, described literary composition according to described instruction
In part list, storage has the file comprised in described file to be opened.
Listed files under file is checked by file management application support, when the instruction receiving user's input
Afterwards, API(Application Programming Interface, application programming interface can be passed through)
Obtain the listed files corresponding with described file to be opened, concrete, can be provided by java class libraries
File system access interface, such as File(file) list Files(listed files in class) obtain and institute
State the listed files that file to be opened is corresponding, under storage has this document folder path in described listed files
All Files information, described fileinfo includes file name, file path, and file is the most writeable, civilian
Part is the most readable, whether file is hidden and any one or more in the amendment date of file.
S103: when described listed files is not empty, generate file icon list according to described listed files,
In described file icon list, storage has the icon that the file comprised in described file to be opened is corresponding;
S104: show described figure successively according to the preset order of the icon of storage in described file icon list
Mark.
It should be noted that when described listed files is empty, then show empty page.Preset order is figure
It is marked in described file icon list the order of storage.
In sum, a kind of method that present embodiment discloses opened file folder, it is applied to intelligent television literary composition
Part manages, receive user's input after the instruction that file to be opened is opened in instruction, according to
This instruction obtains the listed files corresponding with described file to be opened, when listed files is not empty, and root
File icon list is generated according to described listed files, and according to the icon of storage in described file icon list
Preset order show described icon successively.By said method, when in file, file icon is too much,
The problem that the data volume of the single treatment caused is excessive is shown it can be avoided that tiled by all icons simultaneously,
Save the time of opened file folder.
On the basis of the invention described above disclosed embodiment, the invention also discloses another kind and open file
The method of folder, will be described in detail by following example below.
Embodiment two
Referring to accompanying drawing 3, disclosed in the embodiment of the present invention two, the method for another kind of opened file folder is concrete
Schematic flow sheet, the method for this opened file folder is applied to intelligent television file management, and the method includes:
S201: receive the instruction of user's input, described instruction opens file to be opened for instruction.
S202: obtain the listed files corresponding with described file to be opened, described literary composition according to described instruction
In part list, storage has the file comprised in described file to be opened.
S203: when described listed files is not empty, generate file icon list according to described listed files,
In described file icon list, storage has the icon that the file comprised in described file to be opened is corresponding;
It should be noted that S201~S203 and S101~S103 in embodiment one is phase in the present embodiment
Like step, the present embodiment repeats no more, and specifically refers to the related description in embodiment one.
S204: obtain interval time, described interval time be an icon start show time with its under
One adjacent icon starts the interval of the time shown.
This interval time is the initial time performing animation for each icon, if it should be noted that
Each icon animation execution time is longer than time interval, then there will be multiple icon simultaneously in animation process
Situation.
S205: according to icon default suitable of storage in described interval time and described file icon list
Sequence, chooses icon to be presented.
S206: determine the displaying original position of described icon to be presented.
It should be noted that determine described icon to be presented location in described file icon list
Displaying original position for described icon to be presented.
Needing further exist for explanation, for icon to be presented, file to be opened is its father file
Folder, its show original position be before the display position of page parent folder icon.
S207: calculate the final display location of described icon to be presented.
It should be noted that the process of the final display location of this calculating described displaying icon is specific as follows:
Obtain the described icon to be presented sequence number in described file icon list, determine to preset and show that interface is every
Row show icon number, described default displaying interface be by all icon arrangement tiling after, the exhibition of formation
Showing interface, according to often row from left to right, row order from top to bottom determines the exhibition at described default displaying interface
Show location number, described default displaying interface determines the position identical with the sequence number of described icon to be presented
Display location corresponding to the number of putting is described final display location.
S208: described icon to be presented is moved to described final display location from described displaying original position.
Described icon to be presented is applied to described final display location from described displaying original position, described
Translation includes rectilinear translation and/or curvilinear translation.During described icon to be presented translates, can adjust
The point-to-point speed of whole described icon to be presented, it is also possible to adjust the size of described icon to be presented, the most first
Diminish after becoming greatly, be equivalent to the sensation having near user's viewpoint;Can also be at described icon to be presented
During movement, there is a rollover effect.Of course, it is possible to above-mentioned several effects are used in combination simultaneously,
To this, the present invention does not limits.
After icon shows all in file to be opened, this document folder i.e. fully opens.
It should be noted that step S204~S208 are the detailed descriptions to the S104 in embodiment of the method one.
In sum, a kind of method that present embodiment discloses opened file folder, it is applied to intelligent television literary composition
Part manages, it is possible to according to the preset order of the icon of storage in file icon list with specific dynamic effect
Show the icon of storage in described file icon list successively.By said method, when file in file
When icon is too much, it is possible to avoiding tiles all icons simultaneously shows the data volume of the single treatment caused
Excessive problem, saves the time of opened file folder, but also further enhancing the visual impression of user
It is subject to.
Describing method in detail in the invention described above disclosed embodiment, the method for the present invention can use
The device of various ways realizes, and therefore the invention also discloses a kind of device, concrete enforcement is given below
Example is described in detail.
Embodiment three
Refer to accompanying drawing 5, the device concrete structure of a kind of opened file folder disclosed in the embodiment of the present invention three
Schematic diagram, the device of this opened file folder is applied to intelligent television file management, and it specifically includes as placed an order
Unit:
Instruction reception unit 10, for receiving the instruction of user's input, described instruction is opened for instruction and is treated
Opened file folder.
Listed files acquiring unit 11, for obtaining corresponding with described file to be opened according to described instruction
Listed files, in described listed files storage have the file comprised in described file to be opened.
File icon list generation unit 12, for when described listed files is not empty, according to described literary composition
Part list generates file icon list, and in described file icon list, storage has in described file to be opened
The icon that the file that comprises is corresponding;
Icon shows unit 13, for according to the preset order of the icon of storage in described file icon list
Show described icon successively.
It should be noted that the functional realiey being related to above-mentioned unit refers in embodiment of the method
Associated description, the present embodiment repeats no more.
Embodiment four
Referring to accompanying drawing 6, disclosed in the embodiment of the present invention four, the device of another kind of opened file folder is concrete
Structural representation, the method for this opened file folder includes:
Instruction reception unit 20, for receiving the instruction of user's input, described instruction is opened for instruction and is treated
Opened file folder.
Listed files acquiring unit 21, for obtaining corresponding with described file to be opened according to described instruction
Listed files, in described listed files storage have the file comprised in described file to be opened.
File icon list generation unit 22, for when described listed files is not empty, according to described literary composition
Part list generates file icon list, and in described file icon list, storage has in described file to be opened
The icon that the file that comprises is corresponding;
Obtaining subelement 23 interval time, be used for obtaining interval time, described interval time is an icon
Time and its next adjacent icon starting to show starts the interval of the time of displaying.
Icon to be presented obtains subelement 24, for arranging according to described interval time and described file icon
In table, the preset order of the icon of storage, chooses icon to be presented.
Show that original position determines subelement 25, for determining the displaying original position of described icon to be presented.
Final display location computation subunit 26, for calculating the final display location of described icon to be presented.
Mover unit 27, for moving described icon to be presented to described from described displaying original position
Final display location.
It should be noted that the functional realiey being related to above-mentioned unit refers in embodiment of the method
Associated description, the present embodiment repeats no more.
In sum: the embodiment of the invention discloses the method and device of a kind of opened file folder, be applied to
Intelligent television file management, is receiving the instruction opening file to be opened for instruction of user's input
Afterwards, obtain the listed files corresponding with described file to be opened according to this instruction, when listed files not
During for sky, generate file icon list according to described listed files, and according in described file icon list
The preset order of the icon of storage shows described icon successively.By said method, when file in file
When icon is too much, it is possible to avoiding tiles all icons simultaneously shows the data volume of the single treatment caused
Excessive problem, saves the time of opened file folder.
In this specification, each embodiment uses the mode gone forward one by one to describe, and each embodiment stresses
Being the difference with other embodiments, between each embodiment, identical similar portion sees mutually.
For device disclosed in embodiment, owing to it corresponds to the method disclosed in Example, so describing
Fairly simple, relevant part sees method part and illustrates.
The method described in conjunction with the embodiments described herein or the step of algorithm can directly use hardware,
The software module that processor performs, or the combination of the two implements.Software module can be placed in and deposit at random
Reservoir (RAM), internal memory, read-only storage (ROM), electrically programmable ROM, electric erasable can
Well known in programming ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field
In any other form of storage medium.
Described above to the disclosed embodiments, makes professional and technical personnel in the field be capable of or uses
The present invention.Multiple amendment to these embodiments will be aobvious and easy for those skilled in the art
See, generic principles defined herein can without departing from the spirit or scope of the present invention,
Realize in other embodiments.Therefore, the present invention is not intended to be limited to the embodiments shown herein,
And it is to fit to the widest scope consistent with principles disclosed herein and features of novelty.