Theme icon images in GridView

Not sure if this is something that I've read about already somewhere, but I've been spinning my wheels a bit trying to come up with a better solution.
In most of my GridViews, I have already modified them a fair amount (added extra data by looping through the gridview rows in the OnPreRender) so while I was there, I assigned the column image URLs inside the code there using the NPBasePage.ThemesPath call. 
I've come to the Saved Lists page and I'd be okay with just modifying it to have my theme path's add/remove images, but seems there must be a better way than looping through the gridview and changing it there.  Now that I think about it though, it seems to be doing some processing regardless of what you assign to the ImageUrl in the item template which is probably why I had ended up doing it inside that loop to begin with. 
Is there a better way of doing this?
Thanks.

I'm not sure if I fully understand what you're trying to do .. but instead of your code looping over the gridview I normally add my control in the ItemTemplate itself and it will get called for each row in the grid. The event you decide to run your code in is still up to you.
Have you tried just naming the icons with the same name in your theme folder? WebTools supports a dynamic image lookup so for example if there is an image "add.gif" that is currently in the assets/common/buttons folder, if you create your own image called add.gif and place it in your theme folder, WebTools should use this one automatically. This works in some places .. but I'm not sure if it is missing from some pages.

Similar Messages

  • Mobile Theme and Icon Image

    Dears,
    i use apex 4.2 , and i build mobile application , how can i change theme and use icon image ?
    like this example
    http://apex.oracle.com/pls/apex/f?p=13716:101
    regards,
    Ahmed

    It is not currently possible to have multiple cell editors within one column of a table. However this is a feature that SAP is developing for NetWeaver 7.02. 
    The workaround today would be to generated some extra "dummy" columns to hold the icon/images.

  • "theme" icon

    My friend updated his n95-1's software to v20... And i notice the theme icon in the main menu doesn't exist anymore. Is it normal for v20...?
    I know it's not much of a problem, just curious.

    I'm not sure if I fully understand what you're trying to do .. but instead of your code looping over the gridview I normally add my control in the ItemTemplate itself and it will get called for each row in the grid. The event you decide to run your code in is still up to you.
    Have you tried just naming the icons with the same name in your theme folder? WebTools supports a dynamic image lookup so for example if there is an image "add.gif" that is currently in the assets/common/buttons folder, if you create your own image called add.gif and place it in your theme folder, WebTools should use this one automatically. This works in some places .. but I'm not sure if it is missing from some pages.

  • How Do I get icons image directory to work in a JAR file?

    Yes, I must admit after going through the tutorial and other stuff I am stiil stumped
    I have an application that uses the jlfgr icons for the toolbar, and it works fine as long as i actually run it from the directory that it is in.
    I would like to put in into a jAr file, and be able to execute it from other places.
    I have a Directory named PhoneBook
    in that are the classes I use
    AddressBook - the main class
    PersonEntry - The 'data class'
    and various other things like FileFilters.....
    inside that directory there are two more:
    images - contains all the icon images
    Data - where the default 'database' entries are stored.
    I use code like this:
         private void fillToolBar( JToolBar bar )
              Dummy = new JButton(new ImageIcon("images/New16.gif"));
              Dummy.setActionCommand("New");
              Dummy.addActionListener(this);
              Dummy.setToolTipText("New");
              bar.add( Dummy );
              // etc etc
    to get all the icons into the toolbar
    I have made a Jar file that has all the classes and all the directorys with the icons in it
    and so the program runs, but does not get the icons for the toolbar, I just get a whole load of 'dud' buttons.....
    AS this is the first time i've ever got the GUI to look right rather than just the code functioning properly
    I'd like to get the whole thing in a working Jar file
    So Could someone show me Step By Step, How I get my classes and images into a Jar file
    so that i can from a different directory go
    java - jar Phone.jar
    and have the GUI come up with all the images, assuming I'm totally thickheaded when it comes to Jar files.?
    I also can't get the images to show up if I merely run the 'program' from another directory than the one it is compiled in
    I can get the program to run, just not access the images with something like
    java -cp blah/blah/blah AddressBook
    {the main class is AddressBook }
    the data directory can be anywhere as I use a JFileChooser to allow the user to open and save desired files.
    I really would appreciate some clear workable help. {though I'm running out of Duke Dollars...}

    What you need is a correct path to the directory
    inside of the jar. This can be accomplished by adding
    a line to your main program like this:
    URL
    url=myProgram.class.getResource("images/New16.gif");
    Dummy = new JButton(new ImageIcon(URL));
    where myProgram.class is the name of the class
    file that contain the main method.
    Hope this helps....
    ;o)
    PS: I don't want your dukes...I got them coming out of
    my ears!
    O.K, that works thank you.
    I put something like:
    for all the 'buttons' in the toolbar
    URL url = null;
    Class ThisClass = this.getClass();
    url=ThisClass.getResource("images/New16.gif");
    Dummy = new JButton(new ImageIcon(url));
    Dummy.setActionCommand("New");
    Dummy.addActionListener(this);
    Dummy.setToolTipText("New Database");
    bar.add( Dummy );
    etc for all the rest of the 'buttons'
    After Reading the API docs on URL's etc I'm still not sure as to why it works, but it does....
    I am able now to place the class files in a jar along with the images and it all works fine
    although now I don't quite follow all my code....................
    I assume that
    url=ThisClass.getResource("images/New16.gif");
    returns some sort of 'relative url ' ???
    Thanks for the help though.

  • Firefox 21 is not showing theme preview images

    In Firefox 21 for Mac OS, there is no longer any preview image, which is usually a little screenshot of the left end of the toolbar, shown for a theme when you click the "More" link to get more information about the theme. The only image there now is the theme icon. Where did that preview go and why is it gone? The preview images are still in the .jar files in all the themes I have, so they are still available.

    Try to delete the addons.sqlite file in the Firefox profile folder.
    You can use this button to go to the Firefox profile folder:
    *Help > Troubleshooting Information > Profile Directory: Show Folder
    It is also possible that there is a problem with the file(s) that store the extensions registry.
    Delete the extensions.* files (e.g. extensions.sqlite, extensions.ini) and compatibility.ini in the Firefox profile folder to reset the extensions registry.
    *https://support.mozilla.org/kb/Profiles
    New files will be created when required.
    See "Corrupt extension files":
    *http://kb.mozillazine.org/Unable_to_install_themes_or_extensions
    *https://support.mozilla.org/kb/Unable+to+install+add-ons
    If you see disabled, not compatible, extensions in "Tools > Add-ons > Extensions" then click the Tools button at the left end side of the Search Bar ("Find Updates" button in older Firefox versions) to check if there is a compatibility update available.

  • Custom Icon Images for Folders in KM

    Hello Everyody,
                   I have to display folders such as Pesonal Documents, Public documents, Recently used, Favourites etc which are there in the entry point repository in KM. Right now all these folders are being displayed with the default icon image specified. I want to replace these default images with custom images but couldnt see any property where i can change the image path for these folders. I checked the details of all these folders and even went through the properties but there it shows only the default image name speciefied for that folder and no active settings where i can change the image path for custom icon. Kindly suggest how to implement custom image for KM folder icons.
    Thanking you all in advance,
    Regards,
    Sarabjeet.

    Hi,
    If I understood, you have a KM navigation iview, where some folders apperar. You want to change the icon for each of them differently.
    For this do the following:
    First have a look into the KM.navigation iview and get the layout set property. Go to System config->KM->Content management->User interface->Settings->LayoutSet and find the layout set you are using. Go to appropriate resource renderer and check the "<b>Icon setting</b>". Change it to: <b>iconreplace</b>.
    Now get the KM details for your folders and change the <b>IconSource</b> property to your image Example:
    /etc/public/mimes/images/add.gif
    Voila...the icons for these folders are changed!
    Hope this is your case.
    Romano

  • Icon Images

    The icon images have changed on my computer screen and task bar, how do I change them back to the original ?

    Hello raj890,
    I see that you are having a problem with the icon images on your computer. I would like to help with this issue but I need some information.
    Can you provide the model and product number of the computer? Here is a link showing how to find that information.
    What operating system are you using?
    Have all the icons changed on the screen?
    Do they open the correct program?
    How long have your been having the problem?
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • Icon image formats question

    "Icon image formats used for iconic buttons can be .ico files at design time, but must be GIF or JPEG format at runtime. There is no other restriction of this related to deployment."
    Read the above statement in an STS test paper and was wondering this is true. How does it work is it that the .ico are automatically converted at runtime or do the other extensions need to exist at runtime.
    Incidentially does anyone know if there is a good source for forms icon files hiding out on Oracle.com
    Thanks

    WebForms usually do not show the icons at design time, but with little configuration we can display them, and since webforms will only show only GIF and PNG files (no JPEG) the design time icons are a bit fuzzy, so you can use .ico files for design time and .gif or .png for runtime.
    You must have two sets of icons if you want to view the icons at design time.
    You might also want to read [url http://www.oracle.com/technology/products/forms/pdf/webicons.pdf]Deploying icons in WebForms
    Tony

  • Change desktop icon image

    Can the graphic used in a desktop icon be changed? Forgive me if this the wrong forum. Are other good general Apple forums available?

    Hi!
    Are you attempting to use the icon from one file to paste to another file? If so, try this:
    Highlight the file with the icon you want to use and key in cmd+i to bring up Get Info. Click on the icon at the top of the Get Info wondow and key in cmd+c to copy it. Highlight the file that you want to paste the icon to, do cmd+i, highlight the icon in the get Info window, then key in cmd+v to paste it to this file. The icon will be the proper size to begin with, since it was a file icon to begin with. (The way shown in the preceding post should also work, but insure that you highlight and copy the graphic icon image first, before trying to paste it into the other file.)
    If you want to use a custom graphic that is not an icon, I found a simple way to convert file preview images to icons using Pic2Icon. I keep it in the Dock and drop a graphics file (or folder's worth of graphic files) on it and it immediately changes the generic icons to icons with the graphics on them. This freeware utility was developed by SugarCube Software, but is no longer available on the web, even though Googling will provide plenty of links. However, they were nice enough not to originally restrict it's redistribution and I have a copy on my iDisk if you want it. The link is posted below and the archived file will immediately begin downloading if you click on it. (I'll leave the link active for a few days or so before disabling it.)
    http://homepage.mac.com/majordadusma/filechute/pic2icon.dmg.sit
    You can also create such preview icons via Photoshop, if you have it...
    Gary
    1GHz DP G4 Quicksilver 2002, 400MHz B&W rev.2 G3, Mac SE30   Mac OS X (10.4.5)   5G iPod, Epson 2200 & R300 & LW Select 360 Printers, Epson 3200 Scanner

  • Can I seperate the icon images

    In the JNLP file you can specify 3 icon images for 3 different sizes, 64 * 64, 32 * 32 and 16 * 16 pixels.
    <icon href="iconStartMenuSize.jpeg" width=16 height=16/>
    <icon href="iconDesktopSize.jpeg" width=32 height=32/>
    <icon href="iconSplashScreenSize.jpeg" width=64 height=64/>
    I know that if you just specify 1, Web Start automatically resizes it to make the other 2. I've heard that in earlier versions of Webstart it only ever uses the first icon you give it, even if you give it 3. Does anyone know if, in version 1.4.2, it will actually use the 3 different images if you supply them?
    If nobody knows I'll test it and post the result. This was posted before, I am running into the same problem right now.

    can somebody give an answer to this question? I want to put the correct size icon on the desktop, download splash and shortcut.
    Thank you

  • Apex Default icons/images file names

    Hi ,
    How can I get the list of icons & images in Apex (like "/i/go.gif" )
    How will I get the other files names & Path like Lock / Unlock / Delete , so that I can refer them like :
    < img src="/i/go.gif" >
    Regards,
    Benz

    Hi,
    One way, maybe not best but works:
    Download Apex installation zip.
    Check folder apex/images from that.
    If image is in zip images folder then use it like
    /i/imagename.gif
    or if image is some sub folder then
    /i/subfoldername/imagename.gif
    Br, Jari

  • Icons(images in Combobox) read from folder in project

    Hi everyone,
    I'm trying to populate these icons (images) from the img folder under my project. Most of these icons are in .png format and I want to populate them into the ComboBox which i have. On top of that, when the user selects one of the icons from the ComboBox, I need to show the icon on the ComboBox which now I'm only able to show the label that is being tagged to it. I saw the IconComboBox.as example but I can't apply them to my current design.
    Is there a way to achieve it?
    My codes for the CheckBoxes and ComboBoxes:
    <mx:Panel id="layerPanel" backgroundColor="#ffffff" height="220" width="220"
      title="Layer Control Manager" showEffect="WipeRight" hideEffect="WipeLeft"
      horizontalScrollPolicy="off" verticalScrollPolicy="off">
      <mx:VBox height="140" width="400" horizontalScrollPolicy="off">
       <mx:List id="layerList" itemClick="layerList_changeHandler(event)"
       alternatingItemColors="[#EEEEEE, white]" selectable="true"
       dataProvider="{lstDataProvider}" labelField="name" height="190" verticalScrollPolicy="off">
       <mx:itemRenderer>
        <mx:Component>
         <mx:HBox>
          <mx:CheckBox id="chkBox" change="layerCheckBox_onChange(event);">
          <mx:Script>
          <![CDATA[
          import mx.controls.Alert;
          import mx.events.FlexEvent;
          override public function set data(value:Object):void
           super.data = value;
           if(value != null)
            chkBox.selected = value.isSelected;
            if(!chkBox.selected)
             comboBox.selectedIndex = -1;
             comboBox.prompt = "Please Select";        
             comboBox.enabled = false;
          private function layerCheckBox_onChange(evt:Event):void
           data.isSelected = !data.isSelected;
           if(data.isSelected)
            comboBox.enabled = true;
           else
            comboBox.enabled = false;
           if(data.isSelected && comboBox.selectedIndex > -1)
            this.dispatchEvent(new Event("addImageToApplication", true));
          ]]>
          </mx:Script>
          </mx:CheckBox>
          <mx:Label text="{data.label}" />
          <mx:ComboBox id="comboBox" enabled="false" width="100%" change="onComboBoxChange(event)" dataProvider="{outerDocument.comboBoxArray}" prompt="Please Select">
           <mx:Script>
            <![CDATA[
             import mx.controls.ComboBox;
             private function onComboBoxChange(evt:Event):void
              var myCombo:ComboBox = evt.currentTarget as ComboBox;
              //if(data.label == myCombo.selectedItem.label)
               outerDocument.comboImageUrl = myCombo.selectedItem.src;
               if(data.isSelected)
                this.dispatchEvent(new Event("addImageToApplication", true));
            ]]>
            </mx:Script>
           <mx:itemRenderer>
            <mx:Component>
             <mx:HBox horizontalScrollPolicy="off">
              <mx:Image source="{data.src}" width="20" height="20" maintainAspectRatio="false" />
              <mx:Label text="{data.label}" />
             </mx:HBox>
            </mx:Component>
           </mx:itemRenderer>
          </mx:ComboBox>
         </mx:HBox>
        </mx:Component>
       </mx:itemRenderer>
       </mx:List>
      </mx:VBox>
    <mx:VBox top="165" left="30">
      <mx:Button label="Reset List" width="160" id="resetBut" click="resetList()"/>
    </mx:VBox>
    </mx:Panel>

    http://blogs.adobe.com/aharui/2007/04/icons_in_combobox.html
    This didn't work for you?
    - Jason

  • JLabel (icon Image) without picture?

    I am make applet containing JLabel (Icon Image). When I run this applet from server and used image-file "middle.gif" (from tutorial) - there was all Ok. After this I changed color of image on MS Photo Editor and now I get JLabel without icon and there is no errors. I don't understand what happens? Anybody know what is it?

    Of course. In directory "Images" I have follow files:
    green.gif
    middle.gif
    red.gif
    Files green.gif and red.gif are middle.gif but pictures on them have respective colors. This colors I get using MS Photo Editor.
    import javax.swing.*;
    import java.awt.*;
    import java.net.*;
    public class tLabImage extends JApplet{
    public void init () {
    JFrame f=new JFrame();
    URL url=null;
    try {
    // url=new URL("http://10.1.1.6/Images/middle-1.gif");
    url=new URL("http://10.1.1.6/Images/green.gif");
    catch (MalformedURLException e) {System.out.println (e.getMessage());}
    Image image=getImage(url);
    ImageIcon icon=new ImageIcon(image);
    JLabel l=new JLabel ("text", icon, JLabel.LEFT);
    f.setLocation(200,300);
    f.getContentPane().setLayout(new GridLayout(0,2));
    f.getContentPane().add(l);
    f.pack();
    f.setVisible(true);
    When I run this programm I get JLabel without icon (only text). Why? Who can answer?

  • How to make an icon image using Photoshop

    I found out how to do this recently so I decided that I wanted to make a tut for those who don't know how to make an icon image. This icon image is for the libraries tab on your computer. Under the libararies tab there is Music, Pictures, Documents, and Photos
    First you will need the ICO (Icon image format) Format extension for photoshop which can be downloaded here:
    http://www.telegraphics.com.au/svn/icoformat/trunk/dist/README.html
    The download link and tutorial on how to install it is all in the link above.
    Once you have that all set you can now launch photoshop to create your icon image. Once you have launched it, create a new document with the size as in the image below.
    [IMG]http://i1297.photobucket.com/albums/ag25/dusty951512/256x256_zpsbf3dcf8e.png~original[/IMG]
    Create the image you want. I used a simple one by using the custom shape tool by pressing "U" on your keyboard and with the
    basic blending options.
    [IMG]http://i1297.photobucket.com/albums/ag25/dusty951512/IconImage_zpsd788c709.png~original[/IMG]
    The reason why the image is pixelated is because it is an icon image. Since the image is only 256x256 pixels when you zoom in on it that will get you the pixely result. The reason why I zoomed  in is so you can see it. But don't worry this is no the end result. Just continue reading and you will see.
    So once you have created the icon go ahead and press
    file>save as>(under format choose the ICO)>and choose the name that you want to name it. And save it in your C: drive. You will see why to save it in your C: drive in a sec.
    [IMG]http://i1297.photobucket.com/albums/ag25/dusty951512/SampleicoPic_zpsd252bfba.png~original[/IMG]
    So now that you have created the icon and saved it now you can create the new library.
    [IMG]http://i1297.photobucket.com/albums/ag25/dusty951512/NewLibrary_zps8ca703b2.png~original[/IMG]
    Name the library whatever you want I named it "Sample" for tutorial purposes. Notice how it gives you a default boring icon image for your library.
    [IMG]http://i1297.photobucket.com/albums/ag25/dusty951512/Sample1_zpsb5472840.png~original[/IMG]
    So now once you have created and named your library now it is time to get the icon image into place.
    Go to computer/c: Drive/users/YOU/ And now once you have reached this area you will need to access a hidden folder named "appdata" to do so press "Alt" then a menu bar will show. Click
    tools>folder options>and view. Find the option to view hidden folders then press apply then ok. Now we shall continue so AppData>Roaming>Microsoft>Windows>Libraries
    Now you should see all the libraries including the one you just created.
    [IMG]http://i1297.photobucket.com/albums/ag25/dusty951512/showhiddenfolder_zpsad4a3c94.png~orig inal[/IMG]
    [IMG]http://i1297.photobucket.com/albums/ag25/dusty951512/Libraries_zpsf6243bc0.png~original[/IMG]
    Once you have reached your destination then open a new text document with notepad and drag the library you just created in notepad. The result should look like this:
    [IMG]http://i1297.photobucket.com/albums/ag25/dusty951512/Notepad_zps251a86f0.png~original[/IMG]
    once you have reached this point click at the end of the second to last line down then press enter and enter in this information
    <iconReference>c:\"NAME OF ICO FILE YOU CREATED IN PS".ico</iconReference>
    Example:
    [IMG]http://i1297.photobucket.com/albums/ag25/dusty951512/iconreference_zps1c1a3eca.png~origina l[/IMG]
    Once you have entered that information go to file>save and the icon image should appear on the library you created.
    [IMG]http://i1297.photobucket.com/albums/ag25/dusty951512/Finished_zps267f893a.png~original[/IMG]
    Now you are officially finished. Go and spread the news and joy. Bye for now
    -Dusty951512

    It is Windows only because all those screen shots are exclusively Windows, the file structure and paths do not resemble those of the Mac in the least.  As a Mac user, there's nothing I could take from your tutorial.  Sorry, 
    No drives named with letters like C: on the Mac, for instance.  No backward slashes either, ever.  No such paths either.  No "Notepad" on the Mac, we use TextEdit; but such a text editor is not remotely needed on the Mac to make and/or edit icons.  Etc.
    Those folders are not even called "Libraries" on the Mac…  Nothing resembling your tutorial at all.
    The icons in the Finder's Sidebar are not customizable at all in recent version of OS X.
    =  =  =
    You can edit any post of yours only until someone replies to it.  At this time your post is not editable by you any longer.

  • I see a distortion icon image in Windows 8.1 but not in windows 8

    I saw distorted icon image in windows 8.1 but not in Windows 8. This bug doesn't affect Windows 8.1 functionality but causes some icons to look ugly, distorted, fuzzy.This bug can be seen in "Delete confirmation dialog box". The
    folder icon in delete confirmation dialog box will look distorted and ugly. Black edges will appear around the icon and the icon will not look correct.The same thing also happens in "Send To" menu.
    Also heard that this bug is not related to graphics card driver or any other thing.
    Hope windows will take necessary actions to solve this bug as soon as possible so that users like us can be satisfied with the new windows 8.1.

    Try running SFC scan. Refer the following link for more information:
    http://support.microsoft.com/kb/929833/en-us
    Balaji Kundalam

Maybe you are looking for