Set the color for emphasis on the interactive whiteboard to HorizontalFieldManager

I have an array of horizontal fields that contains a bitmap and a labelfield each. The entire line should be clickable who worked until now, but how do I set the color to accent properly? At the moment the onFocus and onUnfocus functions are completely ignored.

It's the definition of my table:

for (int i = 0; i < listSize; i++) {
        logInDetailManager[i] = new HorizontalFieldManager(
                Manager.USE_ALL_WIDTH | Field.FOCUSABLE) {

            protected void onFocus(int direction) {
                super.onFocus(direction);
                background_color = Color.RED;
                invalidate();
            }

            protected void onUnfocus() {
                invalidate();
                background_color = Color.GREEN;
            }

And that's how I add my horizontal fields:

logInDetailManager[i].setChangeListener(this);
logInDetailManager[i].add(dummyIcon[i]);
logInDetailManager[i].add(new LabelField("hello"));
logInDetailManager[i].add(new NullField(Field.FOCUSABLE));
add(logInDetailManager[i]);

Thanks for your help!

AAH it got already...

If someone has trouble with this too: I removed onFocus() and onUnfocus and set the background color in the paint so the color of the entire line method is modified when:

protected void paint(Graphics graphics) {

    graphics.setBackgroundColor(isFocus() ? Color.RED : Color.GREEN);
    graphics.clear();
    invalidate();
    super.paint(graphics);
}

Tags: BlackBerry Developers

Similar Questions

  • How to set different color for the table column header

    Can I set different colors for the 4 following as being attached.

    -color of the header text

    -the head of the column of the background color

    -color of the text of the content

    -color of background content

    The value of the cluster - 2, -2 to define all of the cells,

    Then go back and the cluster the value-1, -2 to simply set the line header.

    (If you also had a column of row headers, then -2,-1 would set them.  Course the upper left corner which is the intersection of the column header and row header will change with any of them.)

  • dual display will not work with the interactive whiteboard

    I am a teacher with my Pavilion entertainment pc with vista to connect to an interactive whiteboard in the classroom. It has stopped working for no apparent reason and the Whiteboard does not recognize laptop. I used the customization - to connect to the external display, but without success. I'm sure it has something to do with the resolution but don't know how to fix it and go back to how it was. Why just change one day himself?

    Hi Dobbo64,

    Try the following steps.

    This could be a problem with the display drivers. You update the display drivers and check if the problem persists.

    Download and install the latest drivers to display on the computer:

    http://Windows.Microsoft.com/en-us/Windows-Vista/update-a-driver-for-hardware-that-isn ' t-work correctly

    If updating the drivers does not help then, try the system restore on your computer.
    http://Windows.Microsoft.com/en-us/Windows-Vista/what-is-system-restore

    Previous post: the result.

    Bindu S -Microsoft Support
    [If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message.] [Marking a post as answer, or relatively useful, you help others find the answer more quickly.]

  • Setting different colors for different cells in a list

    Hello

    I was wondering if we could select the two cells in a list and have two different colors for each of them.

    For example, if I select 1 and 9 cells in a list, can I have the first being green and 9th to be red?

    Hello

    Pls check it.

    http://forums.Adobe.com/message/2216445#2216445

    It's for the datagrid control, but you can do the same for the list. Let me know if you have any problem.

    with respect,

    Mayeul Singh Bartwal

  • Can I set default colors for forms generated in first Pro CC?

    I'm working on some video of the highlight where I need to generate an ellipse on each clip to highlight a player. I would use a yellow/yellow, the sweetness of 20%, the ellipse 8 thickness every time, but by default, PP gives me a ugly green/blue combination, and I need to change the colors of the indoor/outdoor, sweetness and thickness whenever I add a clip and generate an ellipse.

    Is there a way to set a default indoor/outdoor color, thickness and smoothness setting for each new form generated so that I don't have to repeat these steps?

    You cannot change the default behavior of the effect, but you can save it as a preset.  It's easy.

    or...

    You could even turn the transparent video Clip into an asset in your project bin.

    That might be more convenient and more accessible than a copy / paste routine.

    Make a new sequence. > transparent Video Clip > Apply and design your Ellipse effect. (Do not apply framing key)

    This sequence is now framed an asset that just waiting to be used and key aims.

  • How to set the background color for the Webworks Menu?

    Hi all

    I have developed a web application that uses the emulator to ripple and Blackberry Webworks SDK 2.3.1.5.In I added the Menu items on the Blackberry Menu button... It works well... It contains the background color by default for Menu (Black)... Here, I want to change the background color of the Menu... Please help me to change the background color... Thank you very much..

    With respect,

    Marimuthu_P

    I don't think that this is possible.  The WebWorks API allows you to add menu items to your application does not provide the ability to change the background color by default of the menu.

    This API is actually an extension of Java built into the SDK WebWorks.  The source code because it's open source, available here: https://github.com/blackberry/WebWorks/tree/master/api/menu/src/main/java/blackberry/ui/menu

    It is based on the Java class "MenuItem", which as you can see it does not provide methods or properties to set the color:

    http://www.BlackBerry.com/developers/docs/7.1.0api/NET/rim/device/API/UI/MenuItem.html

  • How to set the color palette for the system colors for the visible record of all controls on the web page?

    The color scheme by default in Windows 7 (x 36, Premium family edition) offers a combination of a white background for the application windows and black text for information that are there.   But being a visually handicapped person, I find the white background rather irritating to the eyes, and I'd rather have a black background, with white text, as this combination gives me a comfortable environment to work on the computer for long periods.  When I set these colors according to my convenience, using the link ' Customize > window color > color and appearance of windows "and by changing only the colours of the just 'Windows' choice in the dialog box, I think the colors of several other controls, in particular the"Drop Down Lists","Framed"and"Buttons"are also changed, often to be the same thus making the information unreadable such controls.  As these color changes seem to be rather random and apparently 'unpredictable', I cannot set the application window, according to my convenience.  I'm not able to get any useful information from the link "Help and Support" of the STARTUP dialog, about the dependencies of the combinations of colors of controls, or the link dialog box "Customize > window color > color and appearance of windows ' lists all controls that are normally used in any typical web page.  After spending a lot of time and effort - and therefore actually "lose" my time at the computer - through several tests, with all giving them negative results, I am at a loss to get this problem is solved.  Furthermore, I can't go back to the default of origin either.  So my computer is idle for a very large part of the day.

    I would be really grateful to all users or personal assistance MS, who take the time to provide me with an answer to this problem and help me use the computer in a fruitful way.  I offer my sincerest thanks in advance to anyone who offers me a complete solution.

    Hello

    I suggest that you go through the Microsoft article and check if it helps.
  • How to set the color for background ChoiceBox point to ChoiceBox with css?

    How to set the color for background ChoiceBox point to ChoiceBox with css?

    I need to change the backgound color list items.

    I tried with the following code, but it's not help to:

    {.context-menu .choice-box

    -fx-background-color: Red;

    }

    .choice-box .menu-item {}

    -fx-background-color: red;

    }

    In Java 8, either of your selectors should work.

    In Java 7 (JavaFX 2.2), you need of the following workaround:

    #choice-box-menu-item {
         -fx-background-color: red ;
    }
    
  • How can I set different background color for the slider?

    Hello
    I want to set a different color for track Slider, slider track is spitted into two sections by slider-button.
    I want to put a left gray, the right of a white.
    Under css only changes the background of the entire track, but how I can change different background color for the slider?
    Any suggestion?
    .slider {
        -fx-border-width: 0;
    }
    .slider *.track {
        -fx-background-color:white;
        -fx-background-insets:  0, 1;
        -fx-border-color: #faf0e6;
        -fx-border-width: 1;
        -fx-border-style:solid;
        -fx-progress-color:yellow;
        -fx-border-radius: 20;
    }
    .slider.knobStyle:focused .knob {
        -fx-effect: dropshadow( three-pass-box , red , 5 , 0.5 , 0 , 0 );
    }
    .slider.knobStyle:unfocused .knob {
        -fx-effect: dropshadow( three-pass-box , red , 5 , 0.5 , 0 , 0 );
    }
    .slider .thumb {
         -fx-background-color:rgb(224,225,226);
         -fx-background-repeat:stretch;
         -fx-background-size:stretch;
         -fx-background-position:center top;
         -fx-background-image:url("../images/volume_ball.png");
            -fx-padding: 10;
    }

    I don't know why I can't get the node of the track, track has always set to null and the thumb or the other.

    After that the cursor was displayed on an active scene are you doing research?

    (ex.: after you have added the slider to a scene, the scene for scene, then called stage.show ())

  • How to set the color for a particular column in the table in advance?

    How can we set the color for a particular column in advance table based on a few feteched of vo in process request query parameter?

    Hello

    Reference http://oraclearea51.com/blog/dynamically-color-the-rows-in-an-oa-framework-advanced-table.html

    and prev thread. Can color us the lines in the column of a table

    It will be useful.

    Kind regards
    GYAN

  • For the printing of P.O.D.: how to set the Adobe RGB color space

    Hello and thank you in advance,

    (I use InDesign CS 5.5 on a Mac).

    I need set the appropriate PDF export settings

    To print a book on demand, with color drawings inside on the text pages.

    The instructions in Mandarin that I could find, say this:

    'Submit your graphics in color space Adobe RGB, integrated withprofile.'

    The big Question: how should I do that?

    I know enough to start with

    File-> Adobe PDF Presets-> print quality

    Then I click on the Menu 'output '.

    and this is where I start to get lost.

    for

    Color conversion...

    I think I should choose "convert to the Destination.

    for

    Destination

    I think it should be "Adobe RGB (1998).

    Now to incorporate this profile.

    What should I choose in virtue:

    Profile Inclusion policy?

    And is there anything else I should do to get these inside good printing color images?

    Thanks again,

    IthacaAuthor (aka ZorbaTheGeek, but the forum wouldn't let me connect with my old screen name)

    Virtually all digital printing is done via PostScript or PDF. In the first case, the PDF file is converted to use viat PostScript to Acrobat and in the latter case, the PDF file is sent directly to the digital printer.

    In both cases, CMYK is actually the real destination color space. There is no true RGB printer! What is true is that non-PostScript / non PDF (laser printers generally low range and inkjet printers as well as specialized sublimation photo printers inkjet and dye) take RGB via drivers and that convert to CMYK, but I don't think that's what you deal with.

    Our recommendation to Adobe for best printing results, whether for offset or digital, is to export PDF into PDF/X-4 with no color conversion using the default color CMYK (CMYK SWOP) space or if the contrary view of your print service provider, among other CMYK color spaces provided by Adobe or the print service provider themselves. FWIW, more peripheral to digital print on demand, have settings to fully emulate the SWOP CMYK printing requirements. The use of PDF/X-4 in this way allows the existing color in your document InDesign is properly tag in the output PDF file and converted to CMYK RIP the device level digital printing.

    (It may also help us if you can provide a pointer to the explicit instructions provided by your print service provider.)

    -Dov

  • Set the color of the text for &amp; quot; Topics &amp; quot; DTC?

    I want to use a related topics text control at Design time. The fonts options to set the name of the font, bold, etc. and highlight, but not the color of the font. Is there a way to change the font color? To use a style as Hotspots in expansion? Or can I manually add something in the code?

    Hi, Margaret.

    If it's any help, the color is the fourth attribute that you can set for the property are the order of related topics. For example:

    There is more information here:

    http://msdn.Microsoft.com/en-us/library/ms644677 (vs.85) .aspx
    http://msdn.Microsoft.com/en-us/library/ms644681 (vs.85) .aspx

    Pete

  • How can I set the background color for a photo book to be between photos as well as on the perimeter?

    I am trying to create a book in iPhoto. I can set the background color, but it doesn't seem to work between photos that appears white by default. How can I make the background color of work between photos?

    You can not

    but to see exactly what you always get an overview of your book before ordering

    LN

  • By default the setting classic blackBerry for the e-mail reply text color

    Hello

    Can someone tell me how to change the default color for the answers to my signature and email of the BLUE to BLACK?

    Currently, I don't see the option "format" each individual email response.  I don't know why the default color for the text and the signature is BLUE, but I would really change in BLACK.  Any help would be appreciated.

    Thank you

    interloper1969

    Don't know how I forgot this before, but what follows is the expected result

    Compose a new text of the e-mail, black
    Reply or forward the e-mail text, blue

    It is not editable, so I'll share your thoughts internally for further consideration

    Thank you!
    Ty

  • How to set the method of color for the logo

    Hi all,

    I would ask which is the best way to define the method of color for a logo.

    I would make a logo for the device and any support and so I want to design a logo with colors that

    will always be the same in all supported and the device.

    To achieve this how can I do?
    Who are the best guidelines to achieve that?

    I am awating your kind response.

    Bye!

    gigi71 @ wrote:

    I would make a logo for the device and any support and so I want to design a logo with colors that

    will always be the same in all supported and the device.

    This is why color management was invented. Without color management, which is probably 99.8 percent of all software and peripherals out there, there is no way it will never look the same. You have no control over this, and you will never have.

    Create the logo in sRGB and use a screen properly calibrated and profiled (and good). That's how it will look on all properly color managed platforms, if at least you have a reference of how it should look like.

    EDIT: Yes, Norman, Lab is an independent reference device as such, but does nothing to actually how it will display on all no color management devices out there.

Maybe you are looking for

  • Questions of the toolbar after the update

    Double locking wire.Please continue here: [940362/questions/940362] Several problems with the new update I need fixed. The cursor is more in the navigation toolbar in a new tab. Once the cursor is in the navigation toolbar, hitting tab once is no lon

  • How can I get rid of the flowery banner that Firefox automaticall put at the top of my browser?

    When I downloaded the latest version of Firefox (8.O) a flowered headband came with it. This banner obscures the text which makes it difficult to work with links. It seems not only on the home page of Firefox, but on what I chose to look on the web.

  • Tecra A4 PTA40: Need of drivers and utilities for Vista Toshiba

    can someone tell me if the drivers and software from Toshiba (ConfigFree, Bluetooth Stack, Hotkeys, help,...) is available for Windows Vista? Thank you

  • Media Player does not recognize the CD drive.

    My windows media player stopped to recognize the CD-RW/DVD drive installed in my laptop Dell Inspiron 8600. I checked the service manager, it says: Windows cannot start this hardware device because its information of configuration (in the registry) i

  • microphone headset no longer works

    I can't record with microphone headset. Microphone is ok. I am on a network with my daughter. I inadvertently removed my Linksys module from the USB port while the power was on. Would he have my problem?