Custom LAF with 2 colors

how can I make a custom LAF with 2 colors?
thanks in advance!

There is a general overview for LAF writers at [1]. It doesn't go into the details of the specific APIs though. I am not aware of a detailed tutorial for writing a custom LAF / writing a custom theme for Metal. The code for core and most third-party LAFs is freely available, and if you're required to write a LAF / a theme, you should be really looking at that code and not cutting any corners.
Kirill
[1] http://today.java.net/pub/a/today/2006/09/12/how-to-write-custom-look-and-feel.html

Similar Messages

  • Creating custom LAF - failing with 'unexpected error'

    Hi,
    I'm trying to create a custom LAF based on the simple.desktop. I follow the steps for 'Create Look and Feel' and enter -
    Name: test-desktop
    Family: test
    Description: Test LAF
    Base Look and Feel: simple.desktop
    click Next and the 'Customise Styles and Icons' page is displayed.
    When I try and make any changes, or just go straight through to the 'Submit' I get an Error Page. Text is '
    You have encountered an unexpected error. Please contact the System Administrator for assistance. '
    Can anybody suggest what might be going wrong?
    Thanks,
    Paul.

    My view is yes as I need the custom LAF for my OA Framework pages and I couldn't see a more appropriate forum.
    If there is one, please suggest.
    Thanks,
    Paul.

  • "Custom" grouping and / or colored lines in ALV

    Hi!
    Two questions:
    1. Is it possible to use colors in the ALV for a given set of rows? I'd like to mark rows with a color, which are logically belongs together.
    2. Other approach would be to sort the ALV and via that the "similar" rows (i.e. some column values in the rows have the same value ) would be grouped.
    The normal ALV grouping feature is too general. E.g if the ALV contains a lot of empty cells, then those cells will be grouped as well, nevertheless they are logically don't belong together -> looks quite weird.
    If the custom grouping cannot be realized, then my approach would be the following:
    1. Sorting the table. -> rows where the content partially equal are in succession.
    2. Manually clear the cells in the second (in my business case only two lines can be partially equal, others are unique) row, which are the same as in the previous row.
    3. Use coloring to indicate that these two lines are belonging together.
    Best regards,
    Peter

    Hi Peter,
    It is possible to assign colors to a specific row. But you need to have some work around.
    You have to create an extra attribute for each column that you have in your table. The type of that attribute should be of WDUI_TABLE_CELL_DESIGN.
    After Instatiating your ALV Component you have to use the following statement for the column that you have to apply the color.
    ls_column-r_column->set_cell_design_fieldname( COLUMN1_DESIGN ). Assuming ls_column-r_column will have COLUMN1 as filed name.
    There are 16 colors that are defined and each combination from '00' to '15' will define one color.
    Look at the structure below.  Its a table with 4 columns(2nd and 4th represents colors for first and third columns)
    value11          00            value12          00
    value21          00            value22          00
    value31          02            value32          02.
    If you consider the above struture as your output table 3 rows and 4 columns  then your third row will be highlighted in green color because 02 represents green. You can hide your second column and fourth column in above example because they represents colors. Use the following statement to hide those columns.
    ls_column-r_column->set_visible(
                     cl_wd_uielement=>e_visible-none ). "ls_column-r_column will have 'COLUMN1_DESIGN'
    Let me know if you know more code.
    Thank You,
    Gajendra.

  • Not able to color different rows with different colors in a column of table

    Hi,
    I am trying to to display different rows with different colors in a column of the table based on some decode condition.
    I have gone through the following threads :
    Can we colour the rows in the column of a table
    Changing Color of a value in a column
    This is what i have done :
    1.Added the following code to custom.xss(changed the name to Custom.xss as suggested in one of the above threads) --- in path ---- jdev\myhtml\OA_HTML\cabo\styles
    <style selector=".1">
    <includeStyle name="DefaultFontFamily"/>
    <property name="font-size">11pt</property>
    <property name="font-weight">Bolder</property>
    <property name="color">#008000</property>
    <property name="text-indent">3px</property>
    </style>
    <style selector=".2">
    <includeStyle name="DefaultFontFamily"/>
    <property name="font-size">11pt</property>
    <property name="font-weight">Bolder</property>
    <property name="color">#FFFF00</property>
    <property name="text-indent">3px</property>
    </style>
    2. Sql query of the VO is :
    select comments,role ,decode(role,'REQUESTER','1','2') Colorattr from xxat_sars_action_history where request_id = :1 and event_name = :2 and action_code <> 'PENDING'
    order by sequence_num desc
    3. Coded the following in the process request of the controller:
    OATableBean table = (OATableBean)webBean.findIndexedChildRecursive("CommentsTB");
    OAMessageStyledTextBean roleBN = (OAMessageStyledTextBean)webBean.findIndexedChildRecursive("role");
    OADataBoundValueViewObject cssjob = new OADataBoundValueViewObject(roleBN,"Colorattr");
    roleBN.setAttributeValue(oracle.cabo.ui.UIConstants.STYLE_CLASS_ATTR, cssjob);
    where 1 and 2 form the colors ( i have even tried with 'Red' and 'Yellow'...as it was not working replaced with 1 and 2)
    4.The query returns data fine with corresponding 1 and 2 values.
    But different colors are not getting reflecting on to the UI.
    I am testing this on my local jdev.
    Please do let me know if i am missing something.
    Thanks ,
    Sushma.

    Any Clues please.....
    Thanks,
    Sushma.

  • Custom theme with Fiori launchpad

    Hi
    I have created a custom theme using the theme designer  as per detailed in Colorful Fiori - Part 3 - Sea Blue
    I can see some changes taking effect in the preview but not all. For e.g. the tile title color, icon color did not change.
    When I use the custom theme with  the fiori launchpad url, I do not see any of the tiles. Only button I see is the logout button.
    I checked in debug, it did show me few 404 errors.  wondering why the custom theme works for my ui5 application but not with launchpad url.
    Appreciate your help, in identifying what I might be doing wrong.
    Thanks
    Kalpana
    Tags edited by: Michael Appleby

    Hi Masa,
    Thanks for replying !
    We found that our exact issue was resolved in Version 1.1.7 of UI Theme designer (OSS note 1941092) .
    So we upgraded our SAP_UI component to SP08 and now we are on version 1.2.2 of UI theme.
    I am now able to see the tiles on my Fiori launchpad and the logo I defined in the custom theme. But the custom theme I applied did not get applied to the tiles and the background.
    I still see the whole page (Except our company logo) with sap standard sap_bluecrystal theme.
    I did the Inspect element, and see that it is still using the standard CSS.  Cleared the browser histroy just to make sure that it is not picking the old theme from cache  - but with no help.
    If I go back to the theme designer and open the custom theme, I can see the csutom  theme changes in the preview. 
    Any help is appreciated.
    Thanks
    Kalpana

  • My brother dropped my iphone 6 on tile and its cracked and the screen is white with different colored lines down it. What do you suggest I do???

    Cracked iPhone 6 screen and screen is all white with different colors going down it. What do I do???

    Take it in for repair or exchange. Be prepared to write a pretty big check unless you bought AppleCare+.
    If your iPod Touch, iPhone, or iPad is Broken
    Apple does not fix iDevices. Instead, they exchange yours for a refurbished or new replacement depending upon the age of your device and refurbished inventories. On rare occasions when there are no longer refurbished units for your older model, they may replace it with the next newer model.
    ATTN: Beginning July 2013 Apple Stores are now equipped to do screen repairs/replacements in-house on iPhone 5 and 5C. In some cases while you wait. According to Apple this is the beginning of equipping Apple Stores with the resources needed to do most repairs for iPhones, iPads, and iPod Touches that would not require major replacements. Later in the year the services may be extended as Apple Stores become equipped and staffed with the proper repair expertise. So, if you need a screen repaired or a broken screen replaced or have your stuck Home button fixed, call your local Apple Store to see if they are now doing these in-house.
    You may take your device to an Apple retailer for help or you may call Customer Service and arrange to send your device to Apple:
    Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
    To contact product and tech support: Contacting Apple for support and service - this includes international calling numbers.
    You will find respective repair costs in the appropriate link:
    iPod Service Support and Costs
    iPhone Service Support and Costs
    iPad Service Support and Costs
    There are third-party firms that do repairs on iDevices, and there are places where you can order parts to DIY if you feel up to the task:
    1. iResq or Google for others.
    2. Buy and replace screen yourself: iFixit

  • GFW (Grahical Framework) Bar with different colors

    Hello,
    how can I get a bar with differents colors using GFW? I want to do something like this:
    http://image.mathcaptain.com/cms/images/41/stacked-bargraph.PNG
    Thank you very much in advanced.

    Yes. You'll need custom renderers for the bar items. I've seen some examples out there (I think there's one on the flexexamples blog).

  • Prints coming out with wrong colors

    I am currently running win 7 64 with lightroom 4.3and an Epson Stylus Pro 3880 networked. I also have a HP 2610 as local. When printing to the Epson I get print with a lot of red to the point it looks pink or purple. This is with the color management driver set to custom and color management turned off or vice versa with color controlled by printer. If I print to the HP colors look great. I really need help with this problem. I have tried different paper outputs with no luck. I also have the same problem in CS5. So I would think its something I am missing.
    Ron

    It seems that is a problem that a few people had with the Epson 3880.
    Red or magenta prints indicate double color management, i.e. in Lr and in the printer driver.
    Check your settings carefully. If you let the printer manage colors you have to select "Managed by Printer" in Lr/ Print Module / Print Job / Color Management / Profile.
    If I recall correctly one poster found that an old print preset that was created for a different printer was creating the problem.
    There are lots of threads on this forum regarding problems with the Epson 3880. Do a search by entering "Epson 3880" in the search field where it says "Ask a question".

  • Pantone Colors with CMYK Colors?

    Dear all!
    I am LUCK. I am wondering about Pantone Colors with CMYK Colors. It's that I got 1 Pantone Color from my customer and then I changed it to the equivalent CMYK Color. Will I get different colors when changing from Pantone to CMYK because I will print with CMYK Printing Process? Anyway, I am wondering whether the Pantone color is the fix and specific color or not. I mean when I print the Pantone Color, I will get the same result as I print before. Is it right?
    Please help to explain to me whether Pantone Colors will keep their colors the same and stable or not. Or would you mind telling me what kind of colors that can produce the same color every time I print, especially for the Formal Uses?
    Sorry for being unaware of my knowledge here. Thanks a lot and best wishes to all!
    I am looking forward to hearing from you.
    My best regards,
    LUCK

    Pantone is a company, not a color. Pantone produces spot color inks, process color inks, and color references.
    Understand first: Five color printing ("process plus one") is not uncommon, because six-color presses are not uncommon. When a project is printed on a 6-head press, it does not dramatically affect the costs, because the job can still be printed in one pass. Brochures and other marketing collateral are often printed in 5 inks when a company specifies a spot color as its identity color. When done right, the company's identity specifications also provide a CMYK mix to use in lieu of its spot color(s) when restricted to only CMYK (as in magazine placement ads).
    So I'll assume your customer specified a Pantone spot color, and does not provide a preferred CMYK substitute, and your project is restricted to four color process (CMYK) printing.
    CMYK mixes do not exactly match spot color inks; they can only approximate. How closely they can approximate depends upon which spot color you are dealing with.
    Pantone provides its recommended CMYK values for approximating its spot color inks. That's why Illustrator provides a Pantone solid to process Swatch Library. But such lookups are recommendations; they are not absolute equivalents. There are many many colors in nature (and in spot ink pigment) which simply cannot be matched in CMYK. And any time you try to convert between color models (spot to CMYK, RGB to CMYK, etc.) you encounter ambiguities, because there are multiple algorithms that can be used to generate four values from fewer values.
    I often find Pantone's spot-to-process recommendations to be unsatisfactory, and use my own CMYK approximations instead. This is not necessarily due to any failure or shortcoming of the Pantone libraries, but just differences that exist in specific printing houses and workflows. The printing process is full of variables.
    Will I get different colors when changing from Pantone to CMYK
    Yes, the colors will be different. But whether the difference is noticable depends upon the specific spot ink you are trying to match. It also depends upon the specific use of the color. Fact is, human color perception is very adaptive. Colors that are "mathematically" equivilant according to some colorimetric algorithm are not necessarily perceived as equivilant by human eyes, because much depends upon environment (adjacent colors, etc.)
    You can refer to a printed process color reference against which you can compare a printed spot color swatch book and judge for yourself which CMYK values best approximate the spot color. Or, you  can set up simple test sheet of your own, and have it printed to determine a "best match" in a particular printing environment.
    All the above is just one reason why contract proofs are still important. If your customer is very picky about his spot color, then he needs to understand that converting it to CMYK is merely an approximation, and perfect matching is simply not possible. That's one reason why spot inks exist in the first place. If he is not willing to pay for five-color printing, then he will likely have to settle for a minor compromise.
    JET

  • Anyone deployed multiple Custom LAFS

    Hi,
    Has anyone deployed multiple custom LAFS. We have deployed one laf and this can be seen at www.staffsmoorlands.gov.uk > Do it Online > Abandoned Vehicles. This page has a custom laf on a Create SR page. The custom LAF uses a custom pageLayout.uit renderer. This LAF works perfectly.
    However, we are now deploying another laf for another authority, but find that the second LAF is only used the first time a user logs in. We have about 10 authorities using the same eBusiness suite application. The first time we navigate to the Create SR page, it displays the LAF for the authority. But when we press submit, it uses the first LAF, ie. the LAF belonging to Moorlands.
    Our LAF setup is:
    Name: smdccss-desktop
    Family: smdccss
    Extends: Simple.desktop
    Name: ccdccss-desktop
    Family: ccdcc
    Extends: simple.desktop
    Any help would be much appreciated.
    Thanks
    Mark

    I am still experiencing this problem. Can somebody help on this issue?
    Here is more information on debugging. I got sample socket transport deployed and everything just worked fine. Then I created a second custom transport by making a copy of socket transport directory structure and files. Then I replaced all the socket specific strings with mySocket including src packages and files. See following list.
    src/com.bea.alsb.transports.mySocket
    ApplicationListener.java
    MySocketColocateMessageContext.java
    MySocketInboundMessageContext.java
    MySocketOutboundMessageContext.java
    MySocketTransportProvider.java
    MySocketTransportEndpoint.java
    Also changed ID in MySocketTransportProvider.java to be "mySocket".
    And changed all the schema/resource/META-INF files to reflect the changes.
    ant build/ant stage/ant deploy successfully. Then changed the deploy-order to be 110. Restart server. Try to create a proxy service, mySocket appears in the protocol drop down list. If I select mySocket, it is switched back to http automatically. I couldn't find any error in the log for this. This happens even when mySocket is the only custom transport deployed on the server.
    Did anybody else experience this problem? Please share some hint on this, I don't what I can do to move forward on custom transport development.

  • Customer Statement with opening and closing balances

    Dear Forum,
    The users want to generate the Customer Statement with opening and closing balances like the traditional one. The statement now generated gives the list of all open items as on date, but the users want the statement with opening balances as on the date of the begining of the range specified and the closing balance at the end of the period for which the statement is generated. Is there a way to generate the same from the system.
    Thanks for the help.
    Regards,

    Hi,
    SPRO> Financial Accounting (New) > Accounts Receivable and Accounts Payable > Customer Accounts > Line Items > Correspondence > Make and Check Settings for Correspondence
    You can use the program RFKORD10 with correspondance type SAP06 for your company code
    This program prints account statements and open items lists for customers and vendors in letter form. For account statements, all postings between two key dates, as well as the opening and closing balance, are listed.
    Regards,
    Gaurav

  • Is there a way to create a custom screensaver with pics/slides that display for different amounts of time?

    Is there a way to create a custom screensaver with pics/slides that display for different amounts of time? Or even add a "video slide" into the screensaver?
    My business has 3 TVs displayed in our lobby, each with its own apple TV and they are all linked to the same photo stream. Currently the Atv screensaver displays the photostream pictures of our products for the default 3 seconds. We just added pics/slides that now display messages and useful info for our customers but I want that info to be displayed for a longer period of time than the pictures to give people a chance to read it.
    I tried using flickr and powerpoint as a work around but no luck.  I created a slide in powerpoint with play length of 15 secs and saved it as a wmv file.  I added that file to a "screensaver" set in flickr and pointed the Atv screensaver to that flickr set.  It still displays everything, pics and the wmv file at the default 3 sec.
    I know I can increase the duration of all pics in the screensaver to display for longer but the goal is to have the pics display at 3 secs and the info slides to display at 15 secs.

    Welcome to the Apple Community.
    No that's not possible.
    If you have any suggestions that you think might enhance the Apple TV you can send Apple your feedback here 

  • I have a question about the calendar on the ipad2. I have multiple calendars in different colors. Some of the events are filled in with color. Others are just listed with a colored dot in front of the event. Any ideas why events ar showing up differently?

    I have an ipad2 and my question is about the calendar. I set up multiple calendars with different colors. Some of the events show up in filled color. Others only show with a colored dot in front of the event. I can't figure out why some show up one way and others show up differently? Any thoughts?

    On mine the ones that show on a coloured background are all-day events, the ones with dots and just timed events.

  • Error while adding a custom field with Input help via AET

    Hi All,
    I need to add two custom field under Service orders at Item level in component BT140I_SRVP.
    One field is required to have the input search help f4 and autopopulates the second field
    I am able to add one field(not requiring help) successfully through AET .
    I have created one Zsearch_help in se11 and its successfully running  and Autopopulating seocnd field while I am testing it
    While adding second field through AET,I need to enter following details as -
    field label,search relevant ,serach help etc.
    When I type the name of my 'Zsearch_help' against field search help it gives me following error
    'Search help is not compatible'.
    Secondly,not getting getter and setter methods for the attrributes in BTAdminI.
    Last,please tell me if i create zhelp and activate it,would it automatically appear in the list on AETwhile assiging it to input field?
    Please help me out.Kindly be detailed as I am new to SAP CRM.
    Thanks,
    Shivani

    The question is answered in CRM 7.0 forum:
    Getting error while adding a custom field (with input help) through AET

  • Can't make a workable custom codec with ProRes 422 (HQ)

    I've only just now found that there is a Support Community for Compressor.  Wish I'd known sooner.
    I see my version of Compressor is 3.5.3.
    I've been on a little saga.
    I started out with the challenge of converting some MP4 files from a Blackberry Playbook into ProRes 422 (HQ) for editing in Final Cut. I used Compressor and the task looked fairly straight forward. I used the ProRes setting in the Compressor, converted my files and imported them into Final Cut. Video was fine but I soon found out that the audio needed rendering every time I put a clip into the Timeline. I went on-line to various chat rooms with this problem. Pretty soon a fellow was telling me that the ProRes 422 (HQ) setting in Compressor had "Audio Pass-through" as default and that this was the cause of my problem. Change it, he said, to "Linear PCM".
    It took me a fair while to figure out that the ProRes setting in Compressor did not allow itself to be modified and that I'd have to create a custom preset if I was to make these changes. I set about to do that. I was able to select "QuickTime Movie" and then in "Video/Settings" choose "ProRes 422 (HQ)", in "Audio", "Linear PCM". This did solve the audio problem. Now files imported into Final Cut did not need rendering. But another problem became evident.
    Whereas the ProRes 422 setting that came with Compressor in its summary page listed: "Width" and "Height" as "(100% of source)", the custom ProRes 422 (HQ) setting I'd just created has "Width" and "Height" as "320" and "240". In short the 19:9 aspect ratio of the original footage was lost. What I got both in the conversion and in Final Cut was a squished SD image.
    I've played like heck with Compressor trying to see if there was some place I could get this custom version of ProRes to correspond to the aspect ratio seen in the Audio Pass-through version that came loaded in Compressor. No luck. All very mysterious.
    My next step was to look to create another custom codec that would have the proper 1280 X 720 ratio. Turns out  "HDV 720p 30fps" does, so now I've been converting to that. Looks fine in Final Cut - proper picture and sound.
    I've been playing around a bit more and see now that I can create a custom setting using "Apple Intermediate Codec". I've tried it and it works too.
    So after all this, my question: Should I be using that codec instead? Or does it really matter what codec I use for editing? Is the only real issue what codec I decide to use to output?
    And while I'm at it: Does anybody have ideas why trying to create a custom setting with ProRes 422 (HQ) does not work - for my purposes at least.
    I must admit this converting codecs is pretty new to me. Hopefully with time this experience will get easier and clearer.
    John

    Setting a Compressor ProRes Custom Setting:
    1) Pick Apple ProRes 422...
    2) Drag the PreRes 422 setting to the Bach Window. You can only make a custom setting from the Batch Window...
    3) Select enable for the audio. Click on setting to make sure it is set right. Uncheck Allow Job Segmenting... Make sure Streaming is set to none*....
    4) Select the Geomenty tab... Pick Custom (16:9):
    5) Click Save As and name your custom setting...
    6) You new custom setting will show up in the Custum folder for later use:
    Another thing you can do is make Droplet of this custom setting. Menu... File... Create Droplet... Save the Droplet into a folder somewhere on your computer.
    A Droplet will start the transcoding automatically. Drag the Droplet onto a video icon and let it do it's job.
    * ProRes doesn't need the Fast Start setting. If this is set it will take almost twice as long to do the encoding. Same with Allow Job Segmenting using Qmaster.
    I did the above on the fly and hope everything is clear for you to understand.

