Tab Bar Links

Im building a group of links in my uix page using the tag <tabBar>, so i would like to know how can i take the value of 'id' on a specific link of this group and send to a java method that i created, but there is a problem, i need to do this when i click in the link.
thanks.

All right, i understand what are you say, but how can i take it(value id) and use this value in the "selectedIndex" property of the tag <tabBar>?
Please look the example.
<tabs>
<tabBar selectedIndex="id">
<contents>
<link text="Entidades Basicas"
destination="PageHeader.uix?id=0"
id="0"/>
<link text="Avaliacao Escolar"
destination="PageHeader.uix?id=1"
id="1"/>
</tabBar>
<tab>

Similar Messages

  • How to disable a tab in a spark tab bar?

    I have a spark tab bar linked to a ViewStack.  In olden days, IIRC,  setting the enabled property of a viewstack member would set the corresponding tab inactive.  However, if I try that now, the tab control is still active, but the contents of the viewstack for that tab is indeed disabled.
    To reiterate:  I want certain tabs in a spark tab bar to be disabled (i.e. unable to be chosen and displaying their disabled skin state).
    <s:TabBar id="tabBar" dataProvider="{tabStack}" x="70" y="91" skinClass="CalculatorTabsSkin"/>
    <mx:ViewStack id="tabStack" width="100%" height="100%" creationPolicy="all" change="tabStack_changeHandler(event)">
         <s:NavigatorContent id="nc1" label="PIERS">
         <comp:Tab1 id="tab1"  width="100%" height="100%" continue="tab1_continueHandler(event)" />
         </s:NavigatorContent>
         <s:NavigatorContent id="nc2" label="FOOTINGS">
         <comp:Tab2 id="tab2" width="100%" height="100%" continue="tab2_continueHandler(event)" numberOfPiers="{totalNumberPiers}" />
         </s:NavigatorContent>
         <s:NavigatorContent id="nc3" label="BAGS OR TRUCK?">
         <comp:Tab3 id="tab3"  width="100%" height="100%" totalCubicYards="{totalCubicYards}" totalNumberBags="{totalNumberBags}" />
         </s:NavigatorContent>
    </mx:ViewStack>

    Addendum:
    Literally two minutes after I got back to actually working, I found a more "elegant" solution.  I posted it elsewhere, but I guess I forgot to share it here. =/ So I thought I'd update this real quick. =)
    If you apply a custom skinClass to your tab bar you can bind the tab.enabled property just like you'd expect/want.
    <!-- some component that has the TabBar in it... -->
        <fx:Script>
             <![CDATA[
        [Bindable] private var tab2IsReady:Boolean = false;
        private function checkCriteria():void{
             tab2IReady = someOtherThing.isFinished;//Boolean
        ]]>
        </fx:Script>
    <s:TabBar id="theTabBar"
       dataProvider="{viewStack}"
       skinClass="skins.CustomTabBarSkin"/>
    <mx:ViewStack id="viewStack">
          <s:NavigatorContent label="Tab index 0">
               <!-- Your first tab's content -->
          </s:NavigatorContent>
          <s:NavigatorContent label="Tab index 1" enabled="{tab2IsReady}">
               <!-- Your second tab's content -->
          </s:NavigatorContent>
    </mx:ViewStack>
    <!-- rest of the component that has the the TabBar in it... -->
    When you type "skinClass" use the auto complete to generate the custom skin (named whatever you want).
    The generated code will appear like below (I left out the Script tag).
    <?xml version="1.0" encoding="utf-8"?>
    <!-- skins/CustomTabBarSkin.mxml
    Adobe's copyright & doc comments
    -->
    <s:Skin
        xmlns:fx="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">
        <fx:Metadata>
            <![CDATA[
             * @copy spark.skins.spark.ApplicationSkin#hostComponent
            [HostComponent("spark.components.TabBar")]
            ]]>
        </fx:Metadata>
          <!-- optional Script tag here -->
        <s:states>
            <s:State name="normal" />
            <s:State name="disabled" />
        </s:states>
        <!--- @copy spark.components.SkinnableDataContainer#dataGroup -->
        <s:DataGroup id="dataGroup" width="100%" height="100%">
            <s:layout>
                <s:ButtonBarHorizontalLayout gap="-1"/>
            </s:layout>
            <s:itemRenderer>
                <fx:Component>
                    <s:ButtonBarButton skinClass="spark.skins.spark.TabBarButtonSkin" />
                </fx:Component>
            </s:itemRenderer>
        </s:DataGroup>
    </s:Skin>
    <!-- End skins/CustomTabBarSkin.mxml -->
    Then add the enabled property to the ButtonBarButton & bind it to data.enabled in your skin class.
    Change:
               <fx:Component>
               <s:ButtonBarButton skinClass="spark.skins.spark.TabBarButtonSkin" />
           </fx:Component>
    To:
               <fx:Component>
               <s:ButtonBarButton skinClass="spark.skins.spark.TabBarButtonSkin"
                    enabled="{data.enabled}" />
         </fx:Component>
    Then any <s:NavigatorContent/> used with a TabBar using that skin will respect the enabled property and do exactly what you expect & want (be enabled when true, & disabled when false).
    Hope this helps some people.  WIsh I'd remembered to re-post it here when I first figured it out.
    Happy Coding! =D
    Todd
    Message was edited by: Chaos7703 - Just made one statement a bit more explicit.

  • Tab bar will not generate new tab if press+ - Links work- Right Button click 'open in new tab'

    Now working with 3.6.18 (I had v4, then v5 briefly), the tab bar 'failed' in v5 so I went back to v3.6.18, but the problem followed.
    No matter how many tabs are open I cannot get a new blank tab by clicking the "+" tab on tab bar.
    I CANNOT get a new tab by mousing over another tab, right button menu "new tab" will not work.
    I CAN select a bookmark "open in new tab" it works.
    I CAN do the same on a link, "open in new tab" it opens in a new tab.

    Didn't even know I had one, so I told it to display then went to the right hand end where a drop down menu offered "uninstall" and fired that , and again, and again, and again, the sticky little booger grinned back, but would not leave.
    Reminded me of early Windows days when Win would die and tell you, "I just lost all your work" "OK?"
    Going to look for a big hammer, it used to make me feel good to have the last FINAL word.

  • I cannot open a new tab any way..by clicking the new tab button on tab-bar, or ctrl/T, or File/New Tab, or clicking on link on current page.

    On Windows7 Premium Home Edition, I cannot get a new tab to open no matter what I try. On occasion, if I click on a link on the current page, a second tab will open, but 99% of the time I am stuck using the first tab for everything and using the back button. I have tried ctrl/T, File/New Tab, right mouse click/New Tab, and the new tab button on the tab bar to the right of the current tab.

    Uninstall the '''''Ask Toolbar'''''. It can cause that problem.
    *http://support.mozilla.com/en-US/kb/Uninstalling+add-ons
    *http://support.mozilla.com/en-US/kb/Cannot%20uninstall%20an%20add-on
    *http://kb.mozillazine.org/Uninstalling_toolbars
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • Why can't i drag text/link to the tab bar and have it open a new tab?

    Whenever i drag highlighted text, drag a URL, or drag a link to an image/video to the tab bar nothing happens. Previously FF would open this as a new tab, but i can't seem to find out what is wrong.

    ''in Chrome you can drag a text to a new tab and Google(or your default search engine) gives you the search results of that text in that new tab''
    ''Sometimes it works, sometimes it randomly opens a nonexistent .com-less url or appends .com for no reason.''
    Nothing happens when I drag text and drop it on a tab or the new tab button. Do you need to wait for the tab to display and then drop it on the address bar?
    Two alternatives might be:
    (1) Right-click selected text, then choose Search Google for... to open a search in a new tab
    (2) Hold the Alt key while dragging and dropping the selected text onto the search box/search bar to open a search in a new tab

  • Tab bar based app, with 4 tabs each linking to a different navigation menu

    Hi,
    Im new to coding and I was wondering if anyone could help me out with a problem im having. Im trying ot get 4 tabs accross the bottom in a tabbar with each one linking to a navigation page. Im trying to get 5 topics on each navigation page which go into more detail to another page when clicked. so 4 tabs x 5 topics x 5 more detailed topics. I have tried the O'Rilley tutorial and could make a tabbar with 2 tabs. but I cant do 4, can anyone help?
    Thank you all in advance.

    Hi Sunny, and welcome to the Dev Forum!
    If you're using [Elisabeth Robson's tutorial|http://broadcast.oreilly.com/2009/06/tab-bars-and-navigation-bars-t.ht ml], it looks like a nice job (for a different tutorial, please let us know if we can find it online). I generally start with the Tab Bar Application template, since it does almost all the work of setting up the skeleton. But you'll certainly learn more starting with the minimal, Window-based App template, which is the purpose of a tutorial.
    The easiest way to add a new tab is to find the required controller type in the Library and drag it into the tab bar. I think you want a UINavigationController there, so choose that one from the Controllers section of the Library. You can drag the nav controller icon into either window (i.e. the Tab Bar Controller editor window or the xib window). When dragging into the xib window, you can choose the new controller's position by where you drop it in the small icon tree. (Btw, I might have missed this in the tutorial, but make sure the xib window is displaying two columns with a small icon tree to the left. This is done by setting the View Mode switch to the center position). You can also add tabs by opening the Attributes Inspector when the tab bar controller is selected and clicking "+" under the View Controllers table.
    Once you have your additional nav controllers added, build onto each one the same way you did with tab 2. If that's the only place you were stuck, you should be on your way in a few minutes.
    \- Ray

  • Lost the Google link in my tab bar

    I just recently noticed theat the Google link in my tab bar is gone.  It was to the far right, where a semi-circle arrow now resides.  I added it to my tool bar, but it was nice to be able to just click on it when I woke up my computer.  Could have have unknowingly done something?  I can't seem to find any help via the internet. 

    The Apple Support Communities are an international user to user technical support forum. As a man from Mexico, Spanish is my native tongue. I do not speak English very well, however, I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    The one long field on Safari 6 actually does both, it is an address field and also a search field based on what you enter. So treat it just as you did the separate search field in older versions of Safari when you want to do a search.
    It you open a new blank tab you should notice that it has a magnifying glass icon and says Search Google or enter an address. If you click on the magnifying glass you will get a dropdown menu that allows you to choose among Google, Big and Yahoo for your searches. It will also have a list of previous searches if you have made any.

  • All of a sudden I can no longer open a new tab using either the icon on the tab bar, the keyboard short cut or the File menu option. I can open a new tab ONLY by clicking on a bookmark or link.

    All of a sudden I can no longer open a new tab using either the icon on the tab bar, the keyboard short cut or the File menu option. I can open a new tab ONLY by clicking on a bookmark or link

    This issue can be caused by the Ask<i></i>.com toolbar (Tools > Add-ons > Extensions)
    Your system details show that toolbar in the user agent as AskTbAD2/3.12.2.16749
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Link to tab Bars

    HI,
    I just started using Flex for my application. I am working on
    the front end . I got stuck up with the tab bar. When a user clicks
    on a button on the tab bar. It should go to the new page. Wondering
    if any one could help me out.
    Thanks.

    See this FB 2.0.1 help topic: TabBar control
    &lt;?xml version=&quot;1.0&quot;?&gt;
    &lt;!-- controls\bar\TBarEvent.mxml --&gt;
    &lt;mx:Application xmlns:mx=&quot;
    http://www.adobe.com/2006/mxml&quot;&gt;
    &lt;mx:Script&gt;
    &lt;![CDATA[
    import mx.events.ItemClickEvent;
    import mx.controls.TabBar;
    import mx.collections.ArrayCollection;
    [Bindable]
    private var STATE_ARRAY:ArrayCollection = new
    ArrayCollection([
    {label:&quot;Alabama&quot;,
    data:&quot;Montgomery&quot;},
    {label:&quot;Alaska&quot;,
    data:&quot;Juneau&quot;},
    {label:&quot;Arkansas&quot;,
    data:&quot;LittleRock&quot;}
    private function clickEvt(event:ItemClickEvent):void {
    // Access target TabBar control.
    var targetComp:TabBar = TabBar(event.currentTarget);
    forClick.text=&quot;label is: &quot; + event.label +
    &quot; index is: &quot; +
    event.index + &quot; capital is: &quot; +
    targetComp.dataProvider[event.index].data;
    ]]&gt;
    &lt;/mx:Script&gt;
    &lt;mx:TabBar id=&quot;myTB&quot;
    itemClick=&quot;clickEvt(event);&quot;&gt;
    &lt;mx:dataProvider&gt;
    {STATE_ARRAY}
    &lt;/mx:dataProvider&gt;
    &lt;/mx:TabBar&gt;
    &lt;mx:TextArea id=&quot;forClick&quot;
    width=&quot;150&quot;/&gt;
    &lt;/mx:Application&gt;

  • Firefox opens, and preview shows when hover on the task bar link, but the window will not maximize, or show up at any size on my screen (Windows 7) Help?!

    I am running Windows 7 and just updated Firefox to the 7.0 version. I can open Firefox, in the sense that I can run the application. I can see that it is open because the link shows up on my task bar, and when I hover over it I can see the thumbnail preview - which, incidentally says "You're almost there!"; but I can not open the window! I have tried clicking once on the task bar link, and once again (just in case I was clicking to minimize instead of maximize). I have tried double clicking the shortcuts on my desktop, then the one in my program files, as well as the one in my start menu, and the static one pinned to my task bar. I have tried accessing Firefox from every path available on my computer and I can open it every time, but *never* not even once have I been able to view it on my screen. I can't understand what would cause this and maybe I'm just an idiot but can anybody help me... please? Oh, and I don't know if it makes any difference, but I did try restoring 6.0 and I re installed 7.0 again, all to the same end... Many thanks to anyone willing to help me fix this!

    -> [[Software Update Failed#w_run-as-administrator|Run as Administrator]]
    -> right-click Firefox icon and choose Properties
    * go to Compatibility tab
    * click Use Resolution 640x480 pixels
    * click OK and start Firefox
    -> Firefox will now start but you should be able to change the size of the window.
    * Close Firefox and now Uncheck the 640x480 resolution
    * Start Firefox again and now all should be fine
    Check and tell if its working.

  • Can't open new tabs with double left click on tab bar in FF29.0.1?

    I've always enjoyed how tabs work in FF, mainly with them being on the bottom (which I had to find a work-around for by making the userChrome.css file - the "about:config" modification no longer works) and also being able to double left click on the tab bar to create new tabs.
    With the most recent update, double left clicking on the tab bar no longer has a function, and to create new tabs, I must now middle click. It's not a big deal really, but is there a way to change this back?
    I searched through some options on the "about:config" page, searched "tab" and found an option there: "browser.tabs.opentabfor.middleclick" that seemed promising. I changed the value to "False" but it didn't change anything - in fact, middle clicking still creates new tabs.
    I tried adding a modified function with "leftclick" in it, just to see if it might do anything but, nothing.
    Any other suggestions for restoring the double left click function to create new tabs? Thanks!

    ''Hydrilus wrote:''
    browser.tabs.opentabfor.middleclick
    If set to false, middle-clicking <u>links on web pages</u> opens them in a new window. It probably also affects bookmarks, history entries, and items in the address bar drop-down menu.
    ''Hydrilus wrote:''
    Any other suggestions for restoring the double left click function to create new tabs?
    You need an add-on. Here are two I know about:
    * [https://addons.mozilla.org/firefox/addon/classicthemerestorer/ Classic Theme Restorer]. In the add-on's option window, click the Special tab and check "Tabs toolbar: double click opens a new tab"
    * [https://addons.mozilla.org/firefox/addon/tab-mix-plus/ Tab Mix Plus]. In the add-on's option window, click the Mouse icon, then the Mouse Clicking tab, then the Double-click tab below that. [http://tmp.garyr.net/support/viewpage.php?t=3&p=mouse-clicking The Tab Mix Plus help page] has more details.

  • How do I get the tab bar at the bottom of the screen (right above the task bar) WITHOUT Tab Mix Plus?

    ''locking - please stick with your original thread about this problem - https://support.mozilla.org/en-US/questions/934590''
    I like having the tab bar at the bottom of the screen; I use the task bar AT THE BOTTOM to switch between programs, so I want the the tab bar AT THE BOTTOM to switch between web pages. The only way I've found to get the tab bar at the bottom of the screen is the extension Tab Mix Plus. I used it for a long time, and it worked great.
    Unfortunately, when I recently updated to Firefox 14.0.1, I encountered an error: I could no longer middle-click on a link to open it in a new tab (which I do ALL the time). After some troubleshooting, I found that it was being caused by some incompatibility between Firefox 14.0.1 and Tab Mix Plus; upon removing Tab Mix Plus, my middle-clicking was back to normal.
    But without Tab Mix Plus, I'm back to having the tab bar at the top of the screen. I've searched and searched, and I can't find anything besides Tab Mix Plus that will let me put the tab bar at the bottom of the screen. I've found tons of stuff about the option "tabs on top", but that has to do with putting the tab bar above/below the navigation bar--it's still at the top of the SCREEN either way.
    What can I do?

    Reset the pref <b>layout.scrollbar.side</b> to '0' or set to '2' to place the scroll bar at the default right side.
    See:
    * http://kb.mozillazine.org/layout.scrollbar.side
    * http://kb.mozillazine.org/about%3Aconfig
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]

  • How do I open new tabs at the end of the tab bar?

    Recently switched over from Internet Explorer. One of things I liked about IE was if I adjusted some of the tabbed browsing settings, whenever I opened a link in a new tab, it opened it at the very end of the tab bar. No tab grouping, no opening next to the current tab. Seems like a pretty simple thing, but I just can't figure out how to set that up in Firefox.
    Any suggestions on how to take care of that? Thanks!

    You can set the pref <b>browser.tabs.insertRelatedAfterCurrent</b> to <i>false</i> on the <b>about:config</b> page.
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    *Use the Filter bar at to top of the about:config page to locate a preference more easily.
    *Preferences that have been modified show as bold (user set).
    *Preferences can be reset to the default via the right-click context menu if they are user set
    *Preferences can be changed via the right-click context menu: Modify (String or Integer) or Toggle (Boolean)

  • How do I get FF to focus on a new tab? I right-click and choose "Open in New Tab" and the Tab appears in the Tab bar but I cannot access or see the new page.

    I open FF ver.10. My Home page is Google Search. I use a Bookmark and open, say, Hulu.com. I select a link by right-clicking and choose "Open in New Tab" The little tab in the tab bar opens but I am still viewing the Hulu.com main page and cannot view the new tab.
    This happens even if I use middle-click to open a new tab. It happens with all links on any website I visit.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • How should I do for my Tab Bar icon???(For iPhone 4)

    I have already had the design. However, there are two resolutions:
    30 x 30 pixels
    About 60 x 60 pixels (high resolution)
    Are they the same way to implement?
    What is the implementation there???
    I tried to put the icon file(png file) in my resources section of my Xcode, and then add the file from the attributes window of the tab bar. But It turned out that the image couldn't be shown, it was a square of gray color, no lines, no figures!
    How come? What should I do?
    Thanks a lot!!!

    From the linked document:
    For tab bar icons, create an icon in the following sizes:
    For iPhone and iPod touch:
    About 30 x 30 pixels
    About 60 x 60 pixels (high resolution)
    For iPad:About 30 x 30 pixels
    Note: The icon you provide for toolbars, navigation bars, and tab bars is used as a mask to create the icon you see in your application. It is not necessary to create a full-color icon.
    Use Preview, GraphicConverter, etc....see the Mac App Store for image editors and add an alpha channel to your image...size it, and add it to the bundle.

Maybe you are looking for

  • Missing faces/places after event import from iPhoto to A3

    Hello, I am interested in switching from iPhoto 09 (8.1.1) to Aperture 3. I downloaded the Trial Version yesterday evening. I have a very big iPhoto library (28.000+ pictures) and I did not want to import all of them right now. I wanted just a few ev

  • [Guide] How To Clear the Play Queue

    QuestionHow do I clear the play queue? AnswerPlease note this is an unofficial workaround and not an official solution.  1 - Click New Playlist. 2 - Add only one song to the Playlist. 3 - Whenever you want to clear the Play Queue double click it. Onc

  • I have a MacBook4,1, Lion IOS 10.7.5. Why I can't install Mountain Lion? Thank you

    I would like to install the Mountain Lion IOS im my MacBook4,1, but when I update my software I receive the mensage thal is not possible. Why?

  • Leopard 10.5.4 family pack

    Hi, I have a Powerbook G4 1.5 ghz processor power PC G4, 512 MB ram, OSX Panther Ver 10.3.4 I wish to upgrade to run VMware Fusion to run windows apps I have seen OSX Leopard 10.5.4 family pack and wondered if that is a full and suitable upgrade that

  • Folio Builder import size error

    Hi, I have some Indesign CS6 files in 960 x 640 which I want to import as multiple articles in my new created Folio. In Folio Builder I created a user defined Folio with the size 960 x 640. When I start to import I receive an error: "Size of the Arti