Clickable labelfield

Is there a way to create a clickable labelfield? Or would I need to use a listfield even when there are only two entries?

I would like a clickable label that covers the width of the container full, despite a short text.

Use a movement Manager

{Label
gestureHandlers:]
{TapHandler}
onTapped: dowhatever
}
]
}

Tags: BlackBerry Developers

Similar Questions

  • Pop-up menu is coming to press the long of the label field

    I have a screen where I have a clickable labelfield. For this I am the touchEvent() substitution. Now on the screen, I add two menus. So when I touch the labelfield for a long time, it shows the pop-up menu with these two menu that I don't want. How to hide this pop-up menu?

    This happens as I'm back super.touchEvent () for (overridden) method of key event.

    Help, please.

    I changed the code from menu addition like that and it works:

    public void makeMenu( Menu menu, int instance )
        {
            super.makeMenu( menu, instance);
    
            if(instance == Menu.INSTANCE_DEFAULT)
            {
                 menu.add(new MenuItem("xxx", 1, 1) {
                    public void run() {
    
                    }
                }); 
    
                 menu.add(new MenuItem("yyy", 2, 2) {
                    public void run() {
    
                    }
                });
            }
    
        }
    

    This line makes the difference here:

    if(instance == Menu.INSTANCE_DEFAULT)
    
  • Make a label clickable e-mail?

    I saw a post about this somewhere and I will probably start, but for the life of me I can't find the post, or remember how to do this.

    Basically, I want to make a LabelField that contains a web URL or email, clickable.  Someone tell me something?

    You can override some methods of a label field, but I prefer to use this: href field

    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.Font;
    import net.rim.device.api.ui.FontFamily;
    import net.rim.device.api.ui.Graphics;
    
    public class HrefField extends Field {
    
    private String content;
    private Font fieldFont;
    private int fieldWidth;
    private int fieldHeight;
    private boolean active = false;
    private int backgroundColour = 0xffffff;
    private int textColour = 0x333333;
    private int maskColour = 0xBBBBBB;
    
    public HrefField(String content) {
    super(Field.FOCUSABLE);
    this.content = content;
    fieldFont = defaultFont();
    fieldWidth = fieldFont.getAdvance(content)+2;
    fieldHeight = fieldFont.getHeight() + 3;
    }
    
    public void setColours(int backgroundColour, int textColour, int maskColour) {
    this.backgroundColour = backgroundColour;
    this.textColour = textColour;
    this.maskColour = maskColour;
    invalidate();
    }
    
    public void setBackgroundColour(int backgroundColour){
    this.backgroundColour = backgroundColour;
    invalidate();
    }
    
    public void setTextColour(int textColour){
    this.textColour = textColour;
    invalidate();
    }
    
    public void setMaskColour(int maskColour){
    this.maskColour = maskColour;
    invalidate();
    }
    
    public void setFont(Font fieldFont){
    this.fieldFont = fieldFont;
    }
    
    public int getPreferredWidth() {
    return fieldWidth;
    }
    
    public int getPreferredHeight() {
    return fieldHeight;
    }
    
    protected void layout(int arg0, int arg1) {
    setExtent(getPreferredWidth(), getPreferredHeight());
    }
    
    protected void paint(Graphics graphics) {
    
    if (active) {
    graphics.setColor(maskColour);
    graphics.fillRect(0, 0, fieldWidth, fieldHeight);
    } else {
    graphics.setColor(backgroundColour);
    graphics.fillRect(0, 0, fieldWidth, fieldHeight);
    }
    
    graphics.setColor(textColour);
    graphics.setFont(fieldFont);
    graphics.drawText(content, 1, 1);
    graphics.drawLine(1, fieldHeight-2, fieldWidth-2, fieldHeight-2);
    }
    
    protected boolean navigationClick(int status, int time) {
    fieldChangeNotify(1);
    return true;
    }
    
    protected void onFocus(int direction) {
    active = true;
    invalidate();
    }
    
    protected void onUnfocus() {
    active = false;
    invalidate();
    }
    
    public static Font defaultFont() {
    try {
    FontFamily theFam = FontFamily.forName("SYSTEM");
    return theFam.getFont(net.rim.device.api.ui.Font.PLAIN, 14);
    } catch (ClassNotFoundException ex) {
    ex.printStackTrace();
    }
    return null;
    }
    }
    
  • change the text of labelfield

    Hi friends

    I have a main srceen containing a labelfield which is clickable, act as a link. clicking on a popup screen will be pushed that contains the checkbox field

    When you click this box, pop the popup screen

    now, I want to change the text in the label field while poping the pop-up screen.

    I used setText() method but this fact does not

    Please give some advice

    Thanks in advance

    I coded just a quick test using a LabelField, and the text is changed when a checkbox is clicked, on the same screen.  To get the text in the LabelField to refresh, I have an invalidate against the screen.  I suspect that the reason that your getActiveScreen () .invalidate () does not work is that by the time wherever you call getActiveScreen(), the ActiveScreen is not the screen with the LabelField, but Menu or your PopupScreen.

    As an easy solution that I am confident will get this job for you, you can pass a reference to the call screen and the LabelField with the PopupScreen.  Then update the LabelField and deliver the invalidate(), when the box is checked in your code of PopupScreen.  It should work.

  • How to make a web address (text) clickable?

    If I copy and paste a Web site address as a message into Yahoo mail, it is not clickable. t wasn't OK on Windows XP, Windows 8.

    There is usually a bar of buttons with buttons for formatting such as Bold and Italic text just above the text area where you compose and edit the text of the message.

    This toolbar can also have a button to activate a clickable hyperlink text link (look for a string like button).
    You can select the link text and click on this button to activate the link into a clickable hyperlink.

    If you can not find the button, and then move all the to check the ToolTip of each (for example to insert a hyperlink).

  • The URL I type in Talk21 is not clickable. They are Chrome and IE.

    Hi guys,.

    When I'm composing a new mail in my account Talk21.com , the url is not clickable. This is not the case if I open Talk21 in Chrome or IE. I tried 3 different computers laptop (Windows 7) and a desktop computer (XP) does not. I am running Firefox 21.0

    Thank you for your time.

    Kind regards

    Neil.

    There is usually a bar of buttons with buttons for formatting such as Bold and Italic text just above the text area where you compose and edit the text of the message.

    This toolbar can also have a button to activate a clickable hyperlink text link (look for a string like button).

    You can select the link text and click on this button to activate the link into a clickable hyperlink.

    If you can not find the button, and then move all the to check the ToolTip of each (for example to insert a hyperlink).

  • Some of the links are not clickable in firefox on windows 7

    When I log-in to www.traffup.net some links inside my members area no longer not clickable.
    I do not have a toolbar and the problem also happens with links that are not near the top.
    When I click on links nothing happens. Here is the source code of some of the links that do not work

    <ul id="dropdown">
    	<li class="lbl">Howdy Thomas</li>
    
    	<li><a class="main">Websites</a>
    		<ul>
    		<li><a href="http://traffup.net/mysites/">My Websites</a></li>
    		<li><a href="http://traffup.net/listing/">Add New Website</a></li>
    		<li><a href="http://traffup.net/favourites/">Favourites</a></li>
    		</ul>
    

    I think the problem is this kind of link:
    < a class = 'hand' > < /a > Web sites

    These appear on the page. If everything would work and then clicking them should open a drop-down list with the other 3 links, but it does not work.

    Firefox doesn't seem to know how to handle.
    But the same version of firefox does work on Vista.

    I also tried the version 17 of the channel Update Beta and Aurora-> same problem

    I tried the Mode safe mode-> same problem

    Any help is appreciated...

    He now resolved by resetting firefox...

    somehow the javascript code to manipulate the href didn't work

    Hopefullly I will not have to open another thread to retrieve my settings and other things (I don't even have an idea of what is lost during the reset)

  • not clickable top-level items in each web site how to fix this?

    the top-level items in each web site, that I may not click measure. When I put the cursor on the items, it does not change to the hand icon. for example if I go on you tube you tube icon or the search button on the top is not click able. He works for a little while when I use firefox in safe mode, but then it stops working again, how to fix this?

    This problem can be caused by that extended the Yahoo! toolbar or extension of Babylon also well down and covers the top of the browser window and therefore links and buttons in this part of the screen not clickable.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • Firefox displays wrong email address clickable on yahoo mail sign in field when I type the first letter. the Explorer it gets right.age

    When I type the first few letters in the sign in box on the Yahoo Mail sign in page via my Firefox browser last edition (Windows Vista) my clickable shows of Hotmail address in the drop-down list instead of my Yahoo address, (both begin with the same word.) so I then need always typing in my correct Yahoo address to connect. Internet Explorer gets this right, making me think it's a browser problem.

    I tried the settings in Yahoo and all in Firefox Tools/Options, I think. Thanks for any help!

    • Click on the (empty) input field on the web page to open the drop-down list
    • Select an entry in the drop-down list
    • Press the DELETE key (on a Mac: shift + delete) to remove it.

    You can also delete passwords that are stored here:

    • Tools > Options > Security: passwords: "saved passwords" > "show passwords".
  • Online banking site now displays the page of connection in text alone; on the other computer it always shows the page with images and clickable - is - it a solution?

    Previously when I logged my INGdirect Bank online account, the window connection come showing images and clickable hotspots. Window connection changed recently, to a text only version. On two different computers using Firefox, the connection returns to the previous version, with images and clickable hotspots. I do not know to have done anything to change my settings in Firefox or on the website of the Bank. Because it seems to be located on this computer, I tried to download the latest version of Firefox, but didn't get any change, connection always comes back to the text-only format.

    Try to clear your browser's cache.

    Tools > clear recent history... - details and of course Cache hit only is selected, and then select all and click the clear now button.

  • Clickable options do not work once the page loads completely?

    I have just updated (Java, Flash, etc) and when there is a pop up or clickable option one on a Web site (such as to equip something to an avatar or something in a pop-up window), all I get is a "#" at the end of my URL and it moves me at the top of the page.

    The only time where this does not occur is when the page is still loading (loading the page is always, I have full access to the page to do anything normally. By clicking on the elements to be equipped or clicking on the pop-up window work). Whenever the page is completely loaded, she answer sometimes.

    I tried to clear my cache, cookies and all other personal data except modules (which did not affect his performances before). I always had this problem.

    On my addons, it says that my Java Console is incomparable with my FF, but this did not affect the performance of my FF.

    To avoid confusion: http://kb.mozillazine.org/JavaScript_is_not_Java

    Make sure that you are not blocking JavaScript.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions of the origin of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • Mini iPad iOS 9.3 / links are not clickable in my emails or on safari

    Hello, today the links are not clickable in my emails or on safari on my iPad mini iOS 9.3. I have reset, but it did not change anyting :-( Could you please help me with this? Thank you

    It is a known problem with 9.3 and right now, Apple has not issued a fix. Workarounds include using another browser. People have reported that Opera and puffin both work but I have not experienced with them to know for sure. (and honestly what works for some doesn't work for others)

    There are also some success reported by the people who are in settings, safari, advanced and disabling java script.

    Ultimately the people just have to wait for a fix to come, and there is no timetable for when that will happen.

  • Include clickable links in keynote registered 6.5

    How can I include clickable links in 6.5 Keynote slide show recorded on video?

    recorded on video?

    If you are asking how to include hypertext links in a Quicktime exported from Keynote, then this feature is not available in Keynote.

    If this isn't what you're asking, you need to provide more details.

  • Since switching to Firefox, links pasted into an e-mail are no longer blue and clickable. How to fix this?

    Since switching to Firefox, links pasted into an e-mail are no longer blue and clickable. What can I do to make them work again?

    There are usually a toolbar button in the editor to put a clickable hyperlink text link (look for a string like button).

    You can select the text and click on this button to activate the link into a clickable hyperlink.

    If you can not find the button, and then move all the to check the ToolTip of each.

  • UNC links put into evidence, but are not clickable

    Hello.

    I have Skype latest version 6.20.0.104 installed. Default browser is FF.

    The UNC (for example \\server\share\facepalm.jpg) links, users send to the group or to another are not clickable. He worked in earlier versions - your default browser tried to open the link, but now it does not work.

    It was very convenient and useful for sharing screenshots w/o transferring to the internet inside the office.

    Any ideas how to fix? Probably some sort of registry patch, that will say to the system 'open this type of source in the browser '.

    Thank you.

    Well, support suggests to install the old version (6.14) where he works for now.

    http://Web.archive.org/Web/20140413131237/http://download.Skype.com/MSI/SkypeSetup_6.14.0.104.msi

    Probably, someday he will fix it.

Maybe you are looking for

  • Country/language printer Officejet Pro 8620 settings - how to change the language to English?

    Country/language printer Officejet Pro 8620 settings - how tdo Ichange the language to English? Thank you! Paul

  • How do I find the email address for my C8180 so I can print from my iPad 2?

    I'm trying to implement my C8180 printer to print with my iPad2. He is shown as a supported printer. I wonder at the email address of the printer, but I was unable to locate him. Any suggestions on where to find it if there is?

  • Reminder of unread message on blackBerry Smartphones

    I would like to know if there is anyway that I can have a reminder a few minutes (except the red light), if I miss a call or receive a new message.  the problem is that if I'm in my car and do not 'feel' the vibrations, the first time, I don't know t

  • document won't delete

    A document in my hp 3100 don't delete or cancel, and it's the only thing that prints.  How can I get rid of him?  I just changed the black ink cartridge, and the blocked document is the one with black and blue and yellow lines, which shows that the c

  • Recover a file word (help)

    I forced myself to factory reset my acer v3 772-g because he got a boot error and starting couldt (bad_user_config) or something like that and now I do not have my 2 files important word (homework) I checked windows.old and nothing here and yes it is