当前位置: 首页>>代码示例>>Java>>正文


Java TitledPane.setExpanded方法代码示例

本文整理汇总了Java中javafx.scene.control.TitledPane.setExpanded方法的典型用法代码示例。如果您正苦于以下问题:Java TitledPane.setExpanded方法的具体用法?Java TitledPane.setExpanded怎么用?Java TitledPane.setExpanded使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在javafx.scene.control.TitledPane的用法示例。


在下文中一共展示了TitledPane.setExpanded方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onActionAddProjectToDailySection

import javafx.scene.control.TitledPane; //导入方法依赖的package包/类
private void onActionAddProjectToDailySection(ProjectModel model) {
    LoggerFacade.INSTANCE.debug(this.getClass(), "On action add Project to DailySection"); // NOI18N
    
    final TitledPane titledPane = new TitledPane();
    titledPane.setText("(1) " + model.getTitle()); // NOI18N
    titledPane.setUserData(model);
    titledPane.setExpanded(false);
    
    final ProjectContentView view = new ProjectContentView();
    final ProjectContentPresenter presenter = view.getRealPresenter();
    presenter.configure(model);
    titledPane.setContent(view.getView());
    
    vbDailySectionContent.getChildren().add(0, titledPane);
    
    this.onActionEnsureTitledPaneIsVisible(titledPane);
}
 
开发者ID:Naoghuman,项目名称:Incubator,代码行数:18,代码来源:DailySectionContentPresenter.java

示例2: addRow1

import javafx.scene.control.TitledPane; //导入方法依赖的package包/类
private void addRow1(final Pane content, final Booking be) {
	final VBox box = new VBox();
	final HBox box0 = new HBox();
	final HBox box1 = new HBox();
	final HBox box2 = new HBox();
	box.setFillWidth(true);
	box0.setFillHeight(true);
	box1.setFillHeight(true);
	box2.setFillHeight(true);
	addCheckInNote(box0, be);
	addCheckOutNote(box1, be);
	addSpecialRequestNote(box2, be);
	box.getChildren().addAll(box0, box1, box2);
	final TitledPane pane = new TitledPane("Notes", box);
	pane.setExpanded(false);
	content.getChildren().add(pane);

}
 
开发者ID:DrBookings,项目名称:drbookings,代码行数:19,代码来源:BookingDetailsController.java

示例3: createGreenhouses

import javafx.scene.control.TitledPane; //导入方法依赖的package包/类
public void createGreenhouses(TitledPane tp, Settlement settlement) {
 	VBox v = new VBox();
    v.setSpacing(10);
    v.setPadding(new Insets(0, 20, 10, 20));

 	List<Building> buildings = settlement.getBuildingManager().getACopyOfBuildings();

	Iterator<Building> iter1 = buildings.iterator();
	while (iter1.hasNext()) {
		Building building = iter1.next();
    	if (building.hasFunction(FunctionType.FARMING)) {
//        	try {
        		Farming farm = (Farming) building.getFunction(FunctionType.FARMING);
            	Button b = createGreenhouseDialog(farm);
            	v.getChildren().add(b);
//        	}
//        	catch (BuildingException e) {}
        }
	}


    tp.setContent(v);//"1 2 3 4 5..."));
    tp.setExpanded(true);

 }
 
开发者ID:mars-sim,项目名称:mars-sim,代码行数:26,代码来源:MarsNode.java

示例4: createConferences

import javafx.scene.control.TitledPane; //导入方法依赖的package包/类
private Accordion createConferences() {
    Accordion accordion = new Accordion();
    final TitledPane india = createConference("JavaOne India", 17.385371, 78.484268, "http://steveonjava.com/wp-content/uploads/2011/03/javaone-india.png");
    accordion.getPanes().add(india);
    accordion.getPanes().add(createConference("OSCON", 45.515008, -122.693253, "http://steveonjava.com/wp-content/uploads/2011/05/oscon.png"));
    accordion.getPanes().add(createConference("Devoxx", 51.206883, 4.44, "http://steveonjava.com/wp-content/uploads/2010/07/LogoDevoxxNeg150.png"));
    accordion.getPanes().add(createConference("J-Fall", 52.219913, 5.474253, "http://steveonjava.com/wp-content/uploads/2011/11/jfall3.png"));
    accordion.getPanes().add(createConference("JavaOne SF", 37.775057, -122.416534, "http://steveonjava.com/wp-content/uploads/2010/07/JavaOne-2010-Speaker.png"));
    accordion.getPanes().add(createConference("Jazoon", 47.382079, 8.528137, "http://steveonjava.com/wp-content/uploads/2010/04/jazoon.png"));
    accordion.getPanes().add(createConference("GeeCON", 50.064633, 19.949799, "http://steveonjava.com/wp-content/uploads/2011/03/geecon.png"));
    india.setExpanded(true);
    accordion.setExpandedPane(india);
    accordion.expandedPaneProperty().addListener((ObservableValue<? extends TitledPane> ov, TitledPane t, TitledPane t1) -> {
        if (t1 != null) {
            ((ConferencePane) t1).navigateTo();
        }
    });
    return accordion;
}
 
