Easy points: Add a new style property by using < fx:Metadata > in mxml custom comp

"Hey, I think it's a real ' I'm missing the point totally ' question:

I want to be able to set the color of a line in a skinnable container similarly adjustable backgroundColor (from the parent mxml tag).

I created a skinClass customized for skinnable container and created an element of the race with a value of color hardcoded, as follows:

...

< s:stroke >
< s:LinearGradientStroke weight = "3" rotation = "90" >
< s:entries >
< s:GradientEntry id = "strokeTopColor" color = "0x000000" / >
< s:GradientEntry id = "strokeBottomColor" color = "0xFFFFFF" / >
< / s:entries >
< / s:LinearGradientStroke >
< / s:stroke >

.. who works cool.

I read about adding the property style via a < fx:Metadata > (actually as a mx:Metadata in the majority of the documentation)

Hello

If you just want to have additional properties for the component you can do it this way

David

the application - custom component appellant

http://ns.Adobe.com/MXML/2009.

xmlns:s = "library://ns.adobe.com/flex/spark".

"xmlns:MX ="library://ns.adobe.com/flex/mx"minWidth ="955"="600"xmlns:ns1 = minHeight" * ">

]]>

the component
==========
http://ns.Adobe.com/MXML/2009.
xmlns:s = "library://ns.adobe.com/flex/spark".
xmlns:MX = "library://ns.adobe.com/flex/mx" width = "400" height = "300" skinClass = "myskin" >
[Bindable] public var hiLite:uint = 0xE0E0E0;
[Bindable] public var loLite:uint = 0xC0C0C0;
]]>
the skin
======
http://ns.Adobe.com/MXML/2009"xmlns:s ="library://ns.adobe.com/flex/spark ".
xmlns:FB ="http://ns.adobe.com/flashbuilder/2009"alpha.disabled = "0.5" >
   
   
[HostComponent ("myContainer")]
]]>
   
   
   
       
override protected function updateDisplayList (unscaledWidth:Number, unscaledHeight:Number): void
{
super.updateDisplayList (unscaledWidth, unscaledHeight);
}
]]>
   
   
   
       
       
   
   
   
   
   
       
           
       
   

Tags: Flex

Similar Questions

  • Add the new style of existing DW page link

    I have two sets of links on a page: my links navigation bars and my foot of page/copyright info. links. I have active default, hover, etc., provided in the Panel links CSS matching the NAV bar links... Now, I need to create a new style of link for the links from footer specifically putting a new size for active, hover, etc.. I have a footer defined in the CSS but I try to add the font size so that when it is selected on the size remains the same and it's not too big or too small. How would I have written in my existing CSS footer?

    I'm sorry if it's confusing. I'm basically just trying to set the style of the links different (NAV bar and footer) and that currently, the links are affected by a CSS rule links in CSS property Panel. I need links in the nav bar must be set to 24 px for all 4 States and my footer links must be set to 11 px for all 4 States.

    Thank you-

    ashmic

    And in the CSS, you would have.

    #otherLinks a {color: green; do-size: .9em; text-decoration: none ;}}

    #otherLinks a: hover {color: red ;}}

  • Add the new CSS rule

    Hello

    DW newbie here; It is my first post on the Dreamweaver forum, although I have been posting on the forums of Photoshop and illustrator years.

    Is Dreamweaver stupid question - possible to add a new style of css via the CSS styles palette only when the style sheet is opened? For some reason when I click on the new icon of styles css design mode and select tags at the bottom of the design view window, DW will not create the style. It only does when the style sheet is opened or (I'm sure) I'm doing something wrong or do not understand how create new css rule works.

    Thanks for any info.

    Click on the new icon in the rule on the CSS panel. Choose 'Tag' to the selector
    Type. Enter the name of the selector "h1". Choose where you want your rule
    defined. Click OK. Work?

    --
    Murray - ICQ 71997575
    Adobe Community Expert
    (If you * MUST * write me, don't don't LAUGH when you do!)
    ==================
    http://www.projectseven.com/go - DW FAQs, tutorials & resources
    http://www.dwfaq.com - DW FAQs, tutorials & resources
    ==================

    "meinmichigan" wrote in message
    News:gpete2$H1A$1@forums. Macromedia.com...
    > HI ACE,.
    >
    > Just trying to add a tag h1 for font style - practical. I can add it
    > when the stylesheet.css is open OK, but not when just index.html is
    > Open.

  • How to add a new currency base in Classic Mode

    HELO,

    Please, let me know how to add a new base currency (RON), using the Classic Mode, when creating a new planning application (version 11.1.1.3).
    For now, at the time of the creation of a new planning application you can select the currency of a list (you can not substitute or add a new one).

    I guess, I have to manually change the base currency in the relational tables of RON after the creation of the Planning Application.
    If so, please, can you confirm all the tables involved?

    Thank you very much
    Robert

    Hello

    You can have a base currency, and when you create an application you can select the currency from the list.
    There was another post earlier around the same area:- Re: doubts currency

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Button with a presentation table of radio when you add a new line

    I have a column that I use as a Y/N flag. I would like to make a group of buttons on the form when the user adds a new record. I use a tabular form, but it seems that it is not possible to use a type of radio for a tabular presentation element group.

    Am I missing something? Is it possible to use a group of radio buttons to an item when you add a new record on a tabular presentation?

    Thank you
    Reid

    Hello

    use the HTML for this in the attributes

  • Producing a XY chart in a While loop that adds a new point XY to the curve from each while the loop iteration

    I would like to plot data by using the XY graph as a Visual display. I have a While loop that creates a new point X and Y during each iteration. I need the XY graph to be in the While loop, because once the order to stop has been pressed the sis loop finished and the final graph to be displayed. The problem is that after each iteration, the XY graph display clears and watch point, compared to add the new point to the previous by a line connecting the two points. It works perfectly if I move the XY graph out of the While loop, but it only shows the XY graph at the end of the While loop. I would like to visually see the XY graph updated during the execution of the While loop. Any help would be much appreciated.

    Thank you

    You can add a data both point to a chart to a chart, you must pass the entire data group.  I would use a couple of shift registers in your loop.

  • Add dynamic lines to Table with the new access property

    Hi all

    I have a scenario where:

    1. I have a chart with lines including the readOnly property.

    2. I want to dynamically add a new row to the table, and this new line should be writable.

    3.I have added the following line in the click event of the button that adds a new line.

    form1.Table1.Row1.access="";
    

    But in the output line is added that is not writable.

    If we add

    form1.Table1.access = "";
    

    then new line is added, but it changes the access of all to the writing table.

    I want to change the access of the newly added line only and not the existing lines.

    How can do us?

    Thank you and best regards,

    Nikhil

    Hi Nikhil,

    Please refer script below, it would be useful to you...

    You must insert the script on the click event of the button below...

    Form1. Page1.Table1.Row3.instanceManager.addInstance (true);

    var countVal = (form1. Page1.Table1.Row3.instanceManager.Count - 1);

    xfa.resolveNode ("form1. Page1.Table1.Row3 ["+ countVal +"]. TextField1") .access ="open ";

    xfa.resolveNode ("form1. Page1.Table1.Row3 ["+ countVal +"]. TextField2") .access ="open ";

    xfa.resolveNode ("form1. Page1.Table1.Row3 ["+ countVal +"]. TextField3') .access = "open";

    This is what my table looks like.

    If it does not please let me know vl share the file.

    Thank you

    Vijay

  • How can I apply a new style with an excerpt and DW artifact of the old style?

    Hello

    I use Dreamweaver CS5 in Windows XP SP3. My problem seems simple, but the resolution remains elusive.

    Let's say I'm stuck-in editing the text in MS Word that DW auto-formaté. I highlight text and use a clip to attach the text of the h2.

    Rather than delete the old style and its replacement by h2, DW applies the h2, but copy the old style, enclosing nothing and it bumps to the next line. If the old style included a paragraph tag, which flows into the extra space. For anything.

    Now, this seems to be a minor thing, but it is not so little, when you try to quickly prepare a large document with different header styles. Having to make dozens of changes that, in my view, should be completely useless becomes a burden.

    Is it possible to attach some text in a new style with an excerpt without the old style of stick around?

    Thanks for all the answers!

    Oreo Say

    If I pointed out this bit and click to apply my excerpt:

    The header

    the result is:

    The header

    You need not of snippets for this.

    Select it

    tag with the selector tag between (bottom of the design view) and the top of the property inspector, then, in the property inspector, Select Heading 2 in the dropdown Format menu.

    DW will replace

    with

  • How can I prevent the Thunderbird create additional folders when I add a new email account?

    I use Thunderbird for about 8 years now, the configuration of the migration from one version to the other. Currently, I have two accounts, he picks up emails from. I would like to add a third account, but whenever I do that, it creates a lot of new files with the name of the account in my folder tree. This is undesirable, especially because it looks terrible and it's also dodging default filtering that I put in place at the global level for received messages.

    Create a new account without him how new folders and just using local files as do other accounts?

    I don't use Thunderbird filtering internal spam, I use popfile and use the message filters to sort e-mails by Popfile headers added to my messages. I don't understand why it don't let me make a new account as the other accounts without making a special folder to the new account. Help, please?

    Point 1. Global Inbox only works with email pop accounts
    Menu Tools > account settings > server settings > advanced and select use global inbox to turn it on. Note the folder will disappear, so moving the mail you want them before you change the settings.

    Point 2. IMAP accounts must have their own records. The view menu > file > unified view was designed to overcome this as much as possible.

  • How to add the 'new tab' button next to the last tab?... I use version 9.0.1. and they are missing and I can't find how to add.

    I got the new tab next to open tabs button, but with a recent update of Firefox, the tab button disappeared. Went through all the help points, but how do I add the new Help tab is not listed. The only way to open a new tab is manually using the buttons on windows/t or opening the file and choosing the new tab.

    Hello

    It could be that he is hidden behind another icon. Please try this: right click on the empty space after the last tab and Customize.... With the mini window open, you can move the other toolbars and icons to check if the new tab button is hidden. You can also check inside the mini window customize the icon named new tab or click Restore Default Set that will be hopefully restore back. Please note that if nothing is uninstalled or disabled when you click on restore by default, you will have to redo all changes to manual/personal toolbar.

    Customize toolbars

  • Try to add a new hard disk to m7657c

    So, after about 6 years, we you're still enjoying our Media Center Office and have made a few updates here and there (OS, graphics card, etc.). Now, we're tired of running out of disk space and want to add a new hard drive. Now, according to the specifications of the product (http://support.hp.com/us-en/document/c00794034), we should have two internal drive bays 3.5 ". Which one should be available. Where is located the?

    I have removed the side and before the panels, can see where the existing HARD drive is mounted on the side of the Bay of media player owner, but I can't find any other anchor point to place a secondary HARD disk. There is a lot of power open and SATA connections, but I am at a loss to find a Bay.

    Before the wreck I have my system trying to kluge something together, I want to know where the available Bay is supposed to exist.

    Any help would be greatly appreciated!

    Thank you!

    joverstreet001,

    Happy holidays to you.  Your detailed question and knowledge have a simple answer.  Thank you very much!!!. Some chassis models have 4 screw holes in the bottom of the unit. You need to ask to see.

    Reference to the page # 9, upgrade and repair manuals

  • Desktop themes: I am trying to add a new theme for my office everyone isn't a site I can download a halloween theme

    I am trying to add a new theme for my office does anyone no site I can download a theme halloween or any good themes besides?

    Do the free trial of windowblinds is always easier: http://www.stardock.com/products/windowblinds/

    You can download more than 4500 different themes for it here: http://wincustomize.com/explore/windowblinds

    teengeek.freehostingcloud.com

  • Can someone tell me if I can add a new column in the Explorer of Windows Vista or Windows Server 2008?

    Hello

    Previously in Windows XP and 2003, IColumnProvider is available using which it was possible to add a new column to Windows Explorer Details view, but with the removal of this API, the new columns are is not displayed in Windows Explorer on a Vista or Windows 2008 Server. It is said that there is a new concept of property system. So I would like to know if it is possible to implement something similar uses of property systems.

    These forums are for end users, rather than developers. You must use the MSDN Forums to get this kind of information.

    http://social.msdn.Microsoft.com/forums/en-us/categories

  • Problem with PPR in a table advanced with the insertion of several lines in create the page using 'add a new button '.

    Hello experts,

    I created a page that contains an array of advanced, 6-7fields (including a poplist column)

    Whenever I have add a new using the line add new line button, I get a null pointer exception.

    Code in Scenario1.


    Public Sub handleCurrencyChangeEvent()

    {

    PVO OAViewObject = (OAViewObject) findViewObject ("xxCurrencyPVO1");

    Line OARow = (OARow) pvo.first ();

    OAViewObject dtlVO = (OAViewObject) findViewObject ("xxEcreditCardDtlVO1");

    OARow dtlRow = (OARow) dtlVO.getCurrentRow ();

    String currency = (String) dtlRow.getAttribute ("CurrencyCode");    / / NULL POINTER EXCEPTION

    If ((currency == null) |) ("AED".equals (currency)))

    {

    row.setAttribute ("ExchangeRateTypeRender", Boolean.FALSE);

    row.setAttribute ("ExchangeRateDateRender", Boolean.FALSE);

    row.setAttribute ("ExchangeRateRender", Boolean.FALSE);

    }

    on the other

    {

    row.setAttribute ("ExchangeRateTypeRender", Boolean.TRUE);

    row.setAttribute ("ExchangeRateDateRender", Boolean.TRUE);

    row.setAttribute ("ExchangeRateRender", Boolean.TRUE);

    }

    }

    Public Sub initPVO()

    {

    OAViewObject appPropsVO = (OAViewObject) findViewObject ("xxCurrencyPVO1");

    If (appPropsVO! = null)

    {

    If (appPropsVO.getFetchedRowCount () == 0)

    {

    appPropsVO.setMaxFetchSize (0);

    appPropsVO.executeQuery ();

    appPropsVO.insertRow (appPropsVO.createRow ());

    Line OARow = (OARow) appPropsVO.first ();

    row.setAttribute ("RowKey", new Number (1));

    }

    }

    handleCurrencyChangeEvent();    / / If I comment on this call, there will be no null pointer when I click on the button Add a new rank and PPR will not be the first line when I select the poplist.                 

    }

    Public Sub createDetailRow()

    {

    String hdrId;

    OAViewObject hdrvo1 = (OAViewObject) getxxEcreditCardHdrVO1 ();

    OAViewObject dtlvo = (OAViewObject) getxxEcreditCardDtlVO1 ();

    Initialize and create a line of VO

    If (! dtlvo.isPreparedForExecution ())

    {

    dtlvo.setMaxFetchSize (0);

    dtlvo.executeQuery ();

    }

    Line dtlrow = dtlvo.createRow ();

    dtlvo.executeQuery ();

    int count = dtlvo.getRowCount ();

    dtlvo.insertRowAtRangeIndex (count, dtlrow);

    Development of the sequence for the number of request *.

    Number of dtlseq = getOADBTransaction () .getSequenceValue ("xxdm. XXDMI_ECREDIT_CARD_DTL_SEQ");

    hdrId = hdrvo1.getCurrentRow ().getAttribute("CreditCardHdrId").toString (); mind vo

    dtlrow.setAttribute ("CreditCardHdrId", hdrId);

    dtlrow.setAttribute ("CreditCardLineId", dtlseq);

    dtlrow.setAttribute ("LineNumber", count + 1);

    End of sequence generation *.

    dtlrow.setAttribute ("CurrencyCode", "AED");

    String currency = (String) dtlrow.getAttribute ("CurrencyCode");

    System.out.println ("CurrencyCode:" + currency);

    dtlrow.setNewRowState (Row.STATUS_INITIALIZED);

    } / / end createDetailRow()

    ' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)

    {

    super.processFormRequest (pageContext, webBean);

    OAApplicationModule am = pageContext.getApplicationModule (webBean);

    Event string = pageContext.getParameter (OAWebBeanConstants.EVENT_PARAM);

    * Treatment add line button *.

    If ((ADD_ROWS_EVENT. Equals (Event)) & & "AdvTblRN".equals (pageContext.getParameter ("source"))) ".

    {

    am.invokeMethod ("createDetailRow", null);

    am.invokeMethod ("initPVO");

    } //**End add row button *.

    otherwise if

    ("currCodeChangeEvent".equals (pageContext.getParameter (OAWebBeanConstants.EVENT_PARAM)))

    {

    am.invokeMethod ("handleCurrencyChangeEvent");

    }

    ===========================================================================================================================

    Could please help what is wrong in the code, I followed all the steps as stated in the guide, but the table advance, the problem starts whenever I click on the button Add a new row for the creation of new line.

    I couldn't understand what was wrong with the code.

    Thanks in advance,

    Suman

    Suman,

    A few points:

    1. Why do you call handleCurrencyChangeEvent in the event to add a line? Simply set the useful, likely of the values in the line it himself.

    ex:-instead of calling the handleCurrenyChange method, simply add the below lines inside the createDetailRow()

    dtlrow.setAttribute ("ExchangeRateTypeRender", Boolean.FALSE);

    dtlrow.setAttribute ("ExchangeRateDateRender", Boolean.FALSE);

    dtlrow.setAttribute ("ExchangeRateRender", Boolean.FALSE);

    2. it looks like you have on the field of the currency and that fireAction handleCurrencyChangeEvent action method is called, right?

    Instead of using dtlVo.getCurrentRow, use the code below:

    public void handleCurrencyChangeEvent(String eventRowSourceParam)
      {
      OAViewObject pvo = (OAViewObject)findViewObject("xxCurrencyPVO1");
      OARow row = (OARow)pvo.first();
    
      OAViewObject dtlVO = (OAViewObject)findViewObject("xxEcreditCardDtlVO1");
    
      //OARow dtlRow = (OARow)dtlVO.getCurrentRow();
      OARow dtlRow = (OARow)this.findRowByRef(eventRowSourceParam);
    
      String  currency = (String)dtlRow.getAttribute("CurrencyCode");    // NULL POINTER EXCEPTION
    
      if ((currency == null) || ("AED".equals(currency)))
      {
      row.setAttribute("ExchangeRateTypeRender", Boolean.FALSE);
      row.setAttribute("ExchangeRateDateRender", Boolean.FALSE);
      row.setAttribute("ExchangeRateRender", Boolean.FALSE);
      }
      else
      {
      row.setAttribute("ExchangeRateTypeRender", Boolean.TRUE);
      row.setAttribute("ExchangeRateDateRender", Boolean.TRUE);
      row.setAttribute("ExchangeRateRender", Boolean.TRUE);
      }
      }
    

    In the controller:

    if((ADD_ROWS_EVENT.equals(event)) && "AdvTblRN".equals(pageContext.getParameter("source")) )
    {
      am.invokeMethod("createDetailRow",null);
      am.invokeMethod("initPVO");
    } //**End Add Row Button**
    else if ("currCodeChangeEvent".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
    {
      String eventRowSourceParam = pageContext.getParameter(EVENT_SOURCE_ROW_REFERENCE);
      Serializable[] params = {eventRowSourceParam};
        Class[] paramTypes    = {String.class};
      am.invokeMethod("handleCurrencyChangeEvent",params, paramTypes);
    }
    

    3. Why do you call initPVO when it is clicked on the Add line? Are you calling not just in the PR?

    You could call it once in the PR and let. When you call it PR, you may need to remove the handleCurrencyChangeEvent of this method call.

    See you soon

    AJ

  • How to add a new font in Application ADF JDeveloper 12 c.

    Mr President.

    I want to add a new font in my application from merger of adf.

    Is it possible and how to do this.

    Concerning

    Just write the name of font in the inline style or a style of content of the component

Maybe you are looking for

  • R7800 and compatible iOS OpenVPN

    Anyone have an idea when we are likely to see iOS support for OpenVPN on Earth from R7800 - I see other models are better slowly updating (including the R7000 - a much older model), so I was wondering when the R7800 will be online for this update?

  • Windows XP. The system power finished on the computer self-test now booting of the operating system

    When booting from XP PRO I get this audible, ' system completed power on self test.» Computer, now the startup of the operating system. ». How can I disable this audible?

  • Windows Media Player re - arrange the order of the songs when I burn it to a cd

    De : Troya Message: Hi, I just have a question and I hope that someone could answer as soon as possible when I'm trying to burn audio CDs on my computer (using windows media player), he re - arranges them in a different order in which I wanted to be

  • Photoshop elements 3.0

    I had to get a new computer with vista installed. I can't install my photoshop elements 3.0. I know this is an old program, but that's all that I need. Is it possible to do this is compatible with vista? Is it possible to go back to XP with problems?

  • Unavailable Smartphones blackBerry media card

    Searched and could not find an answer that worked 8310 on 4.5.0.110 with ATT Desktop Manager 4.5.0.16 without Media Manager Device not installed Manager I try to run the driver update and get "a newer version of the desktop software is installed.  Pl