Package javafx.scene.control

Examples of javafx.scene.control.ListView


            if (o instanceof String) {
                String query = (String) o;
                return ListViews.containsRow(getListView(query), valueToMatch);
            }
            else if (o instanceof ListView) {
                ListView tableView = (ListView) o;
                return ListViews.containsRow(tableView, valueToMatch);
            }
            return false;
        }
View Full Code Here


     * Identifies which elements are shown in the list currently.
     * @return list of indices of all elements that are fully visible in the
     * list.
     */
    List<Long> shown() {
        final ListView lv = (ListView) listViewWrap.getControl();
        final Bounds viewArea = lv.getBoundsInLocal();

        List<Long> res = new GetAction<List<Long>>() {

            @Override
            @SuppressWarnings("unchecked")
            public void run(Object... parameters) {
                final List<Long> res = new LinkedList<Long>();

                listViewWrap.as(Parent.class, Node.class).lookup(
                                     ListCell.class, new LookupCriteria<ListCell>() {

                    @Override
                    public boolean check(ListCell control) {
                        if (control.isVisible() && control.getOpacity() == 1.0 ) {
                            Bounds controlBounds = lv.sceneToLocal(
                                    control.localToScene(control.getBoundsInLocal()));
                            if (viewArea.contains(controlBounds)) {
                                Long index = new Long(control.getIndex());
                                    res.add(index);
                                    return false;
View Full Code Here

    FlowPane gamePane = new FlowPane(Orientation.VERTICAL);
   
    Label gameLabel = new Label("Liste des parties :");
   
    _gameListView = new ListView();
    _gameListView.getSelectionModel().selectedItemProperty()
        .addListener(new ChangeListener<String>() {
          public void changed(ObservableValue<? extends String> ov,
              String old_val, String new_val) {
            _controller.execute("roomDisconnect",
                new Object[] { _user });
            _action = "join";
            _game = new_val.split(" ")[0];
            _adresse = new_val.split(" ")[1];
            refreshTimeLine.stop();
            close();
          }
        });

    FlowPane playerPane = new FlowPane(Orientation.VERTICAL);
   
    Label playerLabel = new Label("Liste des joueurs connect�s");
    _playerListView = new ListView();

    gamePane.getChildren().addAll(gameLabel, _gameListView);
    borderPane.setCenter(gamePane);
   
    playerPane.getChildren().addAll(playerLabel, _playerListView);
View Full Code Here

    FlowPane.setMargin(trumpLabel, in);
   
    gameScoreLabel = new Label();
    FlowPane.setMargin(gameScoreLabel, in);
   
    tchatListView = new ListView();
    tchatListView.setMaxHeight(300);
    FlowPane.setMargin(tchatListView, in);
   
    tchatTextField = new TextField();
    tchatTextField.setMaxHeight(50);
View Full Code Here

    FlowPane.setMargin(trumpLabel, in);
   
    gameScoreLabel = new Label();
    FlowPane.setMargin(gameScoreLabel, in);
   
    tchatListView = new ListView();
    tchatListView.setMaxHeight(300);
    FlowPane.setMargin(tchatListView, in);
   
    tchatTextField = new TextField();
    tchatTextField.setMaxHeight(50);
View Full Code Here

TOP

Related Classes of javafx.scene.control.ListView

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.