Why Are Styles Relative to Components and Not Skins?

I am trying to make a skin for a Button that consists of nothing more than an image. I want to make a generic skin that I can reuse and just have a style for the source of the image. The problem, however, is that the [Style] metadata tags exist on the Button component and not on the skin. Thus, since Button does not have a "source" style property defined, I cannot do something like this:
<s:Button skinClass="{ImageButtonSkin}" source="@Embed('/assets/images/gripper.png')" />
Since there is no "source" style for button this results in a compile error. It seems to me like this shouldn't be an issue. Since all of the presentation is inside of the skin, shouldn't the styles be defined on the skin instead of the component? If the reason for not doing this is backwards compatibility related, then it seems like the compiler could just pull from both places.
As it stands, it is very cumbersome to have to create an entire subclass of Skin just to change the source of an image. Alternatively, I could subclass button to have the style property declared, but that seems very inelegant. Thoughts?

Good to know what I am doing is correct. I think the inline "style" attribute you proposed seems the most appealing, if not only for its congruency with xhtml.
Alternatively, since really what styles boil down to are just methods for parameterizing skins, it could be cool if there was something like the following:
<s:Button>
     <s:skin>
          <local:ImageButtonSkin source="@Embed(...);" />
     </s:skin>
</s:Button>
Or maybe have the have the skin style attributes be defined in their own namespace, e.g.:
<s:Button  myskin:source="@Embed(...);" />
That way the compiler wouldn't have to make 2 passes to guess at what skin is applied to the component, it would just have to lookup the skin implementation corresponding to the namespace.
Just randomly brainstorming, thanks for your response.

Similar Messages

  • I have 100's of CDs that I have downloaded to my itunes library and they are in the library playable but they do not show up in the C drive under the iTunes Music folder under users.  Why are they in the libary and not in the itunes music folder. Win 7 OS

    I have 100's of CDs that I have downloaded to my itunes library and they are in the library playable but they do not show up in the C drive under the iTunes Music folder under users.  Why are they in the libary and not in the itunes music folder. Win 7 OS.  When I look in the library under the get info screen it says they are in the folder itunes music, under the c: drive but when I actually go to that folder to look for them they are not there....HELP!

    Hello RumDog,
    I think this article will help you find the media in your library.
    Where are my iTunes files located?
    http://support.apple.com/kb/ht1391
    Discovering and changing the iTunes Media folder location
    Note: You would usually only change the iTunes Media folder location to share music between accounts on the same computer. See this article for specific steps on how to accomplish this. Also, see this article if you want to know how to move your music to a new computer.
    Mac OS X: Click the iTunes menu and choose Preferences.
    Windows: Click the Edit menu and choose Preferences.
    Click the Advanced pane. iTunes displays the location of your iTunes Media folder.
    You can then:
    Note where your media folder is, such as for backing up your media.
    Use the Reset button to reset it's location to the default (which is the iTunes folder).
    Click the Change button to select a folder for a new location. Once you change this location:
    If you make a new or alternate iTunes library, the new location will be used by that library.
    Existing files will not be moved unless you choose File > Library > Organize library and choose the option to "Consolidate files."
    From: Where are my iTunes files located?
              http://support.apple.com/kb/ht1391
    Cheers,
    Sterling

  • Why are my contacts showing numbers and not names

    Why are my contacts showing numbers and not names?

    When you added your contact details in the contact app did you fill in the fields correctly.  For example in contacts where it says "first" did you enter a number instead of a name?

  • Why are messages in my outbox and not being sent on my iphone 5.  I have had the 5 for over a year and never had this problem before.

    why are messages in my outbox and not being sent on my iphone 5.  I have had the 5 for over a year and never had this problem before.

    Text messages or emails?

  • Why are my slides hanging up, and not moving forward?

    My latest project in Captivate 4 doesn’t need graded quizzes, so when my quiz slides hung up after publishing, I deleted them and used a regular slide with roll overs to give feedback on “review” question. But the slides taking the place of deleted quiz slides are now hanging up too! It just doesn’t make sense and must be fixed before the project can continue.
    The buttons have the usual programming, like, rest of slide and “continue.” Anything else I can do? I’ve also had issues with the “click anywhere to continue” to move a quiz slide along. It will only move (that is, if it isn’t hanging up) inside the feedback box.
    And I have removed and re-loaded and added the patch to Captivate three times already.  I always do it when the program takes a long  time to close, and then, a long time to load and that usually works. And it does this on two different computers of mine. As far as I know, it's not a memory issue because it is only on these slides. But this hanging up is so weird, because if I click the Back button, sometimes it moves forward, and if that doesn't work, then clicking Back and Next moves it forward.
    So the main question is, why won't the Next button move the project to the next slide?
    Secondary question: why can't I "click anywhere to continue" because only clicking inside the feedback box works? (And because that was happening, I deleted the file and now the replacement blank or copied slide hangs up too.)
    Thanking you in advance.
    Phyllis K. Day

    I am having this same problem.  When I publish my slides to a web server the quiz exhibits the behavior where you have to actually click inside the Feedback caption to move to next action.  It is supposed to work by clicking anywhere on the slide. 
    Wondering if you ever found out what was causing this?? 
    Looks like I cannot move forward on this project except by not using Captivate.  Or somehow code up my own quiz questions.  ugh.

  • Why are my photoshop files distorted and not the tifs?

    Hi,
    I've been importing tifs and photoshop files into my FCE project, and here's my problem. When I view the .psd file in my canvas viewer the still is squeezed and does not fill the entire frame with white background above and below the still. I then import the same file but resaved as a tif and it appears in the canvas frame in the correct aspect ratio. What is going on? (The image properties are 1920x1080 aspect ratio: square) This happens with all the .psd files that are imported into my FCE project. All imported tifs appear correctly.
    Other info: I have started with a baseline photoshop template that is 1920x1080, aspect ratio: square. I saved the images either as a .psd file with one layer or tif with one layer. The reason for the .psd file is that I need to have some areas of transparency in my FCE project (I have overlays). Which leads to another question: If I need transparency within the still in FCE, can I save the file as a tif with "save transparency" box ticked on?
    Thanks for any info!

    when saving as a png should interlaced be set to none?
    Also regarding the tif images...I had been saving them, as a copy and under tiff options:
    image compression: none
    pixel order: interleaved
    layer compression: discard layers and save a copy
    I assumed that this tiff file would be one layer. Am I incorrect?
    And I did a test save with "save transparency" ticked on and imported the image into FCE. It appears that the transparency is there when I view the still in the canvas window. Can I do it this way? Are there disadvantages/advantages to using png files rather than tiffs?
    Thanks!

  • Why are my recent emojis clearing and not saving?

    my recent emojis do not save after using them, instead they clear. I tried resetting my keyboard and turning my emoji keyboard off then on and it still happens. Does anyone know what I can do?

    When you added your contact details in the contact app did you fill in the fields correctly.  For example in contacts where it says "first" did you enter a number instead of a name?

  • TS3991 why are 2 of my Numbers documents not loading from icloud They appear in faded grey and I can't open them ? How do I recover them ?

    why are 2 of my Numbers documents not loading from icloud They appear in faded grey and I can't open them ? How do I recover them ?

    You may have to try deleting all the music from your phone (by going to Settings>General>Usage>Music, swipping All Music and tapping Delete), then sync it all back on with iTunes in order to fix this.

  • WHY FREE ITUNES PRODUCTS ARE AVAILABLE ONLY FOR USA AND NOT FOR OTHER USERS OUTSIDE USA

    I am so impressed wit the welcome page saying "Join the conversation. Share tips and solutions with fellow Apple product users from all around the world."
    Apple mentioned for their products users around the world but many of their free itunes products are available only for USA and not for the users from the other side of the globe?
    Is this Apple a fair and customer oriented company or full of bias and Only money oriented company.
    If apple could not make thier other FREE stuffs available outside US territory then better for thsi company to just sell their products in USA. its just so disgusting...  If we need a certain apps (FREE APPS) available only for US based users.
    If you think US users and other country users are paying the same prices for their iPad 3G/4G WIFI 64GB and iPhone 3G/4G 64 GB like hat I did having the 2 gadgets altogether but my investment ends to disgusting as the apple company cound not treat people equal then.....  I want to return all this **** stuffs

    iTunes for Different Countries
    iTunes Store: Which types of items can I buy in my country?

  • What are the Relations between Journalizing and IKM?

    What is the best method to use in the following scenario:
    I have about 20 source tables with large amount of data.
    I need to create interfaces that join the source tables into target tables.
    The source tables are inserted every few secondes with about hundreds to thousands rows.
    There can be a gap of few seconds between the insert of different tables that sould be joined.
    The source and target tables are on the same Oracle instance and schema.
    I want to understand the role of: 'Journalizing CDC' and 'IKM - Incremental Update' and
    how can i use it in my scenario?
    In general What are the relations between 'Journalizing' and 'IKM'?
    Should i use both of them? Or maybe it is better to deelte and insert to the target tables?
    I want to understand what is the role of 'Journalizing CDC'?
    Can 'IKM - Incremental Update' work without 'Journalizing'?
    Does 'Journalizing' need to have PK on the tables?
    What should i do if i can't put PK (there can be multiple identical rows)?
    Thanks in advance Yael

    Hi Yael,
    I will try and answer as many of your points as I can in one post :-)
    Journalizing is way of tracking only changed data in your source system, if your source tables had a date_modified you could always use this as a filter when scanning for changes rather than CDC, Log based CDC (Asynchronous in ODI, Logminer/Streams or Goldengate for example) removes the overhead of of placing a trigger on the source table to track changes but be aware that it doesnt fully remove the need to scan the source tables, in answer to you question about Primary keys, Oracle CDC with ODI will create an unconditional log group on the columns that you have defined in ODI as your PK, the PK columns are tracked by the database and presented in a Journal table (J$<source_table_name>) this Journal table is joined back to source table via a journalizing view (JV$<source_table_name>) to get the rest of the row (ie none PK columns) - So be aware that when ODI comes around to get all data in the Journalizing view (ie Inserts, Updates and Deletes) the source database performs a join back to the source table. You can negate this by specifying ALL source table columns in your PK in ODI - This forces all columns into the unconditional log group, the journal table etc. - You will need to tweak the JKM to then change the syntax sent to the database when starting the journal - I have done this in the past, using a flexfield in the datastore to toggle 'Full Column' / 'Primary Key Cols' to go into the JKM set up (there are a few Ebusiness suite tables with no primary key so we had to do this) - The only problem with this approach is that with no PK , you need to make sure you only get the 'last' update and in the right order to apply to your target tables, without so , you might process the update before the insert for example, and be out of sync.
    So JKM's provide a mechanism for 'Change data only' to be provided to ODI, if you want to handle deletes in your source table CDC is usefull (otherwise you dont capture the delete with a normal LKM / IKM set up)
    IKM Incremental update can be used with or without JKM's, its for integrating data into your target table, typically it will do a NOT EXISTS or a Minus when loading the integration table (I$<target_table_name>) to ensure you only get 'Changed' rows on the load into the target.
    user604062 wrote:
    I want to understand the role of: 'Journalizing CDC' and 'IKM - Incremental Update' and
    how can i use it in my scenario?Hopefully I have explained it above, its the type of thing you really need to play around with, and throroughly review the operator logs to see what is actually going on (I think this is a very good guide to setting it up : http://soainfrastructure.blogspot.ie/2009/02/setting-up-oracle-data-integrator-odi.html)
    In general What are the relations between 'Journalizing' and 'IKM'?JKM simply presents (only) changed data to ODI, it removes the need for you to decide 'how' to get the updates and removes the need for costly scans on the source table (full source to target table comparisons, scanning for updates based on last update date etc)
    Should i use both of them? Or maybe it is better to deelte and insert to the target tables?Delete and insert into target is fine , but ask yourself how do you identify which rows to process, inserts and updates are generally OK , to spot a delete you need to compare the table in full, target table minus source table = deleted rows , do you want to copy the whole source table every time to perform this ? Are they in the same database ?
    I want to understand what is the role of 'Journalizing CDC'?Its the ODI mechanism for configuring, starting, stopping the change data capture process in the source systems , there are different KM's for seperate technologies and a few to choose for Oracle (Triggers (Synchronous), Streams / Logminer (Asynchronous), Goldengate etc)
    Can 'IKM - Incremental Update' work without 'Journalizing'?Yes of course, Without CDC your process would look something like :
    Source target ----< LKM >---- Collection table (C$) ----<IKM>---- Integration table (I$) -----< IKM >---- Target table
    With CDC your process looks like :
    Source Journal (J$ table with JV$ view) ----< LKM >---- Collection table (C$) ----<IKM>---- Integration table (I$) -----< IKM >---- Target table
    as you can see its the same process after the source table (there is an option in the interface to enable the J$ source , the IKM step changes with CDC as you can use 'Synchronise Journal Deletes'
    Does 'Journalizing' need to have PK on the tables?Yes - at least a logical PK in the datastore, see my reply at the top for reasons why (Log Groups, joining back the J$ table to the source table etc)
    What should i do if i can't put PK (there can be multiple identical rows)? Either talk to the source system people about adding one, or be prepared to change the JKM (and maybe LKM, IKM's) , you can try putting all columns in the PK in ODI. Ask yourself this , if you have 10 identical rows in your source and target tables, and one row gets updated - how can you identify which row in the target table to update ?
    >
    Thanks in advance YaelA lot to take in, as I advised I would reccomend you get a little test area set up and also read the Oracle database documentation on CDC as it covers a lot of the theory that ODI is simply implementing.
    Hope this helps!
    Alastair

  • Why are some of my group contacts not transferring from my computer

    Why are some of my group contacts not transferring from my computer

    Hey, I see I'm having the same problem lately.  I keep entering new contacts to my Apple desktop, and ever since adopting Lion the new contacts refuse to transfer to my mobile devices!  (no matter what I try!)...so much for having my contacts always updated with me!

  • Sp L records are coming to the PSA and not updating in the data target

    Special Ledger records are coming to the PSA and not updating in the data target in the month end and the info package is failing - because of that we are doing manual updating from PSA to the data target -
    Can so one can tell the reasons why this is happening? And give the solutions to it?

    Hi Sankar,
    If your Infopackage uses Only PSA and Update subsequently in Data Target on the Processing tab, then you will need to add a process for Read PSA and Update Data Target in your process chain, after the Infopackage load process. Then it will take data from the PSA and load to the data target.
    Hope this helps...

  • Why are icons in mail tool bar not in color

    why are icons in mail tool bar not in color and iphoto also

    iVmichael wrote:
    Monochromatic, Orwellian Dullness everywhere, totally hate the look it's a step backwards not forwards. It's absolute b****cks to say this is being 'more inclusive' when it turns so many people OFF!
    Have you done a sampling of all users, or only those users that don't like it? While I don't mind it, I don't think I even noticed it at first until someone pointed it out.
    I note that if you get Info on an item the icon is still colour so this is some OS level (we know best) overaly that's turning everything bland and boring, it would be nice if Apple let the user actually chose this rather than force it upon them ... just like Microsoft I'm sad to say.
    Microsoft? The '90s are over. But regardless of what decade you are living in, Apple has never been too big on end-user customization of the operating system. Apple has always discouraged the use of "themes" whereas Microsoft will allow people to do pretty much whatever they want.
    The file system icons are still the same as they have always been. The new monochrome icons are clearly a design trend more than any change to the underlying operating system. If you turn off the expanded view in any file save dialog (other than in Safari), you can still see the old, glorious, multicoloured icons. If you really wanted to, I'm sure you could change the system-level images and make Finder and Mail look just like they used to.

  • Why do i get 2 curves and not just 1 when i create a diagram from a row of data in a table ?

    Why do I get 2 curves and not just i when I create a diagram from a row af data in a table ?

    Erik,
    Thank you for giving me the points.  Generally you wait to award points until your problem is solved.  It is totally your at your descretion.
    OK.
    This is still not clear.  To post a screenshot get the "stuff" you want to show in view on your screen, then type the key combination <Command>+<Shift>+3.  The cursor will change to a crosshair.  Click and hold on the top-left corner, then drag to enclose what you want to show (to the bottom-right corner), then release.  The screenshot will appear on your desktop and will be named something like "".
    Now click the camera icon in the tool bar for this forum:
    , click the text box to allow you to navigate to, and select your screenshot.
    Here is what you sent me:
    The graph does not seem to be associated with the table of data you are showing.  Generally when you highlight a graph the corresponding table will highlight and show the source of each of the series in the graph (dark and light blue).
    This is what I would expect to see when highlighting a graph:
    Right now I think there is ANOTHER table arround that is the source for the graph and the table you show is "just another table".  You can move your data into the table the graph refers to by copy and paste, or simply typing the values.  You can change how many series there are by grabbing the little circle at the bottom right of the highlighted cells (when you have the graph highlighted) and dragging as shown:
    The Numbers Users' Guide is a great resource you should utilize and can be found here:
    http://support.apple.com/manuals#macosandsoftware
    The chapter on graphing (or charting) is 7 and starts on page 134.

  • Why IPC uses CRM as database and not R/3 ?

    Hi ,
    can any one help me with an answer for the following question :
    <b>Why IPC uses CRM as database and not R/3 ?</b>
    Points will be rewarded for helpful answer
    thanks
    ritu

    Hi
    IPC have Sales Pricing Engine, Pricing Configuration engine and TTE which helps to maintain the similar R3 pricing settings. As you are aware pricing in R3 is determined by Sales area, Cupp, DPP, so IPC is capable of determining the Pricing using same R3 standard procedure. T
    This is not available in CRM, so CRM needs IPC to undertake the determine pricing/ calculate the pricing of the products.
    Regards
    Nagarj

Maybe you are looking for