CN104239025B - A kind of form fixes preposition treating method and apparatus - Google Patents

A kind of form fixes preposition treating method and apparatus Download PDF

Info

Publication number
CN104239025B
CN104239025B CN201310259254.0A CN201310259254A CN104239025B CN 104239025 B CN104239025 B CN 104239025B CN 201310259254 A CN201310259254 A CN 201310259254A CN 104239025 B CN104239025 B CN 104239025B
Authority
CN
China
Prior art keywords
row
controller
model
data
column
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310259254.0A
Other languages
Chinese (zh)
Other versions
CN104239025A (en
Inventor
盘学文
贾西贝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Huaao Data Technology Co Ltd
Original Assignee
Shenzhen Huaao Data Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Huaao Data Technology Co Ltd filed Critical Shenzhen Huaao Data Technology Co Ltd
Priority to CN201310259254.0A priority Critical patent/CN104239025B/en
Publication of CN104239025A publication Critical patent/CN104239025A/en
Application granted granted Critical
Publication of CN104239025B publication Critical patent/CN104239025B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

This application provides a kind of form to fix preposition processing method, including:First controller obtains fixed preposition instruction, and fixed preposition instruction comprises at least row mark;First controller hides row mark respective column in the first spreadsheet interface, and sends leading information and comprise at least the row to second controller, leading information and identify;Second controller identifies according to row shows row mark respective column in the second spreadsheet interface.The embodiment of the present invention additionally provides corresponding form and fixes pre-procesor.The embodiment of the present invention is shown by using second list before the current list need to fix preposition row, when user needs row preposition to fixation to operate, can normally edit, improve Consumer's Experience.

Description

A kind of form fixes preposition treating method and apparatus
Technical field
The application is related to java swing component technologys field, more particularly to a kind of form fix preposition processing method and Device.
Background technology
Java Swing standard packages can meet the needs of general desktop programs in actual applications, for example form is painted System, edition function.The framework of form component is essentially controller, model and the side at interface in Java Swing standard packages Formula, controller are shown by control interface after obtaining data to model.
In Java Swing standard packages, the use of form component is relatively broad, and user may need in actual use Fixed in similar excel forms the operation of preposition a certain row, operation preposition to fixation in the prior art be by with The selected row in family carry out sectional drawing, and cut picture is placed in second list, and the left side for being placed in active sheet interface is carried out It has been shown that, so when user operates to active sheet, fixed preposition row are all the time in most preceding display.
But the fixation that prior art is realized is preposition because being before being shown in active sheet with graphic form, when user needs When the row preposition to fixation operate, due to picture not editable, now user can not realize the edit operation to the row, Cause Consumer's Experience poor.
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.
Brief description of the drawings
Fig. 1 is the schematic flow sheet that a kind of form of the present invention fixes the preposition embodiment of processing method one;
Fig. 2 is the structural representation that a kind of form of the present invention fixes the embodiment of pre-procesor one.
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.

Claims (6)

1. a kind of form fixes preposition processing method, it is characterised in that 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 second control Device, the leading information comprise at least the row and identified;
First controller, which hides the respective column of row mark described in the first spreadsheet interface, to be 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's row mould Respective column is found in type 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;Or first control Device sets the corresponding column width of row mark to be 0 and refresh interface;
The second controller obtains the row mark in the leading information;
The second controller identifies according to the row, obtains corresponding column data by row model, the second controller will The column data is shown in the respective column of row mark described in the second spreadsheet interface, wherein, the second controller and described first Data in controller Data sharing model;
After the data that user identifies respective column to the row in second spreadsheet interface are modified, second form Amended data are sent in the data model by interface by second controller;After the data model is to the modification Data preserved.
2. according to any described method of claim 1, it is characterised in that the second controller identifies according to the row, leads to Cross row model and obtain corresponding column data, the column data is included arranging described in the second spreadsheet interface by the second controller Respective column is identified, 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's row mould Respective column is found in type 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.
3. according to the method for claim 1, it is characterised in that the second controller identifies according to the row, passes through row Model obtains corresponding column data, and the column data is included arranging described in the second spreadsheet interface by the second controller to be identified Respective column, including:
The second controller identifies according to the row, obtains corresponding column data by row model, the second controller will The column data is shown in the respective column of row mark described in the second spreadsheet interface, and the second spreadsheet interface is shown in into the first form The left side.
4. a kind of form fixes pre-procesor, it is characterised in that including the first controller, second controller, the first form Interface and the second spreadsheet interface:
First controller, for obtaining fixed preposition instruction, the preposition instruction of fixation comprises at least row mark;Hide the The respective column of row mark described in one spreadsheet interface, and send leading information and comprised at least to second controller, the leading information The row mark;
The second controller, for obtaining the mark of the row in the leading information;Identified according to the row, obtained by row model Corresponding column data is taken, the column data is included the row mark described in the second spreadsheet interface and corresponded to by the second controller Row, wherein, the data in the second controller and the first controller Data sharing model;
After the data that user identifies respective column to the row in second spreadsheet interface are modified, second form Amended data are sent in the data model by interface by second controller;After the data model is to the modification Data preserved;
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, and it is true to set row mark respective column hidden, And issue attribute and change event;
The first row model, after listening to attribute change event, found according to row mark in first agent's row model Respective column simultaneously deletes 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;
First controller is additionally operable to set the corresponding column width of row mark to be 0 and refresh interface.
5. according to any described device of claim 4, it is characterised in that described device also including second controller subordinate the Two row models and second agent's row model;
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, found according to row mark in second agent's row model Respective column simultaneously provides 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.
6. device according to claim 4, it is characterised in that the second controller is additionally operable to be identified according to the row, Corresponding column data is obtained by row model, the second controller includes the column data described in the second spreadsheet interface Row mark respective column, and the second spreadsheet interface is shown in the first form left side.
CN201310259254.0A 2013-06-20 2013-06-20 A kind of form fixes preposition treating method and apparatus Active CN104239025B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310259254.0A CN104239025B (en) 2013-06-20 2013-06-20 A kind of form fixes preposition treating method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310259254.0A CN104239025B (en) 2013-06-20 2013-06-20 A kind of form fixes preposition treating method and apparatus

Publications (2)

Publication Number Publication Date
CN104239025A CN104239025A (en) 2014-12-24
CN104239025B true CN104239025B (en) 2018-03-13

Family

ID=52227173

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310259254.0A Active CN104239025B (en) 2013-06-20 2013-06-20 A kind of form fixes preposition treating method and apparatus

Country Status (1)

Country Link
CN (1) CN104239025B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110297718B (en) * 2018-03-22 2023-05-26 阿里巴巴集团控股有限公司 Interface element linkage processing method, device and equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101192143A (en) * 2006-12-01 2008-06-04 上海亚伦科技有限公司 Software interface construction method
CN101576881A (en) * 2008-05-07 2009-11-11 万德洪 Data visualization system and realization method
CN102819539A (en) * 2011-09-28 2012-12-12 金蝶软件(中国)有限公司 Repaid data type-in method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101192143A (en) * 2006-12-01 2008-06-04 上海亚伦科技有限公司 Software interface construction method
CN101576881A (en) * 2008-05-07 2009-11-11 万德洪 Data visualization system and realization method
CN102819539A (en) * 2011-09-28 2012-12-12 金蝶软件(中国)有限公司 Repaid data type-in method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JAVA Swing中JTable的固定列问题;推酷;《http://www.tuicool.com/articles/MNzYvq》;20130424;第1页 *

Also Published As

Publication number Publication date
CN104239025A (en) 2014-12-24

Similar Documents

Publication Publication Date Title
GB0523995D0 (en) Method,system and computer program product for access control
JP2004070956A5 (en)
DE112015003769T5 (en) DISPLAYING DISPLAYED ALWAYS ON CONTENT
WO2007006045A3 (en) System and method for providing direct web access to controlers in a process control environment
CN102339291A (en) Method and equipment for generating list
CN103970526A (en) Android based single-activity view switching technology
CN105045775A (en) Method and apparatus for generating Excel document in designated format
CN107003875A (en) For the display methods of multiple operating system, device and electronic equipment
CN103108035A (en) Application localization method and device based on web-based operating system (WEBOS)
DE112016002384T5 (en) Auxiliary layer with automated extraction
Johnston et al. Expanding the marriage metaphor in understanding long‐term business relationships
CN104239025B (en) A kind of form fixes preposition treating method and apparatus
CN105898608A (en) Video play control method and browser
CN104239022B (en) A kind of form component treating method and apparatus
DE102013109250A1 (en) Low power application execution in a low utilization data processing device of a graphics processing unit
CN104881233B (en) Control method by sliding and device in touch interface
CN105468656B (en) Webpage background image generation method and system
CN104615349A (en) Information processing method and electronic device
CN106933439A (en) A kind of image processing method and system based on social platform
JP2005259125A5 (en)
Garlan Modeling challenges for CPS systems
CN103902268A (en) ETL process execution system and method
Sparkes No sign of a machine mind yet
CN106201473A (en) Rendering intent, server and the system in a kind of map inquiry region
CN107391642B (en) Materialized view refreshing method and device, storage medium and processor

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB03 Change of inventor or designer information

Inventor after: Pan Xuewen

Inventor after: Jia Xibei

Inventor before: Pan Xuewen

COR Change of bibliographic data

Free format text: CORRECT: INVENTOR; FROM: PAN XUEWEN TO: PAN XUEWEN JIA XIBEI

GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder

Address after: 518000 2203/2204, Building 1, Huide Building, Beizhan Community, Minzhi Street, Longhua District, Shenzhen, Guangdong

Patentee after: SHENZHEN AUDAQUE DATA TECHNOLOGY Ltd.

Address before: 518057 Rooms 713, 715 and 716, 7/F, Software Building, No. 9, High-tech Middle Road, High-tech Zone, Nanshan District, Shenzhen, Guangdong Province

Patentee before: SHENZHEN AUDAQUE DATA TECHNOLOGY Ltd.

CP02 Change in the address of a patent holder