Skip to content

Issues regarding icalendarAgenda inside Window #8

@eagleCoders

Description

@eagleCoders

I am posting my code and the screen shots to explain my problem
public class DashboardContainer extends StackPane{
private StackPane mainPane;
private BorderPane borderPane;
private GridPane gridPane;
private TilePane taskPane, metroUiPane;
private ObservableList dashboardNodes;
private StackPane centerPane;
private Stage primaryStage;

public DashboardContainer(Stage primaryStage) {}

/**
*
*/
private void init(){
mainPane = new StackPane();

	TilePane titlePane = new TilePane();
	titlePane.setCenterShape(true);
	titlePane.setAlignment(Pos.CENTER);
	titlePane.getStyleClass().add("title");
	Text welcomeText = new Text("Welcome to Healthcare System");
	welcomeText.setId("welcome-text");
	titlePane.getChildren().add(welcomeText);
	borderPane.setTop(titlePane);
	
    gridPane = new GridPane();
    mainPane.getChildren().add(gridPane);
	gridPane.getStyleClass().add("dashboard-grid");
	ColumnConstraints columnLeft = new ColumnConstraints();
	columnLeft.setPercentWidth(5.0);
	ColumnConstraints columnCenter = new ColumnConstraints();
	columnCenter.setPercentWidth(75.0);
	ColumnConstraints columnRight = new ColumnConstraints();
	columnRight.setPercentWidth(20.0);
	gridPane.getColumnConstraints().addAll(columnLeft, columnCenter, columnRight);
	
	RowConstraints topRow = new RowConstraints();
	topRow.setPercentHeight(5);
	RowConstraints centerRow = new RowConstraints();
	centerRow.setPercentHeight(90);
	RowConstraints bottomRow = new RowConstraints();
	bottomRow.setPercentHeight(5);
	gridPane.getRowConstraints().addAll(topRow, centerRow, bottomRow);

	
	initDashboardPane();
	initTaskPane();
	
	borderPane.setCenter(mainPane);
}

/**
 * 
 */
private void initTaskPane(){
    taskPane = new TilePane();
	taskPane.setOrientation(Orientation.VERTICAL);
	taskPane.getStyleClass().add("dashboard-contents");
	GridPane.setConstraints(taskPane, 2, 0);
	GridPane.setRowSpan(taskPane, GridPane.REMAINING);
	gridPane.getChildren().add(taskPane);
	
}

/**
 * 
 */
private void initDashboardPane(){
	centerPane = new StackPane();
	Group mainGroup = new Group();
	centerPane.getChildren().add(mainGroup);

	GridPane.setConstraints(centerPane, 1, 1);
	gridPane.getChildren().add(centerPane);
	centerPane.setAlignment(Pos.CENTER);
	metroUiPane = new TilePane(Orientation.HORIZONTAL);
	metroUiPane.setHgap(2.0);
	metroUiPane.setVgap(2.0);
	metroUiPane.getStyleClass().add("dashboard-contents");
	dashboardNodes = metroUiPane.getChildren();
	centerPane.getChildren().add(metroUiPane);
}

private void generateTiles(){
	Button patientSatisfactionDashboard = new Button("PatientSatisfactionDashboard");
	patientSatisfactionDashboard.setOnAction(e->{
		Window window = new Window("PatientSatisfactionDashboard");
		ICalendarAgenda agenda = new ICalendarAgenda(new VCalendar());
		
		window.getContentPane().getChildren().add(agenda);
        window.getLeftIcons().add(new CloseIcon(window));
        window.getRightIcons().add(new MinimizeIcon(window));
        window.setPrefSize(getPrefWidth(), getPrefHeight());
        getChildren().add(window);
	});
	Button patientMonitoringDashboard = new Button("PatientMonitoringDashboard");
	Button bedManagementDashboard = new Button("BedManagementDashboard");
	Button erStatusDashbaord = new Button("ERStatusDashboard");
	Button queueManagementDashboard = new Button("QueueManagementDashboard");
	metroUiPane.getChildren();
	metroUiPane.getChildren().addAll(patientMonitoringDashboard, patientSatisfactionDashboard, erStatusDashbaord, bedManagementDashboard,queueManagementDashboard);
}

}

screen shot 2017-04-29 at 3 51 14 pm

screen shot 2017-04-29 at 3 51 04 pm

It seems the agenda creation popup is apearing in seprate stage. please do help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions