L8: Panels and view configurations
-
Upload
medialeg-gmbh -
Category
Data & Analytics
-
view
20 -
download
2
Transcript of L8: Panels and view configurations
1
BuildingWebapplicationwithpanelsandviewconfigurations
i-viewsUniversityPart08Basicknowledge:
BuildingWebapplicationwithpanelsandviewconfigurations
2
BuildingWebapplicationwithpanelsandviewconfigurations
2
Your teacher today
NadineProske
KnowledgeEngineer
intelligentviewsgmbh
3
BuildingWebapplicationwithpanelsandviewconfigurations
3
Content(Basicknowledge)
1. Overview ofthe configuration elements ofawebapplication1. Panels
2. Actions
3. Viewconfigurations
2. Preconditions tobuild awebapplication
3. Proceeding tobuild awebapplication
4. Panels
5. Basicknowledge:Viewconfigurations
6. Task:Hello Worldwithpanels
4
BuildingWebapplicationwithpanelsandviewconfigurations
4
Content(Advanced knowledge)
1. Advanced knowledge:view configurations
2. Actions
3. Task:Buildingasimplewebapplication
4. Homework:Expanding the builded webapplication withselected functions
5
BuildingWebapplicationwithpanelsandviewconfigurations
5
Webapplication
Applications consist of4parts:
- What:the data ofthe semantic graph database (objects and their properties),parts ofthe semanticmodel
- Where:Panels- Divisionofthe visible parts ofthe surface inareas
- When:Actions- Actionsinfluence the content ofthe panels
- How:view configurations- Configured viewsonobjects or parts ofthe semantic model
6
BuildingWebapplicationwithpanelsandviewconfigurations
6
7
BuildingWebapplicationwithpanelsandviewconfigurations
7
Panels
Where istmy data shown?
Panelsdetemine how the visible sections ofanapplication aredivided.Sopanels determine thefundamentallayout ofthe visulisation surface.
- Panelscan influence each other
- Panelscan contain further Panelsor view configurations
- Panelsreceive always exactly one object or typewhen they areactivated
- Panelscan passtheir element (object or type)tothe contained panels- There isapossibility tooverwrite the element viascript
- Panelsdon‘t have any other use.Anything else isconfigured viaActionsand view configurations.
8
BuildingWebapplicationwithpanelsandviewconfigurations
8
9
BuildingWebapplicationwithpanelsandviewconfigurations
9
Actions
When istmy data shown?
Actionscontrol which viewsarevisualized and the dependences between the panels.
- Types ofactions are- Menus,buttons
- Clicks onobjects or table rows
- You can determine inwhich panel actions have impacts.
10
BuildingWebapplicationwithpanelsandviewconfigurations
10
11
BuildingWebapplicationwithpanelsandviewconfigurations
11
view configurations
How ismy data shown?
Viewconfigurations arecontained inpanels and determine,how objects and types arevisualized.Viewconfigurations areviewsonthe data.
- Freeofcontext view configurations- They arenotbound toaparticular type.
- For example:picture,text,JavaScript,menus,searches,facets
- Object dependend view configurations- Differentviewsonthe data can be specified.There can be as many view configurations pertypeas you want.
- They aredetermined atthe typeofthe objects.
- For example:groups,properties,tables and styles
12
BuildingWebapplicationwithpanelsandviewconfigurations
12
13
BuildingWebapplicationwithpanelsandviewconfigurations
13
Preconditions for building awebapplication
- Components- REST
- view configuration
- Viewconfiguration-Mapper
- Static FileResource- Zipwithindex.html
- Mediator
- Bridge:for REST-Services
14
BuildingWebapplicationwithpanelsandviewconfigurations
14
Preconditions for building awebapplication
- Components- REST
- view configuration
- Viewconfiguration-Mapper
- Net-Navigator
- Static FileResource- Zipwithindex.html
- Mediator
- Bridge
15
BuildingWebapplicationwithpanelsandviewconfigurations
15
Proceeding tobuild awebapplication
1. Build the semantic model
2. Divide the surface insections withpanels
3. Build the view configurations for objects and linkthem tothe panels
16
BuildingWebapplicationwithpanelsandviewconfigurations
16
Proceeding tobuild awebapplication
Step 1:Gotothe application withthe identifier „viewConfigMapper“and there create amain windowpanel.
17
BuildingWebapplicationwithpanelsandviewconfigurations
17
Kindofpanels and basic conditions
- Mainwindow Panel- Eachapplicationconsistsofexactlyonemainwindowpanel
- Contains„normal”panelsandonewindowtitlepanel
- Dialogpanel- Islocatedasapop-upwindowinfrontofthemainwindow
- Eachapplicationcancontainanynumberofdialogpanels
- Containswindowtitlepanelsandfootlinepanels
Example for adialog panel
18
BuildingWebapplicationwithpanelsandviewconfigurations
18
Proceeding tobuild awebapplicationStep 2:Determine the typeofthe panel.
19
BuildingWebapplicationwithpanelsandviewconfigurations
19
Paneltypes
Layout-Panels
Layout-panelscontainadditionalpanels.*
- Linearlayout• Allcontainedpanelsaredisplayedsimultaneously
• Determinationoftheorientation(horizontal,vertical)
- Switchinglayout• Thereisalwaysonlyonecontainingpanelshownsimultaneouslyonthesamevisualizationarea.
*Currentlyitisn’tpossibletoreuseapanel.Thiswillbepossiblewithoneofthenextupdates.
20
BuildingWebapplicationwithpanelsandviewconfigurations
20
Paneltypes
Viewpanels
Viewpanelsdon’tcontainfurtherpanels.
Viewpanelscontainviewconfigurations.
- Flexibleview• Severalviewsarepossibledependentofthetypeofthedisplayedobject.
- Fixedview• Containsafixedelementofthemodel
• Pictures,texts,menus
21
BuildingWebapplicationwithpanelsandviewconfigurations
21
Inthis case the mainwindow panel isalinearpanel,because allcontained panels areshown simultaneously (inthis case vertical).
22
BuildingWebapplicationwithpanelsandviewconfigurations
22
Inthis case the panel isalinearpanel,too,becauseallcontained panels areshown simultaneously (inthis case horizontal).
23
BuildingWebapplicationwithpanelsandviewconfigurations
23
Thispanel isapanel ofthetypeflexibleview,becauseit doesn‘t contain furtherpanels.It isnotafixedview,because several viewconfigurations can beshown here dependent onthe object that isshown(here it is„one“).
24
BuildingWebapplicationwithpanelsandviewconfigurations
24
Question:What panel isthis?
25
BuildingWebapplicationwithpanelsandviewconfigurations
25
Question:What panel isthis?
It isalinearlayout panelwithavertical orientationofthe two containedpanels.
26
BuildingWebapplicationwithpanelsandviewconfigurations
26
Question:What panel isthis?
27
BuildingWebapplicationwithpanelsandviewconfigurations
27
Question:What panel isthis?
Thisisaflexibleviewpanel.It is notafixedview,because there isnotalways shown the person„NadineProske“.
Theview configurationdetermines for the type„person“that here isalways apicture next tothe properties oftheperson and the buttons„projects“and „events“.
28
BuildingWebapplicationwithpanelsandviewconfigurations
28
Proceeding tobuild awebapplication
Step 3:Addfurther panels.
29
BuildingWebapplicationwithpanelsandviewconfigurations
29
Proceeding tobuild awebapplication
Step 4:Linkthe panels withthe view configurations.
For example,linkthe window titlepanel withthe view configuration ofthe typelabel.
30
BuildingWebapplicationwithpanelsandviewconfigurations
30
Panels- ConfigurationActionsactivateinpanel:Allactions,whichareactivatedinthesource-panel,leadtoadisplayofthesource-panelwithitstransferredobject.(Forexample:Eachclickinthepanel“objectlist”,leadstothedisplayoftheresultinthe“detailview”panel.)
Influences:Hereyoucandetermineapanel,whichwillbeinfluencedbythecurrentpanel(Forexample:dependingonwhichobjectsaredisplayedinthepanel“searchresults”,itinfluenceswhichfacetswillbedisplayedinthepanel“facets”.)• Scriptfortargetobject:Bymeansofscripts,itispossiblenotsimplytoindicatepanels,butalsoconditions.Thisenablesthecurrentpaneltoinfluenceotherselectedpanels.
31
BuildingWebapplicationwithpanelsandviewconfigurations
31
Panels- Configuration
Configuration name:Thepanel can have any name soyou can findit again quickly.
32
BuildingWebapplicationwithpanelsandviewconfigurations
32
„Viewpanels“- Configuration
Startelement: Hereyoucanspecifyaconcreteobjectortype,whoservesasoutputelementandfromwhichitispossibletotakeadditionalwaysthroughthenetwork.
Scriptforstartelement:Hereyoucanfindformulateconditions,underwhichaspecificobjectortypeshallbedisplayedasastartelement.
Donotoverridestartelement: Ifthisfieldischecked,noUsercandeletethestartelement.
Sub-configuration(fixedviewonly!): Hereyoucanspecifytheviewconfiguration,whichisusedforthefixedview.
Littlereminder:Viewpanelsdon’tcontainfurtherpanels.Viewpanelscontainviewconfigurations.
33
BuildingWebapplicationwithpanelsandviewconfigurations
33
„Layoutpanels“- Configuration
Activatefirst by default (only inswitching layout!):Isit true,that means that the first sub panel isactivated bydefault (inthe example here it isthe start page).
Littlereminder:Layoutpanels contain further panels.
34
BuildingWebapplicationwithpanelsandviewconfigurations
34
Panels- LayoutWidth andheight (ormaximalwidthandmaximalheight)canbespecifiedinpixelsorpercentage.
Flex-grow:Theflex-growpropertydefinestheabilityforaflexitemtogrowifnecessary.Asyoucanseeintheexampleontheright,theelements1,2and4havethefactor1,whileelement3hasthefactor2,thereforeittakestwiceasmuchofspaceastheotherelements.
Flex-shrink: Theflex-shrinkpropertyspecifiestheshrinkagefactorofflexibleelements.Asyoucanseeintheexampleontheright,theelement1,2and4havethefactor2,whileelement3hasthefactorof1,thereforetheyaretwiceassmallaselement3. 3 421
35
BuildingWebapplicationwithpanelsandviewconfigurations
35
Panels- ContextInthecontext-tabofthepanels,youcancheckbackanddelete,allrelationsofthecurrentpaneltootherpanelsandviewconfigurations.
Addingrelationsatthispointisn’tpossibleyetini-views5.0.Thereforetheprocedureistodeterminethedisplayoftherelationsintheview-configuration.
36
BuildingWebapplicationwithpanelsandviewconfigurations
36
Viewconfigurations
How ismy data shown?
Viewconfigurations arecontained inpanels and determine,how objects and types arevisualized.viewconfigurations areviewsonthe data.
- Freeofcontext view configurations- They arenotbound toaparticular type.
- For example:picture,text,JavaScript,menus,searches,facets
- Object dependend view configurations- Differentviewsonthe data can be figured.There can as many view configurations pertype.
- They aredetermined atthe typeofthe objects.
- For example:groups,properties,tables and styles
Littlereminder
37
BuildingWebapplicationwithpanelsandviewconfigurations
37
Viewconfigurations
38
BuildingWebapplicationwithpanelsandviewconfigurations
38
Viewconfigurations
39
BuildingWebapplicationwithpanelsandviewconfigurations
39
Viewconfigurations
Label
40
BuildingWebapplicationwithpanelsandviewconfigurations
40
Panelsand view configuration
Step 4:Linkthe panels withthe view configurations.
For example,linkthe window titlepanel withthe view configuration ofthe typelabel.
Littlereminder
41
BuildingWebapplicationwithpanelsandviewconfigurations
41
Viewconfigurations
Image
42
BuildingWebapplicationwithpanelsandviewconfigurations
42
Viewconfigurations
Menu
43
BuildingWebapplicationwithpanelsandviewconfigurations
43
Viewconfigurations
Searchfield view
44
BuildingWebapplicationwithpanelsandviewconfigurations
44
Viewconfigurations
Searchresult view
45
BuildingWebapplicationwithpanelsandviewconfigurations
45
Viewconfigurations
Table
46
BuildingWebapplicationwithpanelsandviewconfigurations
46
Viewconfigurations
Facet view
47
BuildingWebapplicationwithpanelsandviewconfigurations
47
Viewconfigurations
Search
48
BuildingWebapplicationwithpanelsandviewconfigurations
48
Viewconfigurations
Search
49
BuildingWebapplicationwithpanelsandviewconfigurations
49
Viewconfigurations
Text
50
BuildingWebapplicationwithpanelsandviewconfigurations
50
Viewconfigurations
Graph
51
BuildingWebapplicationwithpanelsandviewconfigurations
51
Viewconfigurations
Graphconfiguration
52
BuildingWebapplicationwithpanelsandviewconfigurations
52
Viewconfigurations
Group:Allcontained view configurations areshown simultaneously.Depending ontheir stylethecontained view configurations arelocated one below the other or side by side.
Alternative:Thecontained view configurations areshown as alternativesand you have tochoose whichone toshow inatab menu,soonly one view configuration isshown inthe available space.
53
BuildingWebapplicationwithpanelsandviewconfigurations
53
Viewconfigurations
Group
54
BuildingWebapplicationwithpanelsandviewconfigurations
54
Viewconfigurations
Properties
55
BuildingWebapplicationwithpanelsandviewconfigurations
55
Viewconfigurations
Property
56
BuildingWebapplicationwithpanelsandviewconfigurations
56
Task:Hello Worldwithpanels
Configure asimpletext „Hello World“withthe help ofpanels and openit inyourbrowser withthe localhost server.
57
BuildingWebapplicationwithpanelsandviewconfigurations
57
Task:Hello Worldwithpanels
1. Startthe mediator
2. Startthe bridge
3. Goto„Anwendung“(german for „application“,soon the english terms willbe added)and clickonthe application „viewconfigurationmapper“.Theidentifier should have the name„viewConfigMapper“.
4. Createthe main window panel for yourapplication.Choose fixed view (german:festgelegteAnsicht)as apanel type.
TheMediatorisneeded if you want toaccessthe UIand the network simultaneously.
58
BuildingWebapplicationwithpanelsandviewconfigurations
58
Task:Hello Worldwithpanels5.Createasub configuration withthe viewconfiguration type„Text“
6.Refreshthe application with
7.Openthe webapplication withthe URLhttp://localhost:[port_of_the_bridge.ini]/[RESTService]/[StaticFileResource]/index.html
Inour case the URLishttp://localhost:8815/viewconfig/viewconfigmapper/index.html
59
BuildingWebapplicationwithpanelsandviewconfigurations
59
Result:Hello Worldwithpanels
60
BuildingWebapplicationwithpanelsandviewconfigurations
60
Content(Advanced knowledge)
1. Advanced knowledge:view configurations
2. Actions
3. Task:Buildingasimplewebapplication
4. Homework:Expanding the builded webapplication withselected functions
61
BuildingWebapplicationwithpanelsandviewconfigurations
61
Sendyour questions to:[email protected]
Nohomeworktoday.
Nextlesson:Thursday
Thank you for visitingi-viewsUniversity