开发者ID:ewidgetfx,项目名称:ewidgetfx,代码行数:20,代码来源:ConferenceTour.java

示例5: makeCheckBoxTitledPane

import javafx.scene.control.TitledPane; //导入方法依赖的package包/类
public TitledPane makeCheckBoxTitledPane (String title, Node content, boolean isExpanded) {
    TitledPane pane = new TitledPane(title, content);
    CheckBox checkBox = new CheckBox();
    checkBox.setSelected(false);

    pane.setGraphic(checkBox);
    pane.expandedProperty().bindBidirectional(checkBox.selectedProperty());
    // Node arrow = pane.lookup(".arrow");
    // arrow.setVisible(false);
    pane.setExpanded(isExpanded);
    return pane;
}
 
开发者ID:tomrom95,项目名称:GameAuthoringEnvironment,代码行数:13,代码来源:BasicUIFactory.java

示例6: addStartTitledPane

import javafx.scene.control.TitledPane; //导入方法依赖的package包/类
protected void addStartTitledPane () {
    TitledPane titledPane = new TitledPane();
    titledPane.setText("Transition before choice (on start)");
    titledPane.setAnimated(true);

    // load fxml
    try {
        FXMLLoader loader = new FXMLLoader(new File(TRANSITION_PANE_FXML).toURI().toURL());

        //set controller
        TransitionPaneController controller = new TransitionPaneController(this.entry, 0);
        this.controllerList.add(controller);
        loader.setController(controller);

        Pane rootPane = loader.load();//FXMLLoader.load(new File(fxmlPath).toURI().toURL());

        //initialize tab controller
        controller.init(stage, null, rootPane);

        titledPane.setContent(rootPane);
        titledPane.setExpanded(true);
    } catch (IOException e) {
        e.printStackTrace();
        System.exit(1);
    }

    accordion.getPanes().add(titledPane);
}
 
开发者ID:leeks-and-dragons,项目名称:dialog-tool,代码行数:29,代码来源:TransitionTabController.java

示例7: addChoiceTitledPane

import javafx.scene.control.TitledPane; //导入方法依赖的package包/类
protected void addChoiceTitledPane (int index) {
    TitledPane titledPane = new TitledPane();
    titledPane.setText("Choice " + index);
    titledPane.setAnimated(true);

    // load fxml
    try {
        FXMLLoader loader = new FXMLLoader(new File(TRANSITION_PANE_FXML).toURI().toURL());

        //set controller
        TransitionPaneController controller = new TransitionPaneController(this.entry, index);
        this.controllerList.add(controller);
        loader.setController(controller);

        Pane rootPane = loader.load();//FXMLLoader.load(new File(fxmlPath).toURI().toURL());

        //initialize tab controller
        controller.init(stage, null, rootPane);

        titledPane.setContent(rootPane);
        titledPane.setExpanded(true);
    } catch (IOException e) {
        e.printStackTrace();
        System.exit(1);
    }

    accordion.getPanes().add(titledPane);
}
 
开发者ID:leeks-and-dragons,项目名称:dialog-tool,代码行数:29,代码来源:TransitionTabController.java

示例8: initializeDetailsArea

import javafx.scene.control.TitledPane; //导入方法依赖的package包/类
private void initializeDetailsArea() {
    LoggerFacade.getDefault().info(this.getClass(), "Initialize [Details] area"); // NOI18N
    
    final LinkPaneView view = new LinkPaneView();
    presenter = view.getRealPresenter();
    
    final TitledPane titledPane = presenter.getTitledPane();
    titledPane.setExpanded(Boolean.TRUE);
    titledPane.setCollapsible(Boolean.FALSE);
    VBox.setVgrow(titledPane, Priority.ALWAYS);
    
    vbLinkDetails.getChildren().add(titledPane);
}
 
