CN101976234A - Table data display device and method - Google Patents

Table data display device and method Download PDF

Info

Publication number
CN101976234A
CN101976234A CN 201010289755 CN201010289755A CN101976234A CN 101976234 A CN101976234 A CN 101976234A CN 201010289755 CN201010289755 CN 201010289755 CN 201010289755 A CN201010289755 A CN 201010289755A CN 101976234 A CN101976234 A CN 101976234A
Authority
CN
China
Prior art keywords
list data
policy
parses policy
data
parses
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.)
Granted
Application number
CN 201010289755
Other languages
Chinese (zh)
Other versions
CN101976234B (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.)
Yonyou Network Technology Co Ltd
Original Assignee
Yonyou Software 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 Yonyou Software Co Ltd filed Critical Yonyou Software Co Ltd
Priority to CN201010289755.XA priority Critical patent/CN101976234B/en
Publication of CN101976234A publication Critical patent/CN101976234A/en
Application granted granted Critical
Publication of CN101976234B publication Critical patent/CN101976234B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a table data display device, comprising a table type renderer which is used for analyzing the data of an inner table according to an analysis strategy, regulating the structure of an outer table on the basis of the analyzed data of the inner table and displaying the regulated outer table. The invention further provides a table data display method, comprising the following steps of: step 100, analyzing table data according to the analysis strategy, and regulating the structure of the outer table on the basis of the analyzed table data; and step 200, displaying the regulated outer table. According to the technical scheme of the invention, the table data display device and method can be realized, which can be used for displaying rich content and flexible table forms according to different requirements of users and have the advantages of clear layers and high generality.

Description

List data exhibiting device and method
Technical field
The present invention relates to the form treatment technology, relate in particular to list data exhibiting device and method.
Background technology
Form is that Java Swing offers very practical tool control of one of developer, and the developer can will exist the data exhibiting of logic association relation to give the user by form.But the form in that reality is used often needs some item are carried out careful division, shown in form 1-1, in such form, is relation arranged side by side between row and the row.
Table 1-1
Desire the form in this structure of graphical interface of user realization table 1-1, the JTable and the relevant control thereof that then only use JavaSwing to provide are difficult to be competent at.Reason has two:
One, structural requirement.Traditional form mainly is to carry out representing of data with the relation of every row or every row, the content and the corresponding relation of the statement data that every row or every row can be complete.But, when the scene that runs into the above table requirement, for example, aspect " business objective ", represent the content of handbook 1, handbook 2, handbook 3 respectively, just be difficult to accurately express the relation between them.Just need this time structurally more to optimize, can describe the form model that concerns between them more accurately and finish this function.
Its two, the requirement on the content revealing.Traditional form often can only carry out representing of form by a kind of mode.Such as, fill table content with a character string.But sometimes, we wish the form that using more " intelligence " some, can be according to certain rule, such as, according to the constraint of certain separator, or be applied to a certain row of form or form even any one cell according to certain mapping principle.Obviously, traditional form can't satisfy this demand by a kind of easy-to-use mode flexibly.
Therefore, need a kind of list data processing mode, solve and to represent the problem of forms mode and abundant content flexibly according to different application scenarioss.
Summary of the invention
In view of more than, technical scheme of the present invention technical matters to be solved is, a kind of list data exhibiting device and method are provided, it can be separated and must not represent the abundant content and the problem of forms mode flexibly according to different application scenarioss.
The invention provides a kind of list data exhibiting device, comprise form type renderer, according to parses policy the data of internal layer form are resolved, the structure of outer form is adjusted, show adjusted described outer form based on the data of the internal layer form after resolving.By this technical scheme, can realize representing required form according to user's different needs, clear layer, versatility height.
In technique scheme, preferably, further can also comprise: table content parses policy warehouse, be used to store a plurality of described parses policy, obtain and use for described form type renderer.By this technical scheme, can resolve required content by parses policy.
In technique scheme, preferably, further can also comprise: the outer form adapter is used for the outer form of adaptive number of different types.By this technical scheme, can form the outer form of Suresh Kumar, be applied to existing form, need not extra code maintenance.
In technique scheme, preferably, described parses policy comprises the processing policy to a plurality of separators.By this technical scheme, can formulate parses policy exactly, parse table content accurately.
In technique scheme, preferably, described separator comprises: ", ", ". ", "/", " | ".
The present invention also provides a kind of list data methods of exhibiting, comprising: step S100, according to parses policy list data is resolved, and based on the list data after resolving the structure of outer form is adjusted; Step S200 shows adjusted outer form.By this technical scheme, can realize representing required form according to user's different needs, clear layer, versatility height.
In technique scheme, preferably, described step S100 is specially: step S102, carry out data processing to the data that needs are resolved; Step S104 judges whether to be provided with parses policy, is being provided with under the situation of described parses policy, proceeds to step S106, under the situation that described parses policy is not set, proceeds to step S108; Described step S106 obtains described parses policy from table content parses policy warehouse; Described step S108 uses default acquiescence parses policy; Step S110, initialization inner layer sheet lattice model carries out expansion of content; Step S112, described internal layer form sends the event notice incident about positional information; Step S114, described outer form carries out the adjustment of tableau format in response to described event notice incident.By this technical scheme, represent corresponding form exactly according to corresponding parses policy.
In technique scheme, preferably, in described step S114, carry out the adjustment of tableau format by the structural adjustment algorithm.
In technique scheme, preferably, described parses policy comprises the processing policy to a plurality of separators.By this technical scheme, can formulate parses policy exactly, parse table content accurately.
In technique scheme, preferably, described separator comprises: ", ", ". ", "/", " | ".
Description of drawings
Fig. 1 shows the block diagram of list data exhibiting device according to an embodiment of the invention;
Fig. 2 shows the process flow diagram of list data methods of exhibiting according to an embodiment of the invention;
Fig. 3 shows the synoptic diagram of list data exhibiting device according to an embodiment of the invention;
Fig. 4 shows the workflow diagram of list data methods of exhibiting according to an embodiment of the invention;
Fig. 5 shows the processing flow chart of outer form according to an embodiment of the invention; And
Fig. 6 shows the design sketch that use list data exhibiting device according to an embodiment of the invention is applied to graphical interface of user.
Embodiment
In order more to be expressly understood above-mentioned purpose of the present invention, feature and advantage, the present invention is further described in detail below in conjunction with the drawings and specific embodiments.
Set forth a lot of details in the following description so that fully understand the present invention, still, the present invention can also adopt other to be different from other modes described here and implement, and therefore, the present invention is not limited to the restriction of following public specific embodiment.
Fig. 1 shows the block diagram of list data exhibiting device according to an embodiment of the invention.
As shown in Figure 1, list data exhibiting device 100 comprises form type renderer 102 according to an embodiment of the invention, according to parses policy the data of internal layer form are resolved, data based on the internal layer form after resolving are adjusted the structure of outer form, show adjusted described outer form.By this technical scheme, can realize representing required form according to user's different needs, clear layer, versatility height.
In technique scheme, further can also comprise: table content parses policy warehouse, be used to store a plurality of described parses policy, obtain and use for described form type renderer.By this technical scheme, can resolve required content by parses policy.
In technique scheme, further can also comprise: the outer form adapter is used for the outer form of adaptive number of different types.By this technical scheme, can form the outer form of Suresh Kumar, be applied to existing form, need not extra code maintenance.
In technique scheme, described parses policy comprises the processing policy to a plurality of separators.By this technical scheme, can formulate parses policy exactly, parse table content accurately.
In technique scheme, described separator comprises: ", ", ". ", "/", " | ".
Fig. 2 shows the process flow diagram of list data methods of exhibiting according to an embodiment of the invention.
As shown in Figure 2, the list data methods of exhibiting comprises according to an embodiment of the invention: step S100, according to parses policy list data is resolved, and based on the list data after resolving the structure of outer form is adjusted; Step S200 shows adjusted outer form.By this technical scheme, can realize representing required form according to user's different needs, clear layer, versatility height.
In technique scheme, described step S100 is specially: step S102, carry out data processing to the data that needs are resolved; Step S104 judges whether to be provided with parses policy, is being provided with under the situation of described parses policy, proceeds to step S106, under the situation that described parses policy is not set, proceeds to step S108; Described step S106 obtains described parses policy from table content parses policy warehouse; Described step S108 uses default acquiescence parses policy; Step S110, initialization inner layer sheet lattice model carries out expansion of content; Step S112, described internal layer form sends the event notice incident about positional information; Step S114, described outer form carries out the adjustment of tableau format in response to described event notice incident.By this technical scheme, can realize representing corresponding form exactly according to corresponding parses policy.
In technique scheme, in described step S114, carry out the adjustment of tableau format by the structural adjustment algorithm.
In technique scheme, described parses policy comprises the processing policy to a plurality of separators.By this technical scheme, can formulate parses policy exactly, parse table content accurately.
In technique scheme, described separator comprises: ", ", ". ", "/", " | ".
Fig. 3 shows the synoptic diagram of list data exhibiting device according to an embodiment of the invention.
As shown in Figure 3, internal layer form 302, the internal layer form here is embedded in the cell table that each need segment corresponding to the form type renderer 102 among Fig. 1.
Outer form 308, for example form of the table 1-1 pattern in shape such as the background technology.
Parses policy factory 304, corresponding to the table content parses policy warehouse among first embodiment, be used to provide the strategy of form analysis, in design, several parses policy have been preset for table content, as for several frequently seen separator ", ", ". ", the string delimiter processing policy of "/" etc.; For character string array Context resolution is the character string array manipulation strategy of form.In addition, the user can be according to the demand customization parses policy of oneself.
Outer form adapter 306, corresponding to the outer form adapter among first embodiment, by this adapter, outer form 308 that can adaptive number of different types, the form that is applied to exist, and need not to do extra code maintenance.
By the technical scheme of this embodiment, can realize a kind of list data exhibiting device, represent abundant flexibly table style according to different application scenarioss, clear layer, versatility is good.
Fig. 4 shows the workflow diagram of list data methods of exhibiting according to an embodiment of the invention.
As shown in Figure 4, at first,, analyze the data that need parsing in step 402.
In step 404, internal layer form renderer, the form type renderer among corresponding first embodiment is handled data.
In step 406, judge whether the user has been provided with the parses policy for table content, if Provisioning Policy then carry out step 408 if the user is not provided with parses policy, then carry out step 410.
In step 408, from tactful factory, table content parses policy warehouse among corresponding first embodiment, obtain a concrete strategy and realize carrying out the parsing of table content, for example, the user uses character string array parses policy, then use this strategy can with the input data, rule with the character string array is divided, and each element can represent as the delegation of internal layer form in the character string array, enters step 412 then.
In step 410, use the strategy of default acquiescence to handle.
In step 412, after data parsing finished, data were ready, and initialization inner layer sheet lattice model carries out representing of content.
In step 414, the internal layer form sends the event notice about positional information.
In step 416, outer form after receiving the incident that the internal layer form sends, extracts relevant information as the prison hearer of internal layer form incident, by the structural adjustment algorithm, carries out the structure adjustment high as row.The concrete processing procedure of adjusting as shown in Figure 5.
In step 502, outer form obtains related data after receiving event notice.
In step 504, obtain data: the row of rowNo=outer form application table type renderer number, the row of colNo=outer form application table type renderer number, the line number that Rows=internal layer form has, posMap=Map<colNo,<rowNo, rows〉〉 type, data structure map.
In step 506,,<rowNo, rows with key-value pair<colNo〉〉 count the map of outer form.
In step 508, judge the record that whether comprises colNo among the map, be then to enter step 510, otherwise enter step 512.
In step 510, more the data colNo correspondence among the new data map<rowNo, rows 〉.
In step 512, general<colNo,<rowNo, rows〉write down and insert among the map.
In step 514, map obtains data by visit: the maxRows=outer form is for capable number the row of rowNo, and nested internal layer form is the maximum number of lines of form type renderer.
In step 516, capable number high maxRows of being of row for rowNo of outer form is set.
By these steps, can correct in outer form, embodying with the structural relation between complicate list form data and data.
As long as carrying out following two steps, the user just can use the list data exhibiting device to represent table style flexibly.
Step 1: form type renderer is set.The user is set to this form type renderer the row that need to use this device.
Step 2: the outer form that can directly use this device to provide also can make it have the functional characteristic that outer form need have by the adaptive existing form of adapter.
Technical scheme is applied to graphical interface of user according to an embodiment of the invention, the table style that represents as shown in Figure 6, respectively to three handbook objects, four aspects by the contrast project is enumerated are described and comparative analysis.Correct the representing of content of using form type renderer the relation between them and each handbook need be able to be represented.
To sum up, technical scheme can realize list data exhibiting method and device according to an embodiment of the invention, and it has following characteristics:
1. easy-to-use flexibly-as can to dispose the parses policy of multiple table content according to user's request.
According to the form type renderer in the technical scheme of the present invention, except the strategy for the parsing of character string array of an acquiescence is provided, the user can also oneself customize the data parsing mode at own demand.
2. clear layer-represent content and cell location control separate processes.
List data demonstration device content displayed is controlled according to different data parsing strategies by form type renderer, and the final form that represents is controlled by the control algolithm of outer form.When the end of form type renderer data configuration, it is corresponding to notify outer form to carry out by the mode of event notice, carries out the adjustment of structure, and clear layer is understood.
3. versatility height-can carry out adapter to already present all kinds form to handle.
The list data demonstration device can adaptive polytype form by the outer form adapter, makes it all can application table type renderer.Realize the careful scene of dividing detailed of specific needs.The modification cost is little, and the scope of application is extensive.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a list data exhibiting device is characterized in that, comprises
Form type renderer is resolved the data of internal layer form according to parses policy, based on the data of the internal layer form after resolving the structure of outer form is adjusted, and shows adjusted described outer form.
2. list data exhibiting device according to claim 1 is characterized in that, further comprises:
Table content parses policy warehouse is used to store a plurality of described parses policy, obtains and uses for described form type renderer.
3. list data exhibiting device according to claim 1 and 2 is characterized in that, further comprises:
The outer form adapter is used for the outer form of adaptive number of different types.
4. list data exhibiting device according to claim 1 and 2 is characterized in that described parses policy comprises the processing policy to a plurality of separators.
5. list data exhibiting device according to claim 4 is characterized in that, described separator comprises: ", ", ". ", "/", " | ".
6. a list data methods of exhibiting is characterized in that, comprising:
Step S100 resolves list data according to parses policy, based on the list data after resolving the structure of outer form is adjusted;
Step S200 shows adjusted outer form.
7. list data methods of exhibiting according to claim 6 is characterized in that, described step S100 is specially:
Step S102 carries out data processing to the data that needs are resolved;
Step S104 judges whether to be provided with parses policy, is being provided with under the situation of described parses policy, proceeds to step S106, under the situation that described parses policy is not set, proceeds to step S108;
Described step S106 obtains described parses policy from table content parses policy warehouse;
Described step S108 uses default acquiescence parses policy;
Step S110, initialization inner layer sheet lattice model carries out expansion of content;
Step S112, described internal layer form sends the event notice incident about positional information;
Step S114, described outer form carries out the adjustment of tableau format in response to described event notice incident.
8. list data methods of exhibiting according to claim 7 is characterized in that, in described step S114, carries out the adjustment of tableau format by the structural adjustment algorithm.
9. according to each described list data methods of exhibiting in the claim 6 to 8, it is characterized in that described parses policy comprises the processing policy to a plurality of separators.
10. list data methods of exhibiting according to claim 8 is characterized in that, described separator comprises: ", ", ". ", "/", " | ".
CN201010289755.XA 2010-09-21 2010-09-21 table data display device and method Active CN101976234B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010289755.XA CN101976234B (en) 2010-09-21 2010-09-21 table data display device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010289755.XA CN101976234B (en) 2010-09-21 2010-09-21 table data display device and method

Publications (2)

Publication Number Publication Date
CN101976234A true CN101976234A (en) 2011-02-16
CN101976234B CN101976234B (en) 2015-09-02

Family

ID=43576120

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010289755.XA Active CN101976234B (en) 2010-09-21 2010-09-21 table data display device and method

Country Status (1)

Country Link
CN (1) CN101976234B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104239022A (en) * 2013-06-18 2014-12-24 深圳市华傲数据技术有限公司 Table component processing method and device
CN105117404A (en) * 2015-07-17 2015-12-02 南京大学 Chart display defect optimization method based on chart types and data feature scenes

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101488088A (en) * 2009-02-13 2009-07-22 山东浪潮齐鲁软件产业股份有限公司 Method for exhibiting foreground GRID data table data by JAVASCRIPT template
CN101610399A (en) * 2009-07-22 2009-12-23 杭州华三通信技术有限公司 The method of the plan class service scheduling system and the class service dispatching that realizes a plan
CN101794280A (en) * 2010-03-11 2010-08-04 北京中科辅龙计算机技术股份有限公司 Form automatic generation method and system based on form template set

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101488088A (en) * 2009-02-13 2009-07-22 山东浪潮齐鲁软件产业股份有限公司 Method for exhibiting foreground GRID data table data by JAVASCRIPT template
CN101610399A (en) * 2009-07-22 2009-12-23 杭州华三通信技术有限公司 The method of the plan class service scheduling system and the class service dispatching that realizes a plan
CN101794280A (en) * 2010-03-11 2010-08-04 北京中科辅龙计算机技术股份有限公司 Form automatic generation method and system based on form template set

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104239022A (en) * 2013-06-18 2014-12-24 深圳市华傲数据技术有限公司 Table component processing method and device
CN104239022B (en) * 2013-06-18 2018-04-10 深圳市华傲数据技术有限公司 A kind of form component treating method and apparatus
CN105117404A (en) * 2015-07-17 2015-12-02 南京大学 Chart display defect optimization method based on chart types and data feature scenes
CN105117404B (en) * 2015-07-17 2018-12-21 南京大学 Based on the chart display defect optimization method under subtype and data feature scene

Also Published As

Publication number Publication date
CN101976234B (en) 2015-09-02

Similar Documents

Publication Publication Date Title
CN105069118B (en) A kind of application scenarios management method and system based on GIS configurations
CN102254022B (en) Method for sharing metadata of information resources of various data types
CN102880709B (en) Data warehouse management system and data warehouse management method
CN104809650A (en) Dynamic adaptive accessing method of heterogeneous sensor data
CN108804602A (en) A kind of distributed spatial data storage computational methods based on SPARK
CN110489464A (en) Heuristic figure fusion visualization method and device
CN103500060B (en) The manufacture method of electronic chart, producing device, display packing and display device
CN103268226A (en) Test script file generation method and device
CN103152368B (en) A kind of extendible Internet of Things perception data display converting method and system
CN107111433A (en) Electronic system with Access Management Access mechanism and the method for operating the electronic system
CN103200254A (en) Water conservation Internet of things oriented multi-source heterogeneous data obtaining and transmitting method
CN106294299A (en) A kind of report form generation method and device
CN110209377A (en) Interface packet processing method, device, equipment and storage medium based on factory class
CN103324401A (en) Chart display method and device of report
CN102375738B (en) A kind of apparatus and method of mobile terminal data management
CN108133024A (en) Towards the geographical spatial data service integration method of the dynamic configuration of mobile client
CN108062649A (en) Body paper warehouse management method, device and computer readable storage medium
CN106407092A (en) Data reporting method, data reporting device, data statistics method and data statistics device for interface operations
Petrolo et al. Integrating wireless sensor networks within a city cloud
CN105653569B (en) Image data extension processing method and device
CN101976234A (en) Table data display device and method
CN103366109B (en) XWindow substitution filling method based on digital image recognition algorithm
CN104915412A (en) Method and system for connecting dynamic management database
CN102447575A (en) Method for analyzing and managing log file with hexadecimal data
CN102629352B (en) Towards compound event method for mode matching and the system of real-time perception environment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee
CP03 Change of name, title or address

Address after: 100094 Haidian District North Road, Beijing, No. 68

Patentee after: Yonyou Network Technology Co., Ltd.

Address before: 100094 Beijing city Haidian District North Road No. 68, UFIDA Software Park

Patentee before: UFIDA Software Co., Ltd.