Example usage for java.awt CardLayout next

List of usage examples for java.awt CardLayout next

Introduction

In this page you can find the example usage for java.awt CardLayout next.

Prototype

public void next(Container parent) 

Source Link

Document

Flips to the next card of the specified container.

Usage

From source file:UserInterface.CDC.VARESReportingJPanel.java

private void viewDetailsjButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_viewDetailsjButtonActionPerformed
    // TODO add your handling code here:
    int selectedRow = summaryjTable.getSelectedRow();

    if (selectedRow < 0) {
        JOptionPane.showMessageDialog(null, "Please select a State");
        return;/*  ww  w  . j  ava  2 s  .co m*/
    }
    StateNetwork state = (StateNetwork) summaryjTable.getValueAt(selectedRow, 0);
    VARESCityReportingJPanel panel = new VARESCityReportingJPanel(workContainer, userAccount, business,
            cdcEnterprise, cdcOrg, state);
    workContainer.add("VARESCityReportingJPanel", panel);
    CardLayout layout = (CardLayout) workContainer.getLayout();
    layout.next(workContainer);

}

From source file:userInterface.StateAdminRole.DecisionCartJPanel2.java

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
    DecisionChartJPanel3 h = new DecisionChartJPanel3(userProcessContainer, e);
    CardLayout l = (CardLayout) userProcessContainer.getLayout();
    userProcessContainer.add("OutgoingPaymentJPanel", h);
    l.next(userProcessContainer);
}

From source file:UserInterface.CDC.VaccineCityDistributionJPanel.java

private void viewDetailsjButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_viewDetailsjButtonActionPerformed
    // TODO add your handling code here:
    int selectedRow = summaryjTable.getSelectedRow();

    if (selectedRow < 0) {
        JOptionPane.showMessageDialog(null, "Please select a City");
        return;//from   w w  w .j  ava2  s .  c  om
    }
    CityNetwork city = (CityNetwork) summaryjTable.getValueAt(selectedRow, 0);

    VaccineProviderDistributionJPanel panel = new VaccineProviderDistributionJPanel(workContainer, userAccount,
            business, cdcEnterprise, cdcOrg, city);
    workContainer.add("VaccineProviderDistributionJPanel", panel);
    CardLayout layout = (CardLayout) workContainer.getLayout();
    layout.next(workContainer);

}

From source file:UserInterface.CDC.VARESCityReportingJPanel.java

private void viewDetailsjButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_viewDetailsjButtonActionPerformed
    // TODO add your handling code here:
    int selectedRow = summaryjTable.getSelectedRow();

    if (selectedRow < 0) {
        JOptionPane.showMessageDialog(null, "Please select a City");
        return;//from  w w  w.j  av  a  2  s . c  o m
    }
    CityNetwork city = (CityNetwork) summaryjTable.getValueAt(selectedRow, 0);

    VARESProviderReportingJPanel panel = new VARESProviderReportingJPanel(workContainer, userAccount, business,
            cdcEnterprise, cdcOrg, city);
    workContainer.add("VARESCityReportingJPanel", panel);
    CardLayout layout = (CardLayout) workContainer.getLayout();
    layout.next(workContainer);

}

From source file:userInterface.CustomerWorkArea.CustomerWorkAreaJPanel.java

private void sensorInputBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_sensorInputBtnActionPerformed
    // TODO add your handling code here:
    SensorDataInputJPanel sensorDataInputJPanel = new SensorDataInputJPanel(userProcessContainer, organization,
            enterprise, userAccount, network);
    userProcessContainer.add("sensorDataInputJPanel", sensorDataInputJPanel);
    CardLayout layout = (CardLayout) userProcessContainer.getLayout();
    layout.next(userProcessContainer);
}

From source file:userInterface.CustomerWorkArea.CustomerWorkAreaJPanel.java

private void viewGraphsBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_viewGraphsBtnActionPerformed
    ViewChartJPanel viewChartJPanel = new ViewChartJPanel(userProcessContainer, userAccount);
    userProcessContainer.add("viewChartJPanel", viewChartJPanel);
    CardLayout layout = (CardLayout) userProcessContainer.getLayout();
    layout.next(userProcessContainer);

    // TODO add your handling code here:
}

From source file:userInterface.CustomerWorkArea.CustomerWorkAreaJPanel.java

private void viewSensorDataHistoryBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_viewSensorDataHistoryBtnActionPerformed

    ViewCustomerHistoryJPanel viewCustomerHistoryJPanel = new ViewCustomerHistoryJPanel(userProcessContainer,
            organization, enterprise, userAccount);
    userProcessContainer.add("viewCustomerHistoryJPanel", viewCustomerHistoryJPanel);
    CardLayout layout = (CardLayout) userProcessContainer.getLayout();
    layout.next(userProcessContainer);
    // TODO add your handling code here:
}

From source file:userInterface.CustomerWorkArea.CustomerWorkAreaJPanel.java

private void viewSensorHistoryBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_viewSensorHistoryBtnActionPerformed

    ViewSensorHistoryJPanel viewSensorHistoryJPanel = new ViewSensorHistoryJPanel(userProcessContainer,
            organization, enterprise, userAccount);
    userProcessContainer.add("viewSensorHistoryJPanel", viewSensorHistoryJPanel);
    CardLayout layout = (CardLayout) userProcessContainer.getLayout();
    layout.next(userProcessContainer);
    // TODO add your handling code here:
}

From source file:UserInterface.AdministrativeRole.RequestAnalysis.java

private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
    // TODO add your handling code here:
    SearchRequestJPanel srJP = new SearchRequestJPanel(container, enterprise);
    container.add("manageEmployeeJPanel", srJP);
    CardLayout layout = (CardLayout) container.getLayout();
    layout.next(container);
}

From source file:UserInterface.SecurityAdministratorRole.SecurityAdministratorWorkArea.java

private void manageEmployeeJButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_manageEmployeeJButtonActionPerformed

    ManageSEmployeeJPanel manageSEmployeeJPanel = new ManageSEmployeeJPanel(userProcessContainer,
            securityAuthorityEnterprise.getOrganizationDirectory());
    userProcessContainer.add("ManageSEmployeeJPanel", manageSEmployeeJPanel);
    CardLayout layout = (CardLayout) userProcessContainer.getLayout();
    layout.next(userProcessContainer);
}