當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。