ObjectListField change selected line color

The default selected line is blue, is it possible to change this?  I tried

graphics.setBackgroundColor (Color.LIGHTGREY);

Which changes not the background, but I don't see how to change the color of the selected line.

This is the skeleton of the class we use trying to hightlight the target ourselves line:

private class XXXXListField extends {ListField
Special list field designed to ensure that the field gets updated when the focus moves
This is necessary because we try to display lines of development of the background colors.
Private boolean _inFocus = false;
public XXXXListField() {}
Super();
}

public int moveFocus (amount int, int status, time int) {}
This.Invalidate (getSelectedIndex ());
Return super.moveFocus (amount, status, time);
}

Called when the field receives focus.
{} public void onFocus (int direction)
hasFocus = true;
_inFocus = true;
super.onFocus (branch);
}

Called when a field loses focus.
public void onUnfocus() {}
hasFocus = false;
_inFocus = false;
super.onUnfocus ();
This.Invalidate (getSelectedIndex ());
}

public boolean isFocus() {}
Return _inFocus;
}

}

Tags: BlackBerry Developers

Similar Questions

  • Help needed Illustrator - apparently is no longer able to change the line color of the open/closed contours.

    Hi, I'm new (very) to Illustrator so please go easy. I'm in a bit of a pickle and would very much help to get out!

    I created an illustration using the pen tool, making a series of paths open and closed (below), all stroked them in the color purple. I then used the Shapebuilder Ranger a few areas of intersection.

    Later, I started using live paint to color block the form contained in the paths, however, when I try to change the outline of these 'forms' that won't happen.

    I tried releasing the images of live paint and changing the line color of the sketch (i.e. opening and closing original tracks), but this does not work either.

    Any advice?

    Thanks in advance,

    Will be

    screen grab.png

    Inside a live paint group you must activate the coloring of the traits.

    To do this, double-click the live paint tool.

    When you expand a live paint group, fills and strokes is separated. You get a group that has all the traits and another which has fillings.

    You will need to inspect it in the layers panel, and then select the Group of traits in order to change.

  • Change the line color of the standard SQL report

    Hello

    I'm trying to follow this post to change the color of a line in the APEX SQL report. Change the color of line - report SQL Oracle APEX

    It is a little outdated and trying to figure out how to get to this page: http://img7.imageshack.us/img7/4782/columntemplate.jpg 4.2 APEX where I can put under condition of background color.


    I use Theme 13 (inheritance) and make a copy of the report area. Published, but could not find an equivalent section of this screenshot of the apex 3.1.

    Any help appreciated.

    William Wallace says:

    I'm trying to follow this post to change the color of a line in the APEX SQL report. Change the color of line - report SQL Oracle APEX

    It is a little outdated and trying to figure out how to get to this page: http://img7.imageshack.us/img7/4782/columntemplate.jpg 4.2 APEX where I can put under condition of background color.

    I use the theme 13 (legacy)

    Ugh.

    and make a copy of the report area. Published, but could not find an equivalent section of this screenshot of the apex 3.1.

    This suggests that you look at the definition of region page, or even simply the definition of region model. What you need here is a copy of the report model.

    1. go in Home > Application Builder > Application > shared components > models.

    2. Select theme 13 theme filter, the Filter Type reports and click OK.

    3. create a copy of the Standard report model by using the icon copy in the list.

    4. Select the new report template and edit it as shown in the thread linked to above, paying special attention to the content of the second post. (It is of generic column template definition page that contains the section in the screenshot).

  • Re: changing Selected row color flex2 datagrid

    Hai,

    I'm flex1.5 migration to Flex 2, I need to change the colur of selected row in datagrid I used dg.setpropertiesAt (dg, selectedIndex, "backgroundColor:0xFF000")

    method in flex 1.5 What is the alternative method to change the color of line

    Emissions of the grid of Flex1.5

    Picture0002.png

    Thanks in advance

    You use styles;

    dg.setStyle ('selectionColor', 0xcccccc);

    You can do this in code or by using a style sheet.

    Andrew

  • Is - it possible to change the line color of an anchor to another?

    Im working on an object that has 4 anchor points, I would like to keep in the black outline for 2/3 segments of the object, but I would like to change the color between two anchor points (so 1/3 segments)...

    Thanks in advance!

    Herms-ra,

    A simple way would be to directly select the segment in question (click on the section between the Anchor Points with the direct Selection tool), then Ctrl / Cmd + C + F + X + F to create a new right path and to give this new path different color.

  • Change the line color of Webhelp

    Hello new useful friends,

    Just try to change the color of some lines of the webhelp. I have changed one of the lines (see diagram below) using the brilliant "Skinny on Skins' help, but now also need to change the one above it. Is this possible?

    Untitled-1.png

    Thank you!

    You must change the release of webhelp

    Go to webhelp output folder and open the whskin_mbars.htm file in Notepad.

    Search

    style = "" border-top: 1px solid red; ""

    in case you want to make the border as red or any color you want.

    Thank you

    Praful

  • Selected color change of line to the table in the ADF

    Hi all

    I'm new to ADF. I use Jdeveloper 11.1.2.4 version.

    My requirement is when I chose several lines, color of the line should be changed to red.

    I dragged and dropped ViewObject of the Department in the form of a table on a page and RowSelection to the multiple. I need color of selected lines/lines to be past to red. How can achieve us?

    I wrote the method selectionListner on the table, in which I get the details of the selected line. How can we apply color to selected lines.

    Thanks in advance.

    Best regards

    Claude Reynier.

    How about you create a variable temporary level VO with a default null value.

    Now on the selection listener retrieves the current line and change the value of this variable 'Y '.

    In the inlineStyle write an EL, if the value of this variable is 'Y' changes the color.

    Thank you

  • How to change the background color of a line when you have the selection of cells in tableview?

    I have a tableview and I chose the selection of cells. How can I change the background color of a line, if I select a cell?

    The usual example using:

    import javafx.application.Application;
    import javafx.beans.binding.Bindings;
    import javafx.beans.binding.BooleanBinding;
    import javafx.beans.property.SimpleStringProperty;
    import javafx.beans.property.StringProperty;
    import javafx.collections.FXCollections;
    import javafx.collections.ListChangeListener.Change;
    import javafx.collections.ObservableList;
    import javafx.collections.ObservableSet;
    import javafx.css.PseudoClass;
    import javafx.geometry.Insets;
    import javafx.scene.Group;
    import javafx.scene.Scene;
    import javafx.scene.control.Label;
    import javafx.scene.control.SelectionMode;
    import javafx.scene.control.TableColumn;
    import javafx.scene.control.TablePosition;
    import javafx.scene.control.TableRow;
    import javafx.scene.control.TableView;
    import javafx.scene.control.cell.PropertyValueFactory;
    import javafx.scene.layout.VBox;
    import javafx.scene.text.Font;
    import javafx.stage.Stage;
    
    public class RowHighlightedCellSelectionTableViewSample extends Application {
    
        public static void main(String[] args) {
            launch(args);
        }
    
        @Override
        public void start(Stage stage) {
            Scene scene = new Scene(new Group());
            scene.getStylesheets().add(getClass().getResource("selected-row-table.css").toExternalForm());
            stage.setTitle("Table View Sample");
            stage.setWidth(450);
            stage.setHeight(500);
    
            final Label label = new Label("Address Book");
            label.setFont(new Font("Arial", 20));
    
            final TableView table = new TableView<>();
            final ObservableList data =
                FXCollections.observableArrayList(
                    new Person("Jacob", "Smith", "[email protected]"),
                    new Person("Isabella", "Johnson", "[email protected]"),
                    new Person("Ethan", "Williams", "[email protected]"),
                    new Person("Emma", "Jones", "[email protected]"),
                    new Person("Michael", "Brown", "[email protected]")
            );
    
            table.getSelectionModel().setCellSelectionEnabled(true);
            table.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);
    
            final PseudoClass selectedRowPseudoClass = PseudoClass.getPseudoClass("selected-row");
            final ObservableSet selectedRowIndexes = FXCollections.observableSet();
            table.getSelectionModel().getSelectedCells().addListener((Change change) -> {
                selectedRowIndexes.clear();
                table.getSelectionModel().getSelectedCells().stream().map(TablePosition::getRow).forEach(row -> {
                    selectedRowIndexes.add(row);
                });
            });
    
            table.setRowFactory(tableView -> {
                final TableRow row = new TableRow<>();
                BooleanBinding selectedRow = Bindings.createBooleanBinding(() ->
                        selectedRowIndexes.contains(new Integer(row.getIndex())), row.indexProperty(), selectedRowIndexes);
                selectedRow.addListener((observable, oldValue, newValue) ->
                    row.pseudoClassStateChanged(selectedRowPseudoClass, newValue)
                );
                return row ;
            });
    
            TableColumn firstNameCol = new TableColumn<>("First Name");
            firstNameCol.setMinWidth(100);
            firstNameCol.setCellValueFactory(new PropertyValueFactory<>("firstName"));
    
            TableColumn lastNameCol = new TableColumn<>("Last Name");
            lastNameCol.setMinWidth(100);
            lastNameCol.setCellValueFactory(new PropertyValueFactory<>("lastName"));
    
            TableColumn emailCol = new TableColumn<>("Email");
            emailCol.setMinWidth(200);
            emailCol.setCellValueFactory(new PropertyValueFactory<>("email"));
    
            table.setItems(data);
            table.getColumns().addAll(firstNameCol, lastNameCol, emailCol);
    
            final VBox vbox = new VBox();
            vbox.setSpacing(5);
            vbox.setPadding(new Insets(10, 0, 0, 10));
            vbox.getChildren().addAll(label, table);
    
            ((Group) scene.getRoot()).getChildren().addAll(vbox);
    
            stage.setScene(scene);
            stage.show();
        }
    
        public static class Person {
    
            private final StringProperty firstName;
            private final StringProperty lastName;
            private final StringProperty email;
    
            private Person(String fName, String lName, String email) {
                this.firstName = new SimpleStringProperty(fName);
                this.lastName = new SimpleStringProperty(lName);
                this.email = new SimpleStringProperty(email);
            }
    
            public String getFirstName() {
                return firstName.get();
            }
    
            public void setFirstName(String fName) {
                firstName.set(fName);
            }
    
            public StringProperty firstNameProperty() {
                return firstName ;
            }
    
            public String getLastName() {
                return lastName.get();
            }
    
            public void setLastName(String fName) {
                lastName.set(fName);
            }
    
            public StringProperty lastNameProperty() {
                return lastName ;
            }
    
            public String getEmail() {
                return email.get();
            }
    
            public void setEmail(String fName) {
                email.set(fName);
            }
    
            public StringProperty emailProperty() {
                return email ;
            }
        }
    }
    

    And then the selected line - table.css:

    .table-line-cell: {selected row

    -fx-background-color: lightskyblue;

    }

  • Change selected current line color in the ADF rich client table

    Hi all..
    I want to change the current selected line from the default ADF with another color color.
    I'm not very good in javaScript.
    can someone help me

    Published by: user9519817 on August 30, 2008 03:57

    User,

    You don't need Javascript to do this. Have a read of the article 18 of the Guide of the Oracle User Interface Developer Web for Oracle Application Development Framework (found [url http://download.oracle.com/otn_hosted_doc/jdeveloper/11/doc/b31973.pdf] here for more information on creating a custom look. Unfortunately, the documentation for the selectors to use, who should be in a help topic JDev titled "" Selectors for ADF Faces components of counting merger"do not exist yet :(. However, you can check here [url http://www.oracle.com/technology/products/adf/adffaces/11/doc/skin-selectors.html#] for this information.

    Selectors that may be of interest:

    . AFTableCellDataSelectedColor:alias
    . AFTableCellDataSelectedBandedColor:alias
    . AFTableCellDataSelectedInactiveColor:alias
    . AFTableCellDataSelectedBandedInactiveColor:alias

    Best,

    John

  • Change the background color for a selected item in a ListView?

    Hello

    No idea how to change the color of tbackground of a ListView selected item to blue for a different color?

    I tried wrapping the ListView in a container, then by changing the background color of the container, but it does not work. And ListView, nor the ListItemComponent takes a background attribute.

    Thank you

    Oh, I did that last night.
    Thus, in the container for StandardItem, add this line:

     background: ListItem.selected || ListItem.active ? Color.create("#4D9EC9") : Color.Transparent
    

    and onTriggerred of the signal, add two lines:

    // for highlighting
    listView.select(indexPath, true);
    
    // for clearing highlight
    listView.clearSelection();
    

    PS: listView is the id of the ListView

    ListView {
        id: listView
    ....
    
  • ObjectListField selected lines show white on the Curve 8530

    I was wondering if anyone else has experienced this problem.  I looked through the forums, but couldn't find any information about it.  I use an ObjectListField, and when you scroll through the items, the line of the selected item becomes all white - if you do not see the text in the line.  Only, this seems to happen on the 8530 (on the Simulator and the physical device).  From a user point of view, it's extremely confusing.

    At first, I thought it could have been something that I was doing wrong, I had created a new class that inherited from the ObjectListField where I was Manager the drawListRow() method myself, but I ripped this custom class is instantiated and used an ObjectListField upward, with the same results described above.

    I know I can shoot myself the selected line in the drawListRow() method explicitly, but then I lose the native handling/styling for some other BlackBerry models - such as the nice blue gradient storm, "BOLD", etc...

    Any ideas on that?  Is this a known problem?  Is there one solution other than of coloring the line myself?

    Thank you in advance!

    T

    It seems unlikely that this would be a bug.

    Make sure that you have not replaced a method that you shouldn't have.

    Do you use some kind of custom on the 8530 theme?

  • How to change the line width of underline and color (on my MacBook or iPad)

    When you use my MacBook or iPad, how can I change the line width and color when you use the underline tool or the pencil tool?

    Hi Backpacker48,

    .. using the underline tool or the pencil tool

    I'm fairly certain that you may have about the comment tools.

    To highlight the tool, there is no option to change the line width (thickness).  But you can change the color and opacity.  In addition, you can change the style in the desktop application.

    For the Pencil tools or drawing freehand, you pouvez change the width of the line (thickness) in addition to the color and opacity.

    The key here is to change the properties of an existing comment, once it is added to a page.

    Acrobat Reader DC (desktop application) on your MacBook

    1. Right click on the brand of underscore or existing pencil.
    2. Select properties from the context menu.
    3. Select appearance (if not already displayed).
    4. Specify the value of a property (color, opacity, Style or thickness).

    Acrobat Reader for iOS (mobile application) on your iPad

    1. Tap the existing underlining or drawing freehand.
    2. Select a property (color, opacity, thickness) in the menu that appears.
    3. Specify the value of the property.

    Once you change a property (for example, thickness, color, opacity), the mobile app will remember the new value of type specific comment for next time.

    Please let us know if you have any additional questions.

  • Change the background color in TableView selection

    Hi, does anyone know how to change the blue background color of a selected line in a TableView? Thank you in advance.

    If you look at caspian.css, you will see that the background color is affected by - fx-accent. So the best thing to do is to change the value of - fx-focus:

    view .table {-fx-accent: red ;}}

    Although I would advise against the inline styles, you can also do:

    TableView tv = new TableView();
    tv.setStyle ("focus - fx -: Red ;"); ")

  • Change the background color of line indicator

    I'm doing an indicator of string with a black background or make it to which the channel indicator is transparent

    Thank you

    You can change the background color of the control a chain using the paint tool. Choose View > Tool Palette.

    Select the icon below a brush.

    Right-click on the background area of your control of the chain.

    A color mixer will appear - select a color block or the T in the upper right corner to transparent.

  • Change the highlight color when you select files or folders

    Hello
    Need assistance to change the highlight color when you select files or folders in Windows Explorer / my document.
    I use Windows Vista with SP2.  I tried to go to control-online personalization panel => color & appearance of the window and changing the settings.  However, I can't change the intensity of the highlights that I see it clearly.  A little blind colours, I would like to change the color to make it darker so that I could clearly see when an item is selected.
    I tried open classic appearance for color options properties more-online advance but did not find an appropriate under "Item" option that I could change.  I tried the step "Selected items" under ' point:' but that only applies when I double click on a file or folder.
    Any advice would be greatly appreciated.
    The

    Salvation of

    Sorry to hear that the option is good enough for you.  I've done some research more and that you still do not see a way to change what you're asking.  As I said before, others have mentioned this issue as well.  If I come across a way to do it, I'll post it here.

    In the meantime, I'm going to Mark this post as answer whose answer is:

    Currently, there is no way to make this change in Windows Vista.

    Thanks for posting on Microsoft Answers.
    Ken
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for