The content of the invention
It is editable solid that technical problems to be solved in this application are to provide a kind of preposition processing method offer of form fixation
Fixed preposition mode so that user can also carry out edit operation in the preposition row of fixation, improve Consumer's Experience.
Accordingly, present invention also provides corresponding form to fix pre-procesor.
In order to solve the above problems, this application discloses a kind of form to fix preposition processing method, including:
First controller obtains fixed preposition instruction, and the preposition instruction of fixation comprises at least row mark;
First controller hides the respective column of row mark described in the first spreadsheet interface, and sends leading information to the
Two controllers, the leading information comprise at least the row and identified;
The second controller shows the respective column of row mark described in the second spreadsheet interface according to the row mark.
Further, first controller is hidden the respective column of row mark described in the first spreadsheet interface and included:
It is true that first controller, which sets row mark respective column hidden, and issues attribute and change event;
After the first controller subordinate first row model listens to attribute change event, according to row mark in first agent
Respective column is found in row model and deletes respective column in first agent's row model;
First agent's row model notifies the first controller to refresh interface according to the column data after operation.
Further, first controller is hidden the respective column of row mark described in the first spreadsheet interface and included:
First controller sets the corresponding column width of row mark to be 0 and refresh interface.
Further, the second controller shows the respective column of row mark described in the second spreadsheet interface according to the row mark
Including:
It is false that the second controller, which sets row mark respective column hidden, and issues attribute and change event;
After the second controller subordinate secondary series model listens to attribute change event, according to row mark in second agent
Respective column is found in row model and provides respective column to second agent's row model;
Second agent's row model refreshes interface according to the column data notice second controller after operation.
Further, the second controller shows the respective column of row mark described in the second spreadsheet interface according to the row mark
Including:
The second controller shows the respective column of row mark described in the second spreadsheet interface according to the row mark, and by the
Two spreadsheet interfaces are shown in the first form left side.
Present invention also provides a kind of form to fix pre-procesor, including the first controller, second controller, first
Spreadsheet interface and the second spreadsheet interface:
First controller, for obtaining fixed preposition instruction, the preposition instruction of fixation comprises at least row mark;It is hidden
The respective column of row mark described in the first spreadsheet interface is hidden, and sends leading information to second controller, the leading information is at least
Including the row mark;
The second controller, for showing the respective column of row mark described in the second spreadsheet interface according to the row mark.
Further, described device also includes the first row model and first agent's row model of the first controller subordinate;
First controller is additionally operable to after obtaining the preposition instruction of user's fixation, is set row to identify respective column hidden and is
True, and issue attribute and change event;
The first row model, after listening to attribute change event, according to row mark in first agent's row model
Find respective column and delete respective column in first agent's row model;
First agent's row model, for notifying the first controller to refresh interface according to the column data after operation.
Further, first controller is additionally operable to:
The corresponding column width of row mark is set to be 0 and refresh interface.
Further, described device also includes the secondary series model and second agent's row model of second controller subordinate;
It is false that the second controller, which is additionally operable to set row mark respective column hidden, and issues attribute and change event;
The secondary series model, after listening to attribute change event, according to row mark in second agent's row model
Find respective column and provide respective column to second agent's row model;
Second agent's row model, for refreshing interface according to the column data notice second controller after operation.
Further, the second controller, which is additionally operable to be shown according to the row mark, arranges mark described in the second spreadsheet interface
Respective column, and the second spreadsheet interface is shown in the first form left side.
Compared with prior art, the application includes advantages below:Being shown by using second list before the current list needs
Fixed preposition row, when user needs row preposition to fixation to operate, it can normally edit, improve Consumer's Experience.
Embodiment
It is below in conjunction with the accompanying drawings and specific real to enable the above-mentioned purpose of the application, feature and advantage more obvious understandable
Mode is applied to be described in further detail the application.
Reference picture 1, show that a kind of form of the application fixes the schematic flow sheet of the preposition embodiment of processing method one,
The embodiment of the present invention is applied in the form component display field of Java swing components, is carried in the embodiment of the present invention
For two spreadsheet interfaces, when pre action is fixed in a certain row during user needs to the first spreadsheet interface, the first controller
Operation can be hidden to the target column in the first spreadsheet interface, then notify that the second spreadsheet interface shows the target column, second
The left side that spreadsheet interface is shown in the first spreadsheet interface is fixed preposition to realize, including:
Step S101, the first controller obtains fixed preposition instruction;
The preposition instruction of fixation comprises at least row mark;
User, which chooses, shows that setting fixation is preposition after a certain row in the first spreadsheet interface, and now the first controller gets use
Preposition instruction is fixed caused by the operation of family, the fixation is preposition to instruct the row mark for including target column.
Step S102, the first controller hides the respective column of row mark described in the first spreadsheet interface, and sends leading information
To second controller;
The leading information comprises at least the row and identified;
Further, first controller, which hides the respective column of row mark described in the first spreadsheet interface, can use such as lower section
Formula:
It is true that first controller, which sets row mark respective column hidden, and issues attribute and change event;
After the first controller subordinate first row model listens to attribute change event, according to row mark in first agent
Respective column is found in row model and deletes respective column in first agent's row model;
First agent's row model notifies the first controller to refresh interface according to the column data after operation.
Further, first controller is hidden the respective column of row mark described in the first spreadsheet interface and included:
First controller sets the corresponding column width of row mark to be 0 and refresh interface.
In embodiments of the present invention, the first controller can have two kinds to the Stealth Modus of target column, and the first is to pass through
Two row models, carry out real hide and operate, be both, the attribute that first row model listens to the first controller changes event
Afterwards, corresponding column data in first agent's row model is deleted, then first agent's row model notifies according to the column data after deletion
First controller refreshes interface display, realizes and hides;The second way is that the first controller sets target column in current interface
Width is 0, realizes not showing for the row.
Step S103, second controller shows the respective column of row mark described in the second spreadsheet interface according to the row mark.
Further, the second controller shows the respective column of row mark described in the second spreadsheet interface according to the row mark
Can be in the following way:
It is false that the second controller, which sets row mark respective column hidden, and issues attribute and change event;
After the second controller subordinate secondary series model listens to attribute change event, according to row mark in second agent
Respective column is found in row model and provides respective column to second agent's row model;
Second agent's row model refreshes interface according to the column data notice second controller after operation.
Further, the second controller shows the respective column of row mark described in the second spreadsheet interface according to the row mark
Can be in the following way:
The second controller shows the respective column of row mark described in the second spreadsheet interface according to the row mark, and by the
Two spreadsheet interfaces are shown in the first form left side.
In embodiments of the present invention, the data in the first controller and second controller Data sharing model, when the first control
After target column is hidden in first spreadsheet interface of device control processed, second controller is notified, second controller gets the row of target column
After mark, column data is obtained by row model, the row included in the second spreadsheet interface, and the second spreadsheet interface can be put
The left side of the first spreadsheet interface is placed in, to realize that the fixation of row is preposition.
So, when user needs row preposition to fixation to enter edlin, can in the second spreadsheet interface to this arrange into
Edlin is operated, and data are sent in data model by second controller after the completion of operation is preserved.
In the embodiment of the present invention, there is provided two spreadsheet interfaces, a certain row are carried out in user needs to the first spreadsheet interface
During fixed pre action, the first controller can be hidden operation to the target column in the first spreadsheet interface, then notify second
Spreadsheet interface shows the target column, and the second spreadsheet interface is shown in the left side of the first spreadsheet interface to realize that fixation is preposition, when with
Family needs that when editing fixed preposition row edit operation can be normally carried out, and improves Consumer's Experience.
For system embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, it is related
Part illustrates referring to the part of embodiment of the method.
Each embodiment in this specification is described by the way of progressive, what each embodiment stressed be with
The difference of other embodiment, between each embodiment identical similar part mutually referring to.
It is illustrated in figure 2 the structural representation that a kind of form of the present invention fixes the embodiment of pre-procesor one;
The embodiment of the present invention is applied in the form component display field of Java swing components, the form that the application provides
Fixed pre-procesor, including the first controller 11, second controller 21, the first spreadsheet interface 12 and the second spreadsheet interface
22:
First controller 11, for obtaining fixed preposition instruction, the preposition instruction of fixation comprises at least row mark;
The respective column of row mark described in the first spreadsheet interface 12 is hidden, and sends leading information to second controller 21, the preceding confidence
Breath comprises at least the row and identified;
The second controller 21, for showing that row mark described in the second spreadsheet interface 22 are corresponding according to the row mark
Row.
Further, described device also includes the first row model 13 and first agent's row model of the subordinate of the first controller 11
14;
First controller 11 is additionally operable to after obtaining the preposition instruction of user's fixation, is set row to identify respective column hidden and is
True, and issue attribute and change event;
The first row model 13, after listening to attribute change event, according to row mark in first agent's row model
Respective column is found in 14 and deletes respective column in first agent's row model 14;
First agent's row model 14, for notifying the first controller 11 to refresh interface according to the column data after operation.
Further, first controller 11 is additionally operable to:
The corresponding column width of row mark is set to be 0 and refresh interface.
Further, described device also includes the secondary series model 23 and second agent's row model of the subordinate of second controller 21
24;
It is false that the second controller 21, which is additionally operable to set row mark respective column hidden, and issues attribute and change thing
Part;
The secondary series model 23, after listening to attribute change event, according to row mark in second agent's row model
Respective column is found in 24 and provides respective column to second agent's row model;
Second agent's row model 24, for refreshing interface according to the column data notice second controller 21 after operation.
Further, the second controller 21 is additionally operable to be shown according to the row mark and arranged described in the second spreadsheet interface 22
Respective column is identified, and the second spreadsheet interface 22 is shown in the first form left side.
In embodiments of the present invention, the first controller 11 can have two kinds to the Stealth Modus of target column, and the first is logical
Two row models are crossed, real hide is carried out and operates, be both, the attribute that first row model 13 listens to the first controller 11 changes
After event, corresponding column data in first agent's row model 14 is deleted, then first agent's row model 14 is according to the row after deletion
The first controller of data notification 11 refreshes interface display, realizes and hides;The second way is that prezone is worked as in the setting of the first controller 11
The width of target column is 0 in face, realizes not showing for the row.
In embodiments of the present invention, the data in the first controller 11 and the Data sharing model of second controller 21, when
After target column is hidden in one controller 11 the first spreadsheet interface 12 of control, second controller 21 is notified, second controller 21 obtains
To after the row mark of target column, column data is obtained by row model, the row are included in the second spreadsheet interface 22, and can incited somebody to action
Second spreadsheet interface 22 is positioned over the left side of the first spreadsheet interface, to realize that the fixation of row is preposition.
So, can be in the second spreadsheet interface 22 to the row when user needs the row preposition to fixation to enter edlin
Edit operation is carried out, data are sent in data model by second controller 21 and preserved after the completion of operation.
Preposition treating method and apparatus is fixed to a kind of form provided herein above, is described in detail, this
Apply specific case in text to be set forth the principle and embodiment of the application, the explanation of above example is only intended to
Help understands the present processes and its core concept;Meanwhile for those of ordinary skill in the art, the think of according to the application
Think, in specific embodiments and applications there will be changes, in summary, this specification content should not be construed as pair
The limitation of the application.