SlideShare a Scribd company logo
1 of 25
TIBCO General Interface – CSS GUDIE

                                      Rohan Chandane
                                   8th September 2009




      © 2008 MindTree Consulting
Style Guide


  Applying style to basic GUI component
    Select a component
      Ctrl + Click
      From Component Hierarchy

    Choose Properties Editor
      Ctrl + 2
      Menu > Palettes > Properties Editor

    Most of the components have two-three common sections in properties
      Font and Box
      CSS




                                                                          Slide 2
Continued



   Font (Some Common Properties)
     Name
     Size
     Weight
     Color

   Box (Some Common Properties)
     BG Color
     Padding
     Margin
     Border
     Text Align and Overflow




                                   Slide 3
Continued



   CSS
     CSS Override
         This will override CSS class style

     CSS Rule
         This is CSS class name in CSS file




                                              Slide 4
Applying Style


  Setting Style
    Using component properties (examples)
      Name: accept existing font name
      Size: font size in px
      Weight: Bold/Normal
      Color : [Hex code, Eg. #00FF00]
      BG Color: [Hex code, Eg. #00FF00]
      Padding: padding in px [Eg. 5 or 5 10 5 10]
      Border: [Eg. Solid 1px, Solid 1px #b90010, dashed 2px #00FF00]
      Overflow : Scroll/Hidden/Expand




                                                                       Slide 5
Continued



   Using CSS Override
     Style which is unable to achieved using basic styling properties, CSS override
     allow to write actual CSS syntax.
     Eg.
       border-top:solid 1px #c6c6c6;border-bottom:solid 1px #c6c6c6;border-right:solid 1px
       #c6c6c6;

     This can be also used to override CSS Rule (which is CSS calss)




                                                                                             Slide 6
Continued



   CSS Rule
     This is the place where we can specify CSS class from the CSS Style file
     CSS Style class file can be created using
       Menu > File > New > CSS File

     CSS Class can be written like this
       .cssClassName{
             [some CSS style];
       }
     While writing the class name in the CSS Rule Name property it should be
     without ‘ . ’ (dot)
       Eg.




                                                                                Slide 7
CSS Override


  Overriding of CSS styles in GI



        CSS Rule (CSS Class)




           CSS Override            This will override CSS class’s style




         Styling Properties        This will override CSS Override’s style




                                                                             Slide 8
Different ways to apply Style


  CSS File
  Overriding default CSS
  Dynamic Property File
  CDF document
  Component Editing
  Value Template




                                Slide 9
Continued



  CSS File
    Create CSS file (Menu > File > New > CSS File)
    Eg. : Style.css
    .bottonRight{
         background: url(dialog-overlay_squard-cornered.gif) bottom left no-repeat;
    }

    .formBoxHeaderText{
         font-family: Tahoma,Arial,sans-serif;
         font-size: 13px;
         color: #001f45;
         font-weight: bold;
    }

    Use this class using ‘CSS Rule Name’ Property
Continued



    Project File Panel Setting
     To see the effect of the style on UI Screen, Right click on Style.css file. Click on
     Auto Load.
     Auto Load option can be changed from Edit Profile
 Option too. You can either
     keep it Auto load at application init or can load it manually.
     Whenever changes made in style and want to see how it reflect on screen, it
     need to Load/Reload option



             Context Menu showing option
             - Auto Load
             - Edit Profile

             - Load/Reload
Continued



  Overriding default(master) CSS
   There are default CSS classes for UI components, set by General
   Interface in CSS file.
   There are different CSS files for different browsers
     For Internet explorer , at JSXcssieJSX.css
     For Firefox , at JSXcssfxJSX.css
     For Safari , at JSXcsssafJSX.css

   To change the particular component ‘s style in GI, it need to find CSS
   class for that component from JSX.css and override it in user created CSS
   file
Continued



   To override GI default CSS class, it need to prefix #JSX
   Eg. To override GI’s Dialog Box CSS class, it should be like this
     Here, overriding border-width from 1px to 0px. Default is 1px

      #JSX .jsx30dialog {
               border-style: solid;
               border-width: 0px;
               border-color: #c6c6c6 #a6a6a6 #a6a6a6 #c6c6c6;
     }
Continued



   jsx.css can also be tweaked. Its better idea to use modified duplicate of
   jsx.css than actually changing jsx.css
Continued



   To apply style to GI’s label component, it need to write in this way
     #JSX .[classname]{}
     EG. #JSX .headerText{
}
Continued



  Dynamic Property File
   Use of this file is useful while applying CSS and reusability
     While applying CSS using Properties Editor, many times CSS style gets repeat for
     repeated components
       Eg. For Textboxes used on form, We need to override border for certain textbox
       repeatedly using Border property from Property Editor, Then instead of repeating same
       style [like ‘solid 1px #DDFFGG’] at all the places, it is good practice to use Dynamic
       Property File.
       In this file we create key-value pair, where key is name which we want to give for
       particular style and value is CSS style which need to apply against the name.
Continued



      Eg. @TextBoxBorder : solid 1px #DDFFGG;
      Where ‘@TextBoxBorder ‘ is key and ‘solid 1px #DDFFGG;’ is value
      Other than this it need to specify type for which property we need to create this key-
      value pair. For example –
         jsxtext
         jsxbgcolor
         jsxborder etc.
      By right clicking on that particular property in Properties Editor, key name will be
      appear in context menu. Select that as property value.




                                   Dynamic Property File view for setting CSS key-values
Continued



      The benefit of using this file is, when ever it need to change style for the component,
      style needs to update dynamic property file and it will be reflected to all as key is set
      for all related component. It helps to reduce change in style for all components needed.




        Right click on Border will give
        option in Dynamic Property File
Continued



  CDF document
   Style can be set using CDF document
   CDF document attribute
     jsxstyle
       Eg. <record id=“01” jsxtext=“Hello” jsxstyle=“color:#00FF00”/>

   Can be used with matrix, tree, table
Continued



  Component Editing
   Some component need to be styled by adding some tags into it’s xml
   structure
     This is when, it doesn’t have properties to define class or they doesn’t have
     specific CSS properties

   Eg. Matrix Component
     In order to style its alternative rows all together (columns) it need to add
     ‘<xslparameters >’ tag

      <xslparameters jsx_rowbg1="#E4EEFA" jsx_rowbg2="#C4D6EC">
      </xslparameters>
Continued



  Value Template
   For Matrix component, formatting or coloring of data is achieved using
   fragments of XSL style sheets known as value templates
   Columns of a Matrix component have a property field called value
   template where XSL can be placed to affect the output during runtime
   http://www.tibcommunity.com/docs/DOC-1594
Continued



   Sample Value Template XSL
   <xsl:template match="record" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   <div>
   <xsl:choose>
   <xsl:when test="{0}='United Kingdom'">
   <xsl:attribute name="style"> background-color: pink;</xsl:attribute></xsl:when>
   </xsl:choose> <xsl:value-of select="{0}"/> </div> </xsl:template>


     ‘record’ is the <record> tag in CDF, which is the data provider for matrix
Continued



     ‘record’ is the <record> tag in CDF, which is the data provider for matrix
     <xsl:when test="{0}='United Kingdom'">
       It means when column is ‘United Kingdom’
       Example
Component Specific Style


  Matrix
    Applying CSS to matrix component in different ways
      xslparameters tag
      Matrix Components CSS properties
      Value templates
      Dynamic property file

    There is no direct method to apply CSS class directly to matrix or its cells
Imagination Action Joy




                                  www.mindtree.com

     © 2008 MindTree Consulting

More Related Content

What's hot

Unit 3 (it workshop).pptx
Unit 3 (it workshop).pptxUnit 3 (it workshop).pptx
Unit 3 (it workshop).pptxDr.Lokesh Gagnani
 
New Elements & Features in CSS3
New Elements & Features in CSS3New Elements & Features in CSS3
New Elements & Features in CSS3Jamshid Hashimi
 
Css 1. -_introduction_2010-11_
Css 1. -_introduction_2010-11_Css 1. -_introduction_2010-11_
Css 1. -_introduction_2010-11_Jupiterstar Ko
 
Css training tutorial css3 &amp; css4 essentials
Css training tutorial css3 &amp; css4 essentialsCss training tutorial css3 &amp; css4 essentials
Css training tutorial css3 &amp; css4 essentialsQA TrainingHub
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSSAmit Tyagi
 
4. Web Technology CSS Basics-1
4. Web Technology CSS Basics-14. Web Technology CSS Basics-1
4. Web Technology CSS Basics-1Jyoti Yadav
 
Getting started with html5
Getting started with html5Getting started with html5
Getting started with html5Suresh Kumar
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSSFerdous Mahmud Shaon
 
CSS: a rapidly changing world
CSS: a rapidly changing worldCSS: a rapidly changing world
CSS: a rapidly changing worldRuss Weakley
 
2 introduction css
2 introduction css2 introduction css
2 introduction cssJalpesh Vasa
 
Css Founder.com | Cssfounder org
Css Founder.com | Cssfounder orgCss Founder.com | Cssfounder org
Css Founder.com | Cssfounder orgCss Founder
 
SMACSS Workshop
SMACSS WorkshopSMACSS Workshop
SMACSS WorkshopTim Hettler
 
CSS101 - Concept Fundamentals for non UI Developers
CSS101 - Concept Fundamentals for non UI DevelopersCSS101 - Concept Fundamentals for non UI Developers
CSS101 - Concept Fundamentals for non UI DevelopersDarren Gideon
 

What's hot (20)

Css
CssCss
Css
 
Pfnp slides
Pfnp slidesPfnp slides
Pfnp slides
 
Unit 3 (it workshop).pptx
Unit 3 (it workshop).pptxUnit 3 (it workshop).pptx
Unit 3 (it workshop).pptx
 
New Elements & Features in CSS3
New Elements & Features in CSS3New Elements & Features in CSS3
New Elements & Features in CSS3
 
Unit 2 (it workshop)
Unit 2 (it workshop)Unit 2 (it workshop)
Unit 2 (it workshop)
 
Css 1. -_introduction_2010-11_
Css 1. -_introduction_2010-11_Css 1. -_introduction_2010-11_
Css 1. -_introduction_2010-11_
 
Css training tutorial css3 &amp; css4 essentials
Css training tutorial css3 &amp; css4 essentialsCss training tutorial css3 &amp; css4 essentials
Css training tutorial css3 &amp; css4 essentials
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
 
CSS and CSS3
CSS and CSS3CSS and CSS3
CSS and CSS3
 
4. Web Technology CSS Basics-1
4. Web Technology CSS Basics-14. Web Technology CSS Basics-1
4. Web Technology CSS Basics-1
 
Getting started with html5
Getting started with html5Getting started with html5
Getting started with html5
 
Fundamental CSS3
Fundamental CSS3Fundamental CSS3
Fundamental CSS3
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
 
CSS: a rapidly changing world
CSS: a rapidly changing worldCSS: a rapidly changing world
CSS: a rapidly changing world
 
Css3
Css3Css3
Css3
 
Css.html
Css.htmlCss.html
Css.html
 
2 introduction css
2 introduction css2 introduction css
2 introduction css
 
Css Founder.com | Cssfounder org
Css Founder.com | Cssfounder orgCss Founder.com | Cssfounder org
Css Founder.com | Cssfounder org
 
SMACSS Workshop
SMACSS WorkshopSMACSS Workshop
SMACSS Workshop
 
CSS101 - Concept Fundamentals for non UI Developers
CSS101 - Concept Fundamentals for non UI DevelopersCSS101 - Concept Fundamentals for non UI Developers
CSS101 - Concept Fundamentals for non UI Developers
 

Similar to TIBCO General Interface - CSS Guide

Cascading Style Sheet
Cascading Style SheetCascading Style Sheet
Cascading Style SheetMeenakshi Paul
 
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4Erin M. Kidwell
 
Web topic 15 1 basic css layout
Web topic 15 1  basic css layoutWeb topic 15 1  basic css layout
Web topic 15 1 basic css layoutCK Yang
 
DW_lesson2.ppt
DW_lesson2.pptDW_lesson2.ppt
DW_lesson2.pptPramenathA
 
DW_lesson2.ppt
DW_lesson2.pptDW_lesson2.ppt
DW_lesson2.pptJohnSon872476
 
DW_lesson2.ppt
DW_lesson2.pptDW_lesson2.ppt
DW_lesson2.pptssuser666f98
 
Cordova training - Day 2 Introduction to CSS 3
Cordova training - Day 2 Introduction to CSS 3Cordova training - Day 2 Introduction to CSS 3
Cordova training - Day 2 Introduction to CSS 3Binu Paul
 
Webpage style with CSS
Webpage style with CSSWebpage style with CSS
Webpage style with CSSHemant Patidar
 
Unit 2-CSS & Bootstrap.ppt
Unit 2-CSS & Bootstrap.pptUnit 2-CSS & Bootstrap.ppt
Unit 2-CSS & Bootstrap.pptTusharTikia
 
2_css.pptx
2_css.pptx2_css.pptx
2_css.pptxVarunMM2
 
2_css.pptx
2_css.pptx2_css.pptx
2_css.pptxVarunMM2
 
Css introduction
Css  introductionCss  introduction
Css introductionvishnu murthy
 

Similar to TIBCO General Interface - CSS Guide (20)

CSS
CSSCSS
CSS
 
Cascading Style Sheet
Cascading Style SheetCascading Style Sheet
Cascading Style Sheet
 
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
 
Web topic 15 1 basic css layout
Web topic 15 1  basic css layoutWeb topic 15 1  basic css layout
Web topic 15 1 basic css layout
 
DW_lesson2.ppt
DW_lesson2.pptDW_lesson2.ppt
DW_lesson2.ppt
 
DW_lesson2.ppt
DW_lesson2.pptDW_lesson2.ppt
DW_lesson2.ppt
 
DW_lesson2.ppt
DW_lesson2.pptDW_lesson2.ppt
DW_lesson2.ppt
 
DW_lesson2.ppt
DW_lesson2.pptDW_lesson2.ppt
DW_lesson2.ppt
 
DW_lesson2.ppt
DW_lesson2.pptDW_lesson2.ppt
DW_lesson2.ppt
 
Cordova training - Day 2 Introduction to CSS 3
Cordova training - Day 2 Introduction to CSS 3Cordova training - Day 2 Introduction to CSS 3
Cordova training - Day 2 Introduction to CSS 3
 
Css
CssCss
Css
 
Webpage style with CSS
Webpage style with CSSWebpage style with CSS
Webpage style with CSS
 
HowTo_CSS
HowTo_CSSHowTo_CSS
HowTo_CSS
 
HowTo_CSS
HowTo_CSSHowTo_CSS
HowTo_CSS
 
Unit 2-CSS & Bootstrap.ppt
Unit 2-CSS & Bootstrap.pptUnit 2-CSS & Bootstrap.ppt
Unit 2-CSS & Bootstrap.ppt
 
2_css.pptx
2_css.pptx2_css.pptx
2_css.pptx
 
2_css.pptx
2_css.pptx2_css.pptx
2_css.pptx
 
CSS Overview
CSS OverviewCSS Overview
CSS Overview
 
Css introduction
Css  introductionCss  introduction
Css introduction
 
Css
CssCss
Css
 

More from Rohan Chandane

Agile Maturity Model, Certified Scrum Master!
Agile Maturity Model, Certified Scrum Master!Agile Maturity Model, Certified Scrum Master!
Agile Maturity Model, Certified Scrum Master!Rohan Chandane
 
Agile & Scrum, Certified Scrum Master! Crash Course
Agile & Scrum,  Certified Scrum Master! Crash CourseAgile & Scrum,  Certified Scrum Master! Crash Course
Agile & Scrum, Certified Scrum Master! Crash CourseRohan Chandane
 
An Introduction To Testing In AngularJS Applications
An Introduction To Testing In AngularJS Applications An Introduction To Testing In AngularJS Applications
An Introduction To Testing In AngularJS Applications Rohan Chandane
 
Agile :what i learnt so far
Agile :what i learnt so farAgile :what i learnt so far
Agile :what i learnt so farRohan Chandane
 
Sencha / ExtJS : Object Oriented JavaScript
Sencha / ExtJS : Object Oriented JavaScriptSencha / ExtJS : Object Oriented JavaScript
Sencha / ExtJS : Object Oriented JavaScriptRohan Chandane
 
Blogger's Park Presentation (Blogging)
Blogger's Park Presentation (Blogging)Blogger's Park Presentation (Blogging)
Blogger's Park Presentation (Blogging)Rohan Chandane
 
J2ME GUI Programming
J2ME GUI ProgrammingJ2ME GUI Programming
J2ME GUI ProgrammingRohan Chandane
 
Parsing XML in J2ME
Parsing XML in J2MEParsing XML in J2ME
Parsing XML in J2MERohan Chandane
 
Java2 MicroEdition-J2ME
Java2 MicroEdition-J2MEJava2 MicroEdition-J2ME
Java2 MicroEdition-J2MERohan Chandane
 

More from Rohan Chandane (13)

Agile Maturity Model, Certified Scrum Master!
Agile Maturity Model, Certified Scrum Master!Agile Maturity Model, Certified Scrum Master!
Agile Maturity Model, Certified Scrum Master!
 
Agile & Scrum, Certified Scrum Master! Crash Course
Agile & Scrum,  Certified Scrum Master! Crash CourseAgile & Scrum,  Certified Scrum Master! Crash Course
Agile & Scrum, Certified Scrum Master! Crash Course
 
An Introduction To Testing In AngularJS Applications
An Introduction To Testing In AngularJS Applications An Introduction To Testing In AngularJS Applications
An Introduction To Testing In AngularJS Applications
 
Agile :what i learnt so far
Agile :what i learnt so farAgile :what i learnt so far
Agile :what i learnt so far
 
Backbone js
Backbone jsBackbone js
Backbone js
 
Node js
Node jsNode js
Node js
 
Sencha / ExtJS : Object Oriented JavaScript
Sencha / ExtJS : Object Oriented JavaScriptSencha / ExtJS : Object Oriented JavaScript
Sencha / ExtJS : Object Oriented JavaScript
 
Blogger's Park Presentation (Blogging)
Blogger's Park Presentation (Blogging)Blogger's Park Presentation (Blogging)
Blogger's Park Presentation (Blogging)
 
J2ME GUI Programming
J2ME GUI ProgrammingJ2ME GUI Programming
J2ME GUI Programming
 
Parsing XML in J2ME
Parsing XML in J2MEParsing XML in J2ME
Parsing XML in J2ME
 
J2ME RMS
J2ME RMSJ2ME RMS
J2ME RMS
 
J2ME IO Classes
J2ME IO ClassesJ2ME IO Classes
J2ME IO Classes
 
Java2 MicroEdition-J2ME
Java2 MicroEdition-J2MEJava2 MicroEdition-J2ME
Java2 MicroEdition-J2ME
 

Recently uploaded

My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍾 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍾 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍾 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍾 8923113531 🎰 Avail...gurkirankumar98700
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 

Recently uploaded (20)

My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍾 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍾 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍾 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍾 8923113531 🎰 Avail...
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 

TIBCO General Interface - CSS Guide

  • 1. TIBCO General Interface – CSS GUDIE Rohan Chandane 8th September 2009 © 2008 MindTree Consulting
  • 2. Style Guide Applying style to basic GUI component Select a component Ctrl + Click From Component Hierarchy Choose Properties Editor Ctrl + 2 Menu > Palettes > Properties Editor Most of the components have two-three common sections in properties Font and Box CSS Slide 2
  • 3. Continued
 Font (Some Common Properties) Name Size Weight Color Box (Some Common Properties) BG Color Padding Margin Border Text Align and Overflow Slide 3
  • 4. Continued
 CSS CSS Override This will override CSS class style CSS Rule This is CSS class name in CSS file Slide 4
  • 5. Applying Style Setting Style Using component properties (examples) Name: accept existing font name Size: font size in px Weight: Bold/Normal Color : [Hex code, Eg. #00FF00] BG Color: [Hex code, Eg. #00FF00] Padding: padding in px [Eg. 5 or 5 10 5 10] Border: [Eg. Solid 1px, Solid 1px #b90010, dashed 2px #00FF00] Overflow : Scroll/Hidden/Expand Slide 5
  • 6. Continued
 Using CSS Override Style which is unable to achieved using basic styling properties, CSS override allow to write actual CSS syntax. Eg. border-top:solid 1px #c6c6c6;border-bottom:solid 1px #c6c6c6;border-right:solid 1px #c6c6c6; This can be also used to override CSS Rule (which is CSS calss) Slide 6
  • 7. Continued
 CSS Rule This is the place where we can specify CSS class from the CSS Style file CSS Style class file can be created using Menu > File > New > CSS File CSS Class can be written like this .cssClassName{ [some CSS style]; } While writing the class name in the CSS Rule Name property it should be without ‘ . ’ (dot) Eg. Slide 7
  • 8. CSS Override Overriding of CSS styles in GI CSS Rule (CSS Class) CSS Override This will override CSS class’s style Styling Properties This will override CSS Override’s style Slide 8
  • 9. Different ways to apply Style CSS File Overriding default CSS Dynamic Property File CDF document Component Editing Value Template Slide 9
  • 10. Continued
 CSS File Create CSS file (Menu > File > New > CSS File) Eg. : Style.css .bottonRight{ background: url(dialog-overlay_squard-cornered.gif) bottom left no-repeat; } .formBoxHeaderText{ font-family: Tahoma,Arial,sans-serif; font-size: 13px; color: #001f45; font-weight: bold; } Use this class using ‘CSS Rule Name’ Property
  • 11. Continued
 Project File Panel Setting To see the effect of the style on UI Screen, Right click on Style.css file. Click on Auto Load. Auto Load option can be changed from Edit Profile
 Option too. You can either keep it Auto load at application init or can load it manually. Whenever changes made in style and want to see how it reflect on screen, it need to Load/Reload option Context Menu showing option - Auto Load - Edit Profile
 - Load/Reload
  • 12. Continued
 Overriding default(master) CSS There are default CSS classes for UI components, set by General Interface in CSS file. There are different CSS files for different browsers For Internet explorer , at JSXcssieJSX.css For Firefox , at JSXcssfxJSX.css For Safari , at JSXcsssafJSX.css To change the particular component ‘s style in GI, it need to find CSS class for that component from JSX.css and override it in user created CSS file
  • 13. Continued
 To override GI default CSS class, it need to prefix #JSX Eg. To override GI’s Dialog Box CSS class, it should be like this Here, overriding border-width from 1px to 0px. Default is 1px #JSX .jsx30dialog { border-style: solid; border-width: 0px; border-color: #c6c6c6 #a6a6a6 #a6a6a6 #c6c6c6; }
  • 14. Continued
 jsx.css can also be tweaked. Its better idea to use modified duplicate of jsx.css than actually changing jsx.css
  • 15. Continued
 To apply style to GI’s label component, it need to write in this way #JSX .[classname]{} EG. #JSX .headerText{
}
  • 16. Continued
 Dynamic Property File Use of this file is useful while applying CSS and reusability While applying CSS using Properties Editor, many times CSS style gets repeat for repeated components Eg. For Textboxes used on form, We need to override border for certain textbox repeatedly using Border property from Property Editor, Then instead of repeating same style [like ‘solid 1px #DDFFGG’] at all the places, it is good practice to use Dynamic Property File. In this file we create key-value pair, where key is name which we want to give for particular style and value is CSS style which need to apply against the name.
  • 17. Continued
 Eg. @TextBoxBorder : solid 1px #DDFFGG; Where ‘@TextBoxBorder ‘ is key and ‘solid 1px #DDFFGG;’ is value Other than this it need to specify type for which property we need to create this key- value pair. For example – jsxtext jsxbgcolor jsxborder etc. By right clicking on that particular property in Properties Editor, key name will be appear in context menu. Select that as property value. Dynamic Property File view for setting CSS key-values
  • 18. Continued
 The benefit of using this file is, when ever it need to change style for the component, style needs to update dynamic property file and it will be reflected to all as key is set for all related component. It helps to reduce change in style for all components needed. Right click on Border will give option in Dynamic Property File
  • 19. Continued
 CDF document Style can be set using CDF document CDF document attribute jsxstyle Eg. <record id=“01” jsxtext=“Hello” jsxstyle=“color:#00FF00”/> Can be used with matrix, tree, table
  • 20. Continued
 Component Editing Some component need to be styled by adding some tags into it’s xml structure This is when, it doesn’t have properties to define class or they doesn’t have specific CSS properties Eg. Matrix Component In order to style its alternative rows all together (columns) it need to add ‘<xslparameters >’ tag <xslparameters jsx_rowbg1="#E4EEFA" jsx_rowbg2="#C4D6EC"> </xslparameters>
  • 21. Continued
 Value Template For Matrix component, formatting or coloring of data is achieved using fragments of XSL style sheets known as value templates Columns of a Matrix component have a property field called value template where XSL can be placed to affect the output during runtime http://www.tibcommunity.com/docs/DOC-1594
  • 22. Continued
 Sample Value Template XSL <xsl:template match="record" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <div> <xsl:choose> <xsl:when test="{0}='United Kingdom'"> <xsl:attribute name="style"> background-color: pink;</xsl:attribute></xsl:when> </xsl:choose> <xsl:value-of select="{0}"/> </div> </xsl:template> ‘record’ is the <record> tag in CDF, which is the data provider for matrix
  • 23. Continued
 ‘record’ is the <record> tag in CDF, which is the data provider for matrix <xsl:when test="{0}='United Kingdom'"> It means when column is ‘United Kingdom’ Example
  • 24. Component Specific Style Matrix Applying CSS to matrix component in different ways xslparameters tag Matrix Components CSS properties Value templates Dynamic property file There is no direct method to apply CSS class directly to matrix or its cells
  • 25. Imagination Action Joy www.mindtree.com © 2008 MindTree Consulting