Invention content
The present invention provides a kind of method and system of stock market interaction linkage, is had to mould to solve the prior art
Block setting packet numbering can link data needs between disparate modules, when the module of the multiple identical settings of establishment, need
The technical issues of carrying out creating and being respectively individually configured one by one.
In order to solve the above technical problems, the present invention provides a kind of method of stock market interaction linkage, including:
The first stock is dragged from first assembly;
From the stock quote information of the first stock of first assembly dragging to memory space described in storage;
By first stock dragged from first assembly, the second component is dragged to;
The stock quote information of first stock of the storage is loaded into first strand dragged to after the second component
Ticket.
Wherein, described that first stock dragged from first assembly is dragged into the second component, including:
When the first assembly is identical as the data source of the second component, by first strand dragged from first assembly
Ticket, dragging are moved to the second component;
When the data source of the first assembly and the second component differs, by first dragged from first assembly
Stock, dragging copy to the second component.
Wherein, the stock quote information of first stock by the storage be loaded into it is described drag to the second component after
The first stock, including:
The stock quote information of first stock of the storage is clipped into described drag to from memory space load
The first stock after second component.
Wherein, the method for the stock market interaction linkage further includes that first assembly is dragged to the second component, described to incite somebody to action
First assembly drags to the second component, including:
Drag first assembly;
The stock quote information of the first assembly is stored to memory space;
By the first assembly of the dragging, the second component is dragged to;
The stock quote information of the first assembly of the storage is loaded into the dragged to after the second component
One component.
Wherein, described to drag to the second component described in being loaded into the stock quote information of the first stock of the storage
After the first stock afterwards, further include:
When needing first assembly, the second component recovery original sample, link path by former interaction, by the first assembly,
Second component recovery is as former state.
Wherein, the second component is dragged to described in being loaded into the stock quote information of the first assembly of the storage
After first assembly afterwards, further include:
When needing first assembly, the second component recovery original sample, link path by former interaction, by the first assembly,
Second component recovery is as former state.
In order to solve the above technical problems, the present invention also provides a kind of systems of stock market interaction linkage, including:Drag mould
Block, memory module, load-on module;
It is described modules dragged, for dragging the first stock from first assembly;
The memory module, for storing the stock quote information of first stock dragged from first assembly to storage
Space;
It is described modules dragged, it is additionally operable to, by first stock dragged from first assembly, drag to the second component;
The load-on module described drags to for the stock quote information of the first stock of the storage to be loaded into
The first stock after two components.
Wherein, described modules dragged, for by first stock dragged from first assembly, dragging to the second component,
Including:
It is described modules dragged, for when the first assembly is identical with the data source of the second component, will described in from the
First stock of one component dragging, dragging are moved to the second component;
When the data source of the first assembly and the second component differs, by first dragged from first assembly
Stock, dragging copy to the second component.
Wherein, the load-on module, for the stock quote information of the first stock of the storage to be loaded into described drag
It moves to the first stock after the second component, including:
The load-on module, for loading the stock quote information of the first stock of the storage from the memory space
The first stock after the second component is dragged to described in clipping to.
Wherein, the system of the stock market interaction linkage further includes that first assembly is dragged to the second component, described to incite somebody to action
First assembly drags to the second component, including:
It is described modules dragged, it is additionally operable to dragging first assembly;
The memory module is additionally operable to store the stock quote information of the first assembly to memory space;
It is described modules dragged, it is additionally operable to, by the first assembly of the dragging, drag to the second component;
The load-on module is additionally operable to the stock quote information of the first assembly of the storage being loaded into described drag
It moves to the first assembly after the second component.
Wherein, the system of stock market interaction linkage, further includes recovery module, for by the first of the storage
The stock quote information of stock be loaded into it is described drag to after the first stock after the second component, need by first assembly,
When the second component recovery original sample, by former interaction linkage path, as former state by the first assembly, the second component recovery;
After the second component being dragged to described in being loaded into the stock quote information of the first assembly of the storage
After first assembly, when needing first assembly, the second component recovery original sample, by former interaction linkage path, by described first
Component, the second component recovery are as former state.
The method of stock market interaction linkage provided by the invention, including:The first stock is dragged from first assembly, storage should
The stock quote information of the first stock dragged from first assembly is to memory space, first strand that this is dragged from first assembly
Ticket drags to the second component, and the stock quote information of the first stock of the storage is loaded into after this drags to the second component
First stock, can be by simply dragging the stock market data between interaction linkage disparate modules, energy to reach realization
Enough quick copies go out the module of identical setting, at the same reach realization can when needing first assembly, the second component recovery original sample,
Can link path by original interaction, as former state by the first assembly, the second component recovery.
The system of stock market interaction linkage provided by the invention, including:Modules dragged, memory module, load-on module;It drags
Dynamic model block, for dragging the first stock from first assembly;Memory module, for storing first stock dragged from first assembly
Stock quote information to memory space;It is modules dragged, be additionally operable to will should first stock that be dragged from first assembly, drag to the
Two components;Load-on module, for the stock quote information of the first stock of the storage to be loaded into after this drags to the second component
The first stock;To reach realize can by simply drag interaction linkage disparate modules between stock market data,
Can quick copy go out the module of identical setting, while reaching realization and can needed first assembly, second by recovery module
When component recovery original sample, can link path by original interaction, as former state by the first assembly, the second component recovery.
Specific implementation mode
With reference to the accompanying drawings and examples, the present invention is described in further detail.It is emphasized that following implement
Example is merely to illustrate the present invention, but is not defined to the scope of the present invention.Likewise, following embodiment is only the portion of the present invention
Point embodiment and not all embodiments, the institute that those of ordinary skill in the art are obtained without creative efforts
There are other embodiments, shall fall within the protection scope of the present invention.
The present invention provides a kind of method of stock market interaction linkage.
Fig. 1 is referred to, Fig. 1 is the flow diagram of the method for stock market of the present invention interaction linkage, stock row of the present invention
The method of feelings interaction linkage, including:
S101:The first stock is dragged from first assembly.
S102:The stock quote information of first stock dragged from first assembly is stored to memory space.
S103:By first stock dragged from first assembly, the second component is dragged to.
S104:The stock quote information of first stock of the storage is loaded into first strand after dragging to the second component
Ticket.
Wherein, by first stock dragged from first assembly, the second component is dragged to, including:
When the first assembly is identical as the data source of the second component, by this from first assembly drag the first stock,
Dragging is moved to the second component;
When the data source of the first assembly and the second component differs, by this from first strand of first assembly dragging
Ticket, dragging copy to the second component.
Wherein, the stock quote information of the first stock of the storage is loaded into first strand after dragging to the second component
Ticket, including:
The stock quote information of first stock of the storage is clipped to this from memory space load and drags to second group
The first stock after part.
Wherein, the method for stock market interaction linkage of the present invention, further includes that first assembly is dragged to the second component, this will
First assembly drags to the second component, including:
Drag first assembly;
The stock quote information of the first assembly is stored to memory space;
By the first assembly of the dragging, the second component is dragged to;
The stock quote information of the first assembly of the storage is loaded into the first assembly after dragging to the second component.
Wherein, first after the stock quote information of the first stock of the storage to be loaded into this and drags to the second component
After stock, further include:
It when needing first assembly, the second component recovery original sample, links path by former interaction, by the first assembly, the
Two component recoveries are as former state.
Wherein, after the stock quote information of this of storage first assembly to be loaded into this and drags to the second component
After one component, further include:
It when needing first assembly, the second component recovery original sample, links path by former interaction, by the first assembly, the
Two component recoveries are as former state.
The present invention also provides a kind of systems of stock market interaction linkage.
Fig. 2 is referred to, Fig. 2 is the structural schematic diagram of the system of stock market of the present invention interaction linkage, stock row of the present invention
The system of feelings interaction linkage, including:Modules dragged 201, memory module 202, load-on module 203.
Modules dragged 201, for dragging the first stock from first assembly.
Memory module 202, the stock quote information for storing first stock dragged from first assembly are empty to storage
Between.
Modules dragged 201, it is additionally operable to the first stock that will should be dragged from first assembly, drags to the second component.
Load-on module 203 drags to second group for the stock quote information of the first stock of the storage to be loaded into this
The first stock after part.
Wherein, modules dragged 201, the first stock for that will should be dragged from first assembly drags to the second component, wraps
It includes:
Modules dragged 201, for when the first assembly is identical as the data source of the second component, by this from first assembly
First stock of dragging, dragging are moved to the second component;
When the data source of the first assembly and the second component differs, by this from first strand of first assembly dragging
Ticket, dragging copy to the second component.
Wherein, load-on module 203 drag to for the stock quote information of the first stock of the storage to be loaded into this
The first stock after two components, including:
Load-on module 203 is sheared for loading the stock quote information of the first stock of the storage from the memory space
The first stock after the second component is dragged to this.
Wherein, the system of stock market interaction linkage of the present invention, further includes that first assembly is dragged to the second component, this will
First assembly drags to the second component, including:
Modules dragged 201, it is additionally operable to dragging first assembly;
Memory module 202 is additionally operable to store the stock quote information of the first assembly to memory space;
Modules dragged 201, it is additionally operable to, by the first assembly of the dragging, drag to the second component;
Load-on module 203, is additionally operable to the stock quote information of the first assembly of the storage being loaded into this and drags to
First assembly after two components.
Wherein, the system of stock market interaction linkage of the present invention, further includes recovery module (not indicated in figure), the recovery mould
Block, for the first stock after the stock quote information of the first stock of the storage to be loaded into this and drags to the second component it
Afterwards, when needing first assembly, the second component recovery original sample, by former interaction linkage path, by the first assembly, the second component
Restore as former state;
The stock quote information of this of storage first assembly is being loaded into first group after dragging to the second component
After part, when needing first assembly, the second component recovery original sample, by former interaction linkage path, by the first assembly, second
Component recovery is as former state.
The method of stock market interaction linkage provided by the invention, including:The first stock is dragged from first assembly, storage should
The stock quote information of the first stock dragged from first assembly is to memory space, first strand that this is dragged from first assembly
Ticket drags to the second component, and the stock quote information of the first stock of the storage is loaded into after this drags to the second component
First stock, can be by simply dragging the stock market data between interaction linkage disparate modules, energy to reach realization
Enough quick copies go out the module of identical setting, at the same reach realization can when needing first assembly, the second component recovery original sample,
Can link path by original interaction, as former state by the first assembly, the second component recovery.
The system of stock market interaction linkage provided by the invention, including:Modules dragged, memory module, load-on module;It drags
Dynamic model block, for dragging the first stock from first assembly;Memory module, for storing first stock dragged from first assembly
Stock quote information to memory space;It is modules dragged, be additionally operable to will should first stock that be dragged from first assembly, drag to the
Two components;Load-on module, for the stock quote information of the first stock of the storage to be loaded into after this drags to the second component
The first stock;To reach realize can by simply drag interaction linkage disparate modules between stock market data,
Can quick copy go out the module of identical setting, while reaching realization and can needed first assembly, second by recovery module
When component recovery original sample, can link path by original interaction, as former state by the first assembly, the second component recovery.
The method and system of stock market interaction linkage provided by the invention, can be by simply dragging interaction linkage not
With between module data, can quick copy go out the module of identical setting, module edit operation can be recalled.
The method and system of stock market interaction linkage provided by the invention, can support a text in self-selected stock module
A stock in part folder drags in another self-selected stock module, and the data of the stock are imported another self-selected stock module,
So that the stock is mobile, copies to another self-selected stock file.
The method and system of stock market interaction linkage provided by the invention, can support a stock in self-selected stock module
Ticket drags in a trend graph quote module, the data of the stock is imported in the trend graph quote module so that the tendency
It seeks ways to return sb.'s kindness the market of the valence modules exhibit stock.
The method and system of stock market interaction linkage provided by the invention, can support a stock in self-selected stock module
Ticket drags in a transaction modules, the data of the stock is imported in the trend graph quote module so that the stock code goes out
In present transaction modules, to be traded operation.
The method and system of stock market interaction linkage provided by the invention, after being configured to a module, energy
The general copy function of operating system, duplication is enough used to paste out an identical module, achieve the effect that quickly to create.
The method and system of stock market interaction linkage provided by the invention can after being configured to a module
Using the general withdrawal operation of operating system, cancel previous action, by the appearance before module recovery to last be arranged.
The method and system of stock market provided by the invention interaction linkage, it can be achieved that function, including:
1, in memory space such as shear plate, stock drag events, free drag events, stock dragging therein are defined
Event defines the components such as trend graph, transaction, quotation, shows the operation of a dragging stock certificate data;Free dragging thing therein
Part defines the operation for making that stock is mobile, copies to another optional components file;
2, optional components provide the ability that triggering starts dragging, while triggering stock drag events, free drag events;
3, when dragging beginning, the information needed for drag events is copied into system shear plate;
4, receive stock drag events, free drag events in other assemblies, complete the operation that this event defines.
The method and system of stock market interaction linkage provided by the invention, from an optional components
(FTQWatchStockViewController) A drag stock to the operation of optional components B process, including:
1, mouse drags stock in optional components A;
2, FTQWatchStockViewController preserves the information of dragging stock to memory space such as shear plate;
3, mouse drag is to optional components B;
4, FTQWatchStockViewController drags stock from memory space such as shear plate NSPasteboard loads
Ticket information;
If 5, the current group of optional components B is system business grouping, dragging stock behavior is not supported;
If 6, the current free grouping of optional components B and the free grouping of data source are same, stock is executed
Otherwise moving operation executes stock and replicates operation.
The method and system of stock market interaction linkage provided by the invention, realize the process of a replication component function,
Including:
1, component, command+c replication components are chosen;
2, system shear plate NSPasteboard is obtained, empties and deposits in memory space such as shear plate (NSPasteboard)
Content;
3, module information is preserved to NSPasteboard;
4, blank space, command+v is chosen to paste component;
5, judge that shear plate whether there is module information, if it is present charging assembly information, creates component, if not
In the presence of then without response.
The method and system of stock market interaction linkage provided by the invention realize that the establishment of panel assembly and revocation create
Etc. functions process, including:
1, create or close a component;
2, a contrary operation is preserved inside the stack of NSUndoManager, the contrary operation for creating component is " closing group
Part " operates, and the contrary operation of closing assembly is " creating component " operation;
3, panel zone responds the revocation function shortcut key command+z of user;
When 4, executing destruction operation, from the stack top of NSUndoManager, a contrary operation is obtained, if there is reverse
Operation then executes this contrary operation, completes revocation function.
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method can
To realize by another way.For example, device embodiments described above are only schematical, for example, module or
The division of unit, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units
Or component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, institute
Display or the mutual coupling, direct-coupling or communication connection discussed can be by some interfaces, device or unit
INDIRECT COUPLING or communication connection can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, and be shown as unit
Component may or may not be physical unit, you can be located at a place, or may be distributed over multiple networks
On unit.Some or all of unit therein can be selected according to the actual needs to realize the mesh of present embodiment scheme
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also may be used
It, can also be during two or more units be integrated in one unit to be that each unit physically exists alone.It is above-mentioned integrated
The form that hardware had both may be used in unit is realized, can also be realized in the form of SFU software functional unit.
It, can if integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product
To be stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention substantially or
Say that all or part of the part that contributes to existing technology or the technical solution can embody in the form of software products
Out, which is stored in a storage medium, including some instructions are used so that a computer equipment
(can be personal computer, server or the network equipment etc.) or processor (processor) execute each implementation of the present invention
The all or part of step of methods.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM,
Read-Only Memory), random access memory (RAM, RandomAccess Memory), magnetic disc or CD etc. it is various
The medium of program code can be stored.
The foregoing is merely the section Examples of the present invention, are not intended to limit protection scope of the present invention, every utilization
Equivalent device or equivalent process transformation made by description of the invention and accompanying drawing content are applied directly or indirectly in other correlations
Technical field, be included within the scope of the present invention.