Default Properties

Ok, I know how to create a default property in a custom .as
class so that when i use that class in mxml i can use the default
property but... does anyone know how (or if) i can set a default
property when i make an mxml component so that i can then use the
component, with a default property in my application mxml.
I tried this:
<?xml version="1.0" encoding="utf-8"?>
<mx:Panel xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" width="400" height="300" title="{panelLabel}">
<mx:Script>
<![CDATA[
[DefaultProperty("PanelLabel")]
[Bindable] private var panelLabel:String = "Unnamed";
public function set PanelLabel(newLabel:String):void
this.panelLabel = newLabel;
public function get PanelLabel():String
return this.panelLabel;
]]>
</mx:Script>
</mx:Panel>
And hoped it would work with this:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" xmlns:local="*">
<local:MyPanel>Test</local:MyPanel>
</mx:Application>
But no go. I get: "Initializer for 'MyPanel': values of type
MyPanel cannot be represented in text.
If I can't do it from the mxml component it's easy enough to
a) first create the component and then b) make an as3 class that
inherits from the component that has the defaultProperty meta tag
but the only purpose of that class would be to add a default
property to the component. It seems logical to me that you should
be able to add the default property directly to the component but
im stumped.

Great! That was exactly what I was looking for. Thanks yet
again.
I had tried
<mx:Metadata DefaultProperty="MyProp"/>
but that didn't work obviously, at least I was sorta heading
down the right train of thought.

Similar Messages

  • How to add the property file..ie(default.properties) to a webdynpro project

    Hi All,
    How to add the property file..ie(default.properties) to a webdynpro project.
    I urgently require the solution. Kindly get it for me.
    Regards
    DK

    Hi DK,
    this is described in the second Web Dynpro Java Tutorial
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/b1a3e990-0201-0010-aeb2-a2ef5bc3da8e">creating an Extended Web Dynpro Application</a>
    Regards, Bertram

  • Acrobat pro: how set default properties for arrow and line tool seperately?

    I have a problem with the 'comment and markup' tools in Adobe Acrobat Pro.
    I would like to change the defaults of some of the tools, eg the arrow and the line tool.
    This can be achieved by right-clicking on something drawn using the tool in question and then selecting 'properties' - or by selecting the tool and then press ctrl+E, wich opens a 'Callout Tool Properties', and then change what you want there. The latter option keeps the changes as defaults - the former offers a box to tick in the 'properties' dialogue that opens - or, you can right-click on the object again after having changed the properties, and then select 'Make Current Properties Default'.
    My Problem is now, that, apparently, you cannot choose and save default properties freely and for each tool. I woul like to have the default properties for the line tool set as the following:
    -line color: yellow
    -line thickness: 8pt
    -opacity: 60%
    and fot the arrow tool as this:
    -line color: red
    -line thickness: 1pt
    -opacity: 100%
    This all works fine as long as the program is open. As soon as I exit and start it again opening another document /the same one again, the arrow tool changes to
    -line color: yellow
    -opacity: 60%
    only the line thickness remains at 1pt.
    If I change the properties of the line to the ones I want for the arrow, the arrow properties remain unaltered if I close Acrobat Pro.
    Why do these properties interfere? Why is it "line color/thickness" in both? Why, then, do only the opacity and the color interfere, but not the thickness - even if it's the latter two properties that are bot called "line xxx"? Why does Acrobat not save all properties for these two shapes seperately - even IF the two shapes are both of a line-like kind?
    Is there a way to get around this?

    Trobbel - This indeed is puzzling behavior. Clicking 'Make Current Properties Default' should preserve the default  appearance for each. I don't have a solution, but merely a couple of suggestions:
    1) Make sure you have installed any available upgrade for your version of Acrobat Professional.
    2) Consider using the line tool exclusively - you can add an arrowhead and make one tool perform both tasks.
    Hope this helps. /rmbrown

  • How do I change the default properties for Replace(Ins)?

    Acrobat Pro X
    Comment tools: Annotations
    All tool icons EXCEPT Replace(Ins) show "Tool Default Properties" as an option when right-clicked.  When I right-click a particular replacement in the document and select "Properties," there is no option to set current as default.
    So, how do I change the default properties for this annotation tool?  I need to change the Author and the color.
    Thanks,
    Nancy

    Create customized controls for your graphs and controls and setup your favorite attributes .
    Use your custom controls instead of the canned controls.
    Do a search on UI and you will find a community that already created custom controls.
    Visualize the Solution
    CLA
    LabVIEW, LabVIEW FPGA

  • Change Mouse Default Properties

    How can I change mouse default properties in software simulation projects?

    Hello,
    I don't know of a way to do this before capture, because the mouse has no object style in the Object Style Manager, and is not included in the Modes settings for capture. However changing the properties when editing can be done rather quickly:
    Select one Mouse object, use Options accordion to change its properties
    Use the small curved arrow button top right of that accordion, to apply the changed properties to all mouse objects.
    Didn't check it out if it could be saved in a template... but then you'd have to use that template for each project. Please, could you also mention the version you are using when posting a question? For this question it was not that important, if you have a version later than 4.
    Lilybiri

  • BEx default properties

    Hi guru's,
    When I launch a query vie BEx ... It's possible to change the default properties of the BEx Analyzer ? For example I want to put this properties (Do not adjust column width)by default for all the queries I launch via BEx ...
    Thanks in advance
    Aleksi

    Hi Aleksi,
    As the previous responders have written, there is no way to set these properties automatically using built-in BW capabilities.  I agree.  But, that does not mean it cannot be done.
    The only way I know to accomplish this is to write your own macro to do this.  There are 3 parts to it.  The easy part is setting the properties to not adjust column width.  The more difficult part is making your macro aware that you have opened a workbook.  Then you would need to check to see if the workbook just opened is a BW workbook, so that it can then set the adjust column width property to your liking for every query in that workbook.
    I will give you the overview here. If you are interested in pursuing it, post again and I will give you the details.
    The easy part first ...
    To set the column width property, you go to the (very) hidden worksheet named "SAPBEXqueries" in the BW workbook, in column Q you put either a 0 (do not adjust), a 1(adjust to results area), or a 2 (adjust to entire column width).
    To more difficult parts ...
    To know that a workbook has been opened (so you can do the rest), you have to access an Application event.  The good news is that the WorkbookOpen event is built into Excel.  The other news is that to access it you need to create a Class Module in VBA. This is an advanced topic; but, not an impossibly advanced topic.  Chip Pearson has a web page on this topic, if you want to read more. http://www.cpearson.com/excel/AppEvent.htm
    To know if the workbook that has just been opened is a BW workbook is actually the easiest part of this (but, logically follows knowing when a workbook has been opened).  Every BW workbook has a (very) hidden worksheet named "SAPBEXqueries".  I doubt you will find any other workbooks with this distinct characteristic.  But, if you really want to be sure, you can also look for hidden Names in the workbook ... you should find these:  SAPBEXrevision, SAPBEXsysID, and SAPBEXwbID.
    If you want details, post again.
    - Pete

  • Could not find "jdbc.datasources=..." in default.properties file

    Dear sirs,
    I sucessfully install jdk1.3 ,j2ee 1.3 and 50 day's trial cloudscape5.1 , then run the Cview create a database ,now I want to rigister the database by opening %J2EE_HOME%\config\default.properties file to find the line likes
    "jdbc.datasources=..." to add my database name behind , but I could not find it ,it's content is only appeared as
    following :
    # maximum size of message driven bean instance
    # pool per mdb type
    messagebean.pool.size=3
    # maximum size of a "bulk" message bean delivery
    messagebean.max.serversessionmsgs=1
    # message-bean container resource cleanup interval
    messagebean.cleanup.interval=600
    passivation.threshold.memory=128000000
    idle.resource.threshold=600
    log.directory=logs
    log.output.file=output.log
    log.error.file=error.log
    log.event.file=event.log
    distributed.transaction.recovery=false
    transaction.timeout=0
    transaction.nonXA.optimization=true
    sessionbean.timeout=0
    # validating parser values
    # validating.perser is used when archive file are loaded by
    # any of the J2EE Reference Implementation tools.
    # deployment.validating.parser is used when deploying an
    # archive on the J2EE AppServer.
    validating.parser=false
    deployment.validating.parser=true
    What shoul I do?
    Best regard !
    zhangyu
    cosbulk

    hi zylf,
    what u are looking for is ther in the resource.properties file..
    %J2EE_HOME%\config\resource.properties
    dont rely too much on tutorials.. many are outdated.. it seems..
    try opening all the files in the j2ee dir's, read 'em and try to understand them....
    a better forum for this is the J2EE forum at this url..
    http://forum.java.sun.com/forum.jsp?forum=136
    all the best..
    -Jer

  • EVS  , change some default properties

    Hi ,
    I am using EVS for input filed .
    I want to change some default properties  , like :
    1. The EVS arrange the results in 6 values every page , i want to decide  how many results each page .
    2. The EVS display 2 columns , the setFieldLabel () method, set the lable of the "key" column.
    Which method change the lable of the  description field ( I already tried : setDescription && setColumnLabel ) ?
    Thanks ,
    F.F

    Hi FF
    Please go through these links
    Re: Extended Value Selector
    /people/valery.silaev/blog/2006/03/10/minus-evs-plus-ovs-value-help-smart-input
    Re: Extended Value Selector
    regards
    kalyan

  • Changing transition default properties?

    Hi,
    For transitions, how do I change the default properties? For example, when I drop in a dissolve its duration is 1:06, and if I want it shorter I have to change it from that point. How do I change the default properties of the transition so that its duration is, say 10 frames? I do this all the time in FCP and it's a huge time-saver rather than manually adjusting every transition, especially when you're using a lot of the same type of transition.
    Thanks!
    Johnathan

    You can change the default duration in the Preferences under General.

  • CloverETL Default Properties File

    Hi, I have followed the instructions on Help - Eclipse to try and change the default properties file in the CloverETL engine. However, the changes do not seem to have taken any effect. Is there something I am missing out?

    Hi,
    If you want to modify default values for the whole CloverETL engine, you can modify defaultProperties file directly. The whole path of this file is mentioned in our documentation.
    But if you want to change some default values just for the current graph, you can create a new file with only those properties you need to override. Then name this file e.g. as modifiedProperties (without any suffix) and place it into project directory (i.e. right next to .project, .claspath and workspace.prm files of desired project). Open Run configuration of the graph, and fill -config modifiedProperties into Program Arguments text area.
    That is all. If you did it correctly, this line should be visible in graph run log:
    INFO  [main] - Loading Clover properties from file:modifiedProperties
    If this does not help you, please post also version of your software and version of CloverETL.
    Please, do not hesitate to ask if something was unclear.
    Best regards,
    Lubos Imriska
    CloverCARE Support
    Javlin a.s.

  • ADOX support using Default properties

    Hi,
    during porting a large project based on ADOX to Oracle OLDEB provider
    we get Runtime Error 3265.
    See above code. It works for using the Nullable properties but fails using
    the Default properties. We don't like to change the CODE using SQL scripts for
    create default column values [ This code works fine for MS SQLSERVER ].
    Private Sub Command1_Click()
    Dim cn As New ADODB.Connection
    Dim strCn As String
    Dim cat As New ADOX.Catalog
    Dim tbl As New ADOX.Table
    Dim col As String
    strCn = "Provider=OraOLEDB.Oracle;User ID=scott;password=tiger;Data
    Source=SUN920"
    cn.Open strCn
    Set cat.ActiveConnection = cn
    Set tbl.ParentCatalog = cat
    tbl.Name = "ADOXTab"
    col = "Col1"
    tbl.Columns.Append col, adVarChar, 5
    ' Error Code: Runtimer Error 3265 is returned if using Default properties
    ' No error comes up if using Nullable properties
    'tbl.Columns(col).Properties("Default") = "Hugo"
    tbl.Columns(col).Properties("Nullable") = True
    cat.Tables.Append tbl
    Set tbl = Nothing
    Set cat = Nothing
    cn.Close
    MsgBox "Done"
    End Sub
    Any workarounds to create a table with default properties using ADOX ?
    Did Oracle OLEDB provider fully support ADOX API ?
    Thx Helmu

    Hi Satti,
    Does Venkata's suggestion helpful to you? If the issue persists, please post the detail information about your issue, so that we can make further analysis.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Default.properties on Solaris

    On Windows, the iMQ port where the broker is running is stored in the
    config.properties file and the default port is in default.properties but
    how about on Solaris ? Is there an equivalent of default.properties on
    Solaris too ?

    On Solaris, the properties for a broker are stored in:
    /var/imq/instances/brokerName/props/config.properties
    The default properties are in the directory:
    /usr/share/lib/imq/props/broker
    Both the files there are well-commented.
    This is covered in the Administrator's Guide, the chapter entitled
    Starting and Configuring a Broker.

  • Bulk editor is not returning values for default properties

    ..even though the content nodes have a value for this property. CQ version is 5.5.
    I need to export a report of all user generated content from /content/usergenerated/content/<sitename>/en. This is the root path.
    The query parameter I have specified is "type:Rating". By default the "sling:resourceType" is selected. No other custom properties are specified in the interface.
    The search returns the nodes of this type, but the results do not return a value for the "sling:resourceType" for these nodes.

    It should work. Might be you do not have data. Is the results shown as zero records?

  • Set default properties for Tools Content Modification Add Text?

    I'm running a French version of Adobe Acrobat XI version 11.0.0.
    I'm not enquiring about or alluding to the other tool that can be employed for adding text: Sign > Add Text.
    For instance, I'd like to change the default font, font size, font color, etc.
    Here's a picture:

    Trobbel - This indeed is puzzling behavior. Clicking 'Make Current Properties Default' should preserve the default  appearance for each. I don't have a solution, but merely a couple of suggestions:
    1) Make sure you have installed any available upgrade for your version of Acrobat Professional.
    2) Consider using the line tool exclusively - you can add an arrowhead and make one tool perform both tasks.
    Hope this helps. /rmbrown

  • Change default properties of TEMPLATE_PROPERTIES in 2004s

    Hi gurus.
    My issue is that I want to change the default parameters of web templates. For instance, I don't want information messages to be shown as default. I have found that it is possible to change this in the IMG under "Determine Settings for Web Templates". In the help menu for this activity it says that I should enter the "technical name of the library item in which you stored the Web template properties". I do not understand what this is.
    Any help would be appriciated.
    Regards
    Øyvind Reinsberg

    Thank you John,
    I "should" be able to pop up on the table and use the properties of the table but I just realized why the properties weren't available (the menu "Create -> Property Node" is not even available). The reason seems to be because my Array of Clusters is a Strict Type Def Control. I use this Array in different places in my program and I find that it is very convenient to use a Strict Type Def for a Cluster since I am still in a development phase.
    I am not very optimistic that there is something to be done apart from changing all my Strict Type Def controls back to regular controls... maybe "Type Def" Controls will suffice. But if you know of a way to programmatically modify the properties of a Strict Type Def Control, please don't hesitate to answer me back.
    Thanks again.
    Nathalie

  • Set multiple default properties

    Hi,
    I am trying to set multiple default values for a property (multiple,text and unrestricted)from admin tool on WLPS 3.2 with WLS 5.1.
    The problem is that only first value is persisted in the database and the rest of the values are lost when the server is restarted??? I confirmed it by crosschecking the tables.
    Any help is appreciated.
    Thanks,
    --Rajit

    Hi Rajit,
    Are you using Service Pack 2 for WLCS 3.2? There was an issue (CR044075)
    dealing with muli-valued properties that was fixed in SP 2. See the Release
    Notes for more information:
    http://e-docs.bea.com/wlcs/docs32/relnotes/relnotes.htm.
    Regards,
    Ginny
    "Rajit Gulati" <[email protected]> wrote in message
    news:3c90e355$[email protected]..
    Hi,
    I am trying to set multiple default values for a property (multiple,textand unrestricted)from admin tool on WLPS 3.2 with WLS 5.1.
    >
    The problem is that only first value is persisted in the database and therest of the values are lost when the server is restarted??? I confirmed it
    by crosschecking the tables.
    >
    Any help is appreciated.
    Thanks,
    --Rajit

Maybe you are looking for

  • Sy-lsind / sy-listi and sy-lsind = 0

    First of all I would like to know the difference between sy-lsind and sy-listi. Below is one code snippet wherein my requirement is that when I click on list number 5 it should take me to basic list. But when I click on list number 5, it takes me to

  • REPORT HEADING ON TOP CENTRE

    Hi experts, actually in my ALV report i want to display the name of the report on top centre of the page. for this i used FM ALV_REUSE_COMMENTARY_WRITE. AT PRESENT I AM GETTING THE REPORT HEADING ON TOP LEFT. COULD U PLZ HELP  HOW TO GET THE REPORT H

  • Batch not updating while creating delivery using bapi

    Hi I have used following bapi to create delivery BAPI_DELIVERYPROCESSING_EXEC and passed the following parameters into bapi lt_request-document_type = 'A'.         lt_request-document_numb = deltab-vbeln.         lt_request-document_item = deltab-pos

  • Lenovo G510 won't start when battery is on and it's fully charged

    Hi there. I have my Lenovo g510 i5 notebook for 10 months, and my battery is wrong. I haven't used it on battery too much, but when I used it, I empty all of it and then charged it when it's turned down. Couple of days ago, the battery was empty I pu

  • Question for SQL execution plan, strange..

    HI, all We meet a strange problem for a execution plan. First, we have a StoreProc, it runs around less than 20 secs. One day, it runs more than 5 mins (Execution plan 1). I checked all the index (fragmentation is low and Scan density is high), and r