Package at.bestsolution.efxclipse.runtime.panels

Examples of at.bestsolution.efxclipse.runtime.panels.GridLayoutPane


   
    @Override
    public void addItem(WLayoutedWidget<MPartSashContainerElement> widget) {
      Node n = (Node) widget.getStaticLayoutNode();
     
      GridLayoutPane p = getWidget();
      if( getDomElement().isHorizontal() ) {
        p.setNumColumns(p.getNumColumns()+1);
      }
     
      GridData gd = toGridData(widget.getDomElement().getPersistedState());
      GridLayoutPane.setConstraint(n, gd);
      p.getChildren().add(n);
    }
View Full Code Here


    }

    @Override
    public void addItems(List<WLayoutedWidget<MPartSashContainerElement>> list) {
      List<Node> nodeList = new ArrayList<Node>();
      GridLayoutPane p = getWidget();
     
      for( WLayoutedWidget<MPartSashContainerElement> w : list ) {
        Node n = (Node) w.getStaticLayoutNode();
       
        GridData gd = toGridData(w.getDomElement().getPersistedState());
        GridLayoutPane.setConstraint(n, gd);
        nodeList.add(n);
      }
     
      if( getDomElement().isHorizontal() ) {
        p.setNumColumns(p.getNumColumns()+nodeList.size());
      }
     
      p.getChildren().addAll(nodeList);
    }
View Full Code Here

    }

    @Override
    public void addItems(int index, List<WLayoutedWidget<MPartSashContainerElement>> list) {
      List<Node> nodeList = new ArrayList<Node>();
      GridLayoutPane p = getWidget();
     
      for( WLayoutedWidget<MPartSashContainerElement> w : list ) {
        Node n = (Node) w.getStaticLayoutNode();
       
        GridData gd = toGridData(w.getDomElement().getPersistedState());
        GridLayoutPane.setConstraint(n, gd);
        nodeList.add(n);
      }
     
      if( getDomElement().isHorizontal() ) {
        p.setNumColumns(p.getNumColumns()+nodeList.size());
      }
     
      p.getChildren().addAll(index,nodeList);
    }
View Full Code Here

    }

    @Override
    public void removeItem(WLayoutedWidget<MPartSashContainerElement> widget) {
      Node n = (Node) widget.getStaticLayoutNode();
      GridLayoutPane p = getWidget();
      p.setNumColumns(p.getNumColumns()-1);
      p.getChildren().remove(n);
    }
View Full Code Here

      return getWidget();
    }

    @Override
    protected GridLayoutPane createWidget() {
      GridLayoutPane p = new GridLayoutPane();
      p.setMarginWidth(0);
      p.setMarginHeight(0);
      p.setHorizontalSpacing(0);
      p.setVerticalSpacing(0);
      return p;
    }
View Full Code Here

    this.cancelButton = cancelButton;
  }

  @Override
  protected Node createDialogArea() {
    GridLayoutPane b = new GridLayoutPane();
    b.setHorizontalSpacing(20);
    b.setNumColumns(2);
    b.getStyleClass().add("messagedialog-" + type.name().toLowerCase());
   
    ImageView view = new ImageView();
    view.getStyleClass().add("messagedialog-icon");
    b.getChildren().add(view);
   
    Label l = new Label(message);
    l.getStyleClass().add("messagedialog-message");
   
    b.getChildren().add(l);
    return b;
  }
View Full Code Here

TOP

Related Classes of at.bestsolution.efxclipse.runtime.panels.GridLayoutPane

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.