Package at.bestsolution.efxclipse.runtime.controls.fx2

Examples of at.bestsolution.efxclipse.runtime.controls.fx2.FX2TabPaneSkin


   */
  @Override
  public void start(Stage primaryStage) throws Exception {
    FX2TabPane p = new FX2TabPane();
    p.setSkin(new FX2TabPaneSkin(p));
    FX2Tab tab = new FX2Tab();
    tab.setCloseVetoHandler(new Callback<Tab, Boolean>() {
     
      @Override
      public Boolean call(Tab param) {
        return Boolean.TRUE;
      }
    });
    tab.setText("Hello World");
    p.getTabs().add(tab);
   
    Scene s = new Scene(p,200,200);
    primaryStage.setScene(s);
    primaryStage.show();
View Full Code Here


import at.bestsolution.efxclipse.runtime.core.Util;

public class FXTabFactory {
  public static Tab createTab() {
    if( Util.isFX2() ) {
      return new FX2Tab();
    } else {
      return new FX8Tab();
    }
  }
View Full Code Here

  /* (non-Javadoc)
   * @see javafx.application.Application#start(javafx.stage.Stage)
   */
  @Override
  public void start(Stage primaryStage) throws Exception {
    FX2TabPane p = new FX2TabPane();
    p.setSkin(new FX2TabPaneSkin(p));
    FX2Tab tab = new FX2Tab();
    tab.setCloseVetoHandler(new Callback<Tab, Boolean>() {
     
      @Override
      public Boolean call(Tab param) {
        return Boolean.TRUE;
      }
    });
    tab.setText("Hello World");
    p.getTabs().add(tab);
   
    Scene s = new Scene(p,200,200);
    primaryStage.setScene(s);
    primaryStage.show();
  }
View Full Code Here

    }
  }
 
  public static TabPane createTabPane() {
    if( Util.isFX2() ) {
      FX2TabPane tab = new FX2TabPane();
      tab.setSkin(new FX2TabPaneSkin(tab));
      return  tab;
    } else {
      FX8TabPane tab = new FX8TabPane();
      return tab;
    }
View Full Code Here

   * @see javafx.application.Application#start(javafx.stage.Stage)
   */
  @Override
  public void start(Stage primaryStage) throws Exception {
    FX2TabPane p = new FX2TabPane();
    p.setSkin(new FX2TabPaneSkin(p));
    FX2Tab tab = new FX2Tab();
    tab.setCloseVetoHandler(new Callback<Tab, Boolean>() {
     
      @Override
      public Boolean call(Tab param) {
View Full Code Here

  }
 
  public static TabPane createTabPane() {
    if( Util.isFX2() ) {
      FX2TabPane tab = new FX2TabPane();
      tab.setSkin(new FX2TabPaneSkin(tab));
      return  tab;
    } else {
      FX8TabPane tab = new FX8TabPane();
      return tab;
    }
View Full Code Here

TOP

Related Classes of at.bestsolution.efxclipse.runtime.controls.fx2.FX2TabPaneSkin

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.