Package javafx.scene.control

Examples of javafx.scene.control.Control


  public <T> HBox beanTF(String path, String selectionPath, String itemPath,
      final Class<?> itemType, final int maxChars,
      Class<? extends Control> controlType, final String restictTo,
      T... choices) {
    HBox box = new HBox();
    Control ctrl;
    if (controlType == CheckBox.class) {
      CheckBox cb = new CheckBox();
      // POJO binding magic...
      personPA.bindBidirectional(path, cb.selectedProperty());
      ctrl = cb;
View Full Code Here


  }
 
  public List<Node> createButtonList(){
    ArrayList<Node> result = new ArrayList<Node>();
    for (final FormCreator form: forms){
      Control createShowFormButton = form.createShowFormButton();
      createShowFormButton.setDisable(!form.isEnabled());
      createShowFormButton.setTooltip(form.getTooltip());
     
      if (!form.isEnabled()){/*workaround disabled button must be wrapped in split pane to show tooltip https://javafx-jira.kenai.com/browse/RT-28850*/
        SplitPane wrapper = new SplitPane();
        wrapper.getItems().add(createShowFormButton);
        createShowFormButton = wrapper;
View Full Code Here

                    ta.getStyleClass().add("center-content-area");
                    ta.setAlignment(Pos.TOP_LEFT);
                    return ta;
                }
            } else if (style == DialogStyle.INPUT) {
                Control inputControl = null;
                userInputResponse = new SimpleObjectProperty<T>();
                if (inputChoices == null || inputChoices.isEmpty()) {
                    // no input constraints, so use a TextField
                    final TextField textField = new TextField();
                    textField.setPrefWidth(66);
View Full Code Here

      stringBuilder.append(" styleClass='" + n.getStyleClass() + "'");
    }
   
    // scan children
    if (n instanceof Control) {
      Control lControl = (Control)n;
      Skin lSkin = lControl.getSkin();
      stringBuilder.append(" skin=" + (lSkin == null ? "null" : lSkin.getClass().getSimpleName()) );
      if (lSkin instanceof SkinBase) {
        SkinBase lSkinBase = (SkinBase)lSkin;
        for (Object lChild : lSkinBase.getChildren()) {
          printHierarchy(stringBuilder, (Node)lChild, offset + 1);
View Full Code Here

      stringBuilder.append(" styleClass='" + n.getStyleClass() + "'");
    }
   
    // scan children
    if (n instanceof Control) {
      Control lControl = (Control)n;
      Skin lSkin = lControl.getSkin();
      stringBuilder.append(" skin=" + (lSkin == null ? "null" : lSkin.getClass().getSimpleName()) );
      if (lSkin instanceof SkinBase) {
        SkinBase lSkinBase = (SkinBase)lSkin;
        for (Object lChild : lSkinBase.getChildren()) {
          printHierarchy(stringBuilder, (Node)lChild, offset + 1);
View Full Code Here

  public <T> HBox beanTF(String path, String selectionPath, String itemPath,
      final Class<?> itemType, final int maxChars,
      Class<? extends Control> controlType, final String restictTo,
      T... choices) {
    HBox box = new HBox();
    Control ctrl;
    if (controlType == CheckBox.class) {
      CheckBox cb = new CheckBox();
      // POJO binding magic...
      personPA.bindBidirectional(path, cb.selectedProperty());
      ctrl = cb;
View Full Code Here

TOP

Related Classes of javafx.scene.control.Control

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.