开发者ID:Naoghuman,项目名称:ABC-List,代码行数:14,代码来源:LinkPresenter.java

示例9: addRight

import javafx.scene.control.TitledPane; //导入方法依赖的package包/类
public void addRight(String title, Node n) {
	AnchorPane.setBottomAnchor(n, 0d);
	AnchorPane.setTopAnchor(n, 0d);
	AnchorPane.setLeftAnchor(n, 0d);
	AnchorPane.setRightAnchor(n, 0d);
	TitledPane t = new TitledPane(title, new AnchorPane(n));
	t.setExpanded(lists.getChildren().size() < 3); 
	lists.getChildren().add(t);		
}
 
开发者ID:salimvanak,项目名称:myWMS,代码行数:10,代码来源:PojoForm.java

示例10: reset

import javafx.scene.control.TitledPane; //导入方法依赖的package包/类
private void reset() {
    TitledPane pane = accordion.getExpandedPane();
    if (pane != null) {
        pane.setExpanded(false);
    }
    pane = accordion.getPanes().get(0);
    pane.setExpanded(true);
}
 
开发者ID:teamfx,项目名称:openjfx-8u-dev-tests,代码行数:9,代码来源:AccordionApp.java

示例11: reset

import javafx.scene.control.TitledPane; //导入方法依赖的package包/类
private void reset() {
    TitledPane pane = accordion.getExpandedPane();
    if (pane != null) {
        pane.setExpanded(false);
    }
    pane = accordion.getPanes().get(1);
    pane.setExpanded(true);
}
 
开发者ID:teamfx,项目名称:openjfx-8u-dev-tests,代码行数:9,代码来源:AccordionApp.java

示例12: constructDimensions

import javafx.scene.control.TitledPane; //导入方法依赖的package包/类
/**
 * Method to construct the dimensions configurables.
 */
private void constructDimensions(){ 
   DimensionsPanel dimensionsPanel = new DimensionsPanel( configuration );
   
   dimensionsPane = new TitledPane( "Dimensions", dimensionsPanel );
   dimensionsPane.setExpanded( true );
   add( dimensionsPane, 0, 1 );
}
 
开发者ID:DanGrew,项目名称:JttDesktop,代码行数:11,代码来源:BuildWallConfigurationPanelImpl.java

示例13: constructJobPoliciesPane

import javafx.scene.control.TitledPane; //导入方法依赖的package包/类
/**
 * Method to construct the {@link JobPolicyPanel} and add it to this {@link GridPane}.
 */
private void constructJobPoliciesPane(){
   GridPane policiesContent = new JobPolicyPanel( configuration );
   
   jobPoliciesPane = new TitledPane( "Job Policies", policiesContent );
   jobPoliciesPane.setExpanded( false );
   add( jobPoliciesPane, 0, 2 );
}
 
开发者ID:DanGrew,项目名称:JttDesktop,代码行数:11,代码来源:BuildWallConfigurationPanelImpl.java

示例14: constructFontItemPane

import javafx.scene.control.TitledPane; //导入方法依赖的package包/类
/**
 * Method to construct a {@link TitledPane} for the {@link Font}s.
 */
private void constructFontItemPane(){
   FontsPanel fontContent = new FontsPanel( configuration );
   
   fontPane = new TitledPane( "Fonts", fontContent );
   fontPane.setExpanded( true );
   add( fontPane, 0, 3 );
}
 
开发者ID:DanGrew,项目名称:JttDesktop,代码行数:11,代码来源:BuildWallConfigurationPanelImpl.java

示例15: constructColourItemPane

import javafx.scene.control.TitledPane; //导入方法依赖的package包/类
/**
 * Method to construct the {@link TitledPane} for configuring {@link Color}s.
 */
private void constructColourItemPane() {
   ColoursPanel coloursPanel = new ColoursPanel( configuration );
   
   colourPane = new TitledPane( "Colours", coloursPanel );
   colourPane.setExpanded( true );
   add( colourPane, 0, 4 );
}
 
开发者ID:DanGrew,项目名称:JttDesktop,代码行数:11,代码来源:BuildWallConfigurationPanelImpl.java


注:本文中的javafx.scene.control.TitledPane.setExpanded方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。