Package cli_fmw.main

Examples of cli_fmw.main.PageGeneric


        return;
    }
    try {
        PanelSicklistView edit = new PanelSicklistView(
                getContainer(), sicklistLocalList.get(tblSicklistList.getSelectedRowSorted()));
        PageGeneric page = getContainer().addNewPage(edit, null);
        getContainer().activatePage(page);
    } catch (ClipsException ex) {
        MessageBox.showException(ex);
    }
}//GEN-LAST:event_btEditActionPerformed
View Full Code Here


        return;
    }
    try {
        PanelSicklistView edit = new PanelSicklistView(
                getContainer(), sicklistLocalList.get(tblSicklistList.getSelectedRowSorted()));
        PageGeneric page = getContainer().addNewPage(edit, null);
        getContainer().activatePage(page);
    } catch (ClipsException ex) {
        MessageBox.showException(ex);
    }
}//GEN-LAST:event_btEditActionPerformed
View Full Code Here

                    if (!as.canBeActivated()){
                        throw new PageException("Текущая панель не может быть деактивирована");
                    }
                    as.beforeDeactivate();
                }
                PageGeneric page = (PageGeneric) jTabbedPane1.getComponentAt(index);
                    ActivateSensitive as = (ActivateSensitive) page;
                    if (!as.canBeActivated()){
                        throw new PageException("Выбранная панель не может быть активирована");
                    }
                    as.beforeActivate();
View Full Code Here

    if (contractLocal.isDirty()) {
        MessageBox.showWarning(MessageBox.W_NOT_CLOSE_EDITING);
    } else {
        try {
            PanelContractInfo panel = new PanelContractInfo(getContainer(), contractLocal.copy());
            PageGeneric page = getContainer().addNewPage(panel, this);
            getContainer().activatePage(page);
        } catch (ClipsException ex) {
            MessageBox.showException(ex);
        }
    }
View Full Code Here

        try {
            int row = tabSerRens.getSelectedRowSorted();
            SerRenLocal serRen = serRens.get(row);
            ClientLocal client = serRen.getPolisData().getClient();
            PanelSerRenList panel = new PanelSerRenList(getContainer(), client);
            PageGeneric page = getContainer().addNewPage((PageGeneric) panel, this);
            getContainer().activatePage(page);
        } catch (ClipsException ex) {
            MessageBox.showException(ex);
        }
}//GEN-LAST:event_btSelectActionPerformed
View Full Code Here

        try {
            int row = tabSerRens.getSelectedRowSorted();
            SerRenLocal serRen = serRens.get(row);
            ClientLocal client = serRen.getPolisData().getClient();
            PanelSerRenList panel = new PanelSerRenList(getContainer(), client);
            PageGeneric page = getContainer().addNewPage((PageGeneric) panel, this);
            getContainer().activatePage(page);
        } catch (ClipsException ex) {
            MessageBox.showException(ex);
        }
}//GEN-LAST:event_btSelectActionPerformed
View Full Code Here

  protected PageContainer getPagesContainer(){
    return getContainer();
  }

  protected void addSubTab(PageGeneric tab){
    PageGeneric        after = this;
    if (subTabs.size() > 0) {
      after = subTabs.get(subTabs.size() - 1);
    }
    subTabs.add(tab);
    if (tab instanceof OpenCloseSensitive) {
View Full Code Here

    }//GEN-LAST:event_btFindActionPerformed
   
    private void btNewActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btNewActionPerformed
        try {
            PanelContractInfo panel = new PanelContractInfo(getContainer(), new ContractLocal(getAuditManager()));
            PageGeneric page = getContainer().addNewPage(panel, this);
            getContainer().activatePage(page);
        } catch (ClipsException ex) {
            MessageBox.showException(ex);
        }
    }//GEN-LAST:event_btNewActionPerformed
View Full Code Here

      if (tabContractList.getSelectedRowCount() > 0) {
          try {
              ContractLocal cl = contractList.get(tabContractList.getSelectedRowSorted());
              cl = cl.copy();
              PanelContractInfo panel = new PanelContractInfo(getContainer(), cl);
              PageGeneric page = getContainer().addNewPage(panel, this);
              getContainer().activatePage(page);
          } catch (ClipsException ex) {
              MessageBox.showException(ex);
          }
      } else {
View Full Code Here

    private void btContractViewActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btContractViewActionPerformed
        try {
            PanelContractInfo panel = new PanelContractInfo(getContainer(),
                    contractList.get(tableContractList.getSelectedRowSorted()).getContract());
            PageGeneric page = getContainer().addNewPage(panel, this);
            getContainer().activatePage(page);
        } catch (PageException e) {
            MessageBox.showException(e);
        } catch (ClipsException e) {
            MessageBox.showException(e);
View Full Code Here

TOP

Related Classes of cli_fmw.main.PageGeneric

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.