Maybe you are looking for

  • Error while loading Crystal report

    Professionals' I have encountered an error while opening a crystal report 2008, I am using VB.NET 2005 with Business One. When I am running the source code it works fine. With ARD I am getting problem "Crystal report can not open". What should be the

  • Not receiving group iMessages/texts

    First off - i know there have been lots of threads similar to this.  I've looked through those and tried the suggestions, but to no avail. I'm still left with the same issue. I've switched back and forth between my iPhone and Android phones for a cou

  • Production Order: warning when Basic finish date is before scheduled finish

    Hello experts, We will set in config OPU3 (scheduling parameters for prod order) Adjust dates = 2 Do not adjust basic dates, ... Essentially this will allow the shop floor controller to change scheduled date ie. production dates without affecting bas

  • LiveType .ipr won't import into FCP - File type not recognized

    LiveType file is greyed out when trying to import into FCP as a Standard File type. If we change Standard File to All Files we get an error stating, "File Error: 1 file recognized, 0 access denied, 1 unknown." The project and media are on an external

  • X-Fi Subwoofer

    It seems a lot of people have had this problem but I see few solutions, so I'll try. I have an X-Fi (drivers dated 6/09), Vista, and 5. speakers. I get subwoofer in games but not in music (Windows Media Player, etc.) I tried downloading the Console a