Package cli_fmw.utils.chooser

Examples of cli_fmw.utils.chooser.ChoosePanelComboException


            checkupLocal.setType(dir.getItemFromID(id));
            xml = checkupLocal.getCheckupXMLData();
            setScreenFields();
        } catch (ClipsException ex) {
            MessageBox.showException(ex);
            throw new ChoosePanelComboException();
        }
    }
View Full Code Here


                if (ans == MessageBox.ANSWER_NO) {
                    restore();
                } else if (ans == MessageBox.ANSWER_YES) {
                    sil.save1();
                } else { //CANCEL
                    throw new ChoosePanelComboException();
                }
            }

            SheduleIndividualLocal newSil = new SheduleIndividualLocal(coll);
            SheduleProrumbleLocal newSpl = new SheduleProrumbleLocal(coll);

            WeekIndex wi = new WeekIndex();
            if (wi.getIndex() < MINWEEKINDEX) {
                wi = new WeekIndex(MINWEEKINDEX);
            }
            switchToWeek(wi, newSil, newSpl);

            // get DELEGATE
            sil = newSil;
            sil.addContentStateListener(getContainer());
            // get DELEGATE
            spl = newSpl;
            spl.addContentStateListener(getContainer());

            for (int i = 0; i < dayUI.length; i++) {
                dayUI[i].comboBox.setEnabled(true);
            }

            //update current week index panel
            WeekIndex todayWeekIndex = new WeekIndex();
            Integer week = Math.abs(todayWeekIndex.getIndex() % sil.getWeekCount()) + 1;
            currentWeekTextfield.setText(week.toString());
            weeks.doLayout();
            currentWeekPanel.doLayout();
           
            fireContainerEventStateChanged();
           
        } catch (ChoosePanelComboException ex) {
            throw ex;
        } catch (ClipsException ex) {
            MessageBox.showException(ex);
            throw new ChoosePanelComboException();
        }
    }
View Full Code Here

                if(sil != null && sil.isDirty()) {
                    int ans = MessageBox.showConfirmYesNoCancel(MessageBox.C_SAVE_CHANGES);
                    if(ans == MessageBox.ANSWER_YES) {
                        sil.save1();
                    } else if(ans == MessageBox.ANSWER_CANCEL) {
                        throw new ChoosePanelComboException();
                    }
                }               
               
                // init data source
                sil = new SheduleIndividualLocal(collaborator);
                sil.addContentStateListener(getContainer());
               
                // init week buttons
                weekCountCombo.removeActionListener(weekCountComboListener);
                weekCountCombo.setSelectedItem(sil.getWeekCount());
                weekCountCombo.addActionListener(weekCountComboListener);
                weekButtons.init(sil.getWeekCount());

               
                zoom.setEnabled(true);
                zoomLbl.setEnabled(true);

                initTimeTableModel(weekButtons.getCurrentWeekIndex());
               
                fireContainerEventStateChanged();
            }
    }
    catch (ChoosePanelComboException ex){
      throw ex;
    }
        catch (Exception ex) {
            MessageBox.showExceptionOnly(ex);
            throw new ChoosePanelComboException();
        }
    }
View Full Code Here

            }
        } catch (ChoosePanelComboException ex) {
            throw ex;
        } catch (ClipsException ex) {
            MessageBox.showException(ex);
            throw new ChoosePanelComboException();
        }
    }
View Full Code Here

            @Override
            public void chooseDone(int type, int id) throws ChoosePanelComboException {
                try {
                    directionLocal.setCommitteeReason(dirComReason.getItemFromID(id));
                } catch (ClipsException ex) {
                    throw new ChoosePanelComboException("Не удалось сменить причину", ex);
                }
            }
        });

        directionType = DirectoryLocator.getDirectory(DirectoryDirectionType.class);
View Full Code Here

                addListeners();
                resetTableFunctions();
                btAdd.setEnabled(collabLoc != null);
            } catch (ClipsException ex) {
                MessageBox.showException(ex);
                throw new ChoosePanelComboException();
            }
        } else {
            throw new ChoosePanelComboException();
        }
    }
View Full Code Here

    // ChoosePanelListener
    public void chooseDone(int type, int id) throws ChoosePanelComboException {
        setErrorMode(false);
        if (collabLoc != null && collabLoc.isDirty()) {
            throw new ChoosePanelComboException();
        } else {
            try {
                collabLoc = new CollaboratorLocal(id, getAuditManager());
                collabLoc.getDetails();
                specTxt.setText(getExtraText(collabLoc));
                resetTable();
                collabLoc.addContentStateListener(getContainer());
                fireContainerEventStateChanged();
                if (collabLoc != null) {
                    cbArm.setEnabled(true);
                }
            } catch (ClipsException ex) {
                setErrorMode(true);
                MessageBox.showException(ex);
                throw new ChoosePanelComboException();
            }
        }
    }
View Full Code Here

TOP

Related Classes of cli_fmw.utils.chooser.ChoosePanelComboException

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.