Examples of VetoableComboBoxModel


Examples of cli_fmw.utils.combo_vetoable.VetoableComboBoxModel

        scr = new SheduleClientReceptionLocal(pacient);

        wtOn.setSelected(collaborator == null);
        workTypesCombo.setEnabled(collaborator == null);
       
        VetoableComboBoxModel wtmodel = new VetoableComboBoxModel();
        DirectoryWorkType wtd = (DirectoryWorkType) DirectoryLocator.getDirectory(DirectoryWorkType.class, false);
        Selector<DirectoryWorkTypeItem> workTypes = wtd.getItems();
        for(int i=0; i<workTypes.size(); i++) {
            DirectoryWorkTypeItem item = workTypes.get(i);
            if(item.isAvailiable()) {
                wtmodel.addElement(item);           
            }
        }
        wtmodel.setSelectedItem(null);
        wtmodel.addVetoableComboBoxListener(workTypeProcess);
        workTypesCombo.setModel(wtmodel);
       
        VetoableComboBoxModel crmodel = new VetoableComboBoxModel();
        for(ClientReceptionMode mode :scr.getModeList())  {
            crmodel.addElement(mode);
        }
        crmodel.setSelectedItem(null);
        crmodel.addVetoableComboBoxListener(new PrevouseReceptionProcess());
        prevoiseReceptionCombo.setModel(crmodel);
        prevoiseReceptions.setCellRenderer(new ReceptionListCellRenderer());
       
        StateSaver.attachTo(this);
    }
View Full Code Here

Examples of cli_fmw.utils.combo_vetoable.VetoableComboBoxModel

        }

    }
   
    private void fillCollaboratorCombo(DirectoryCollaboratorItem selected) throws ClipsException {
        collabModel = new VetoableComboBoxModel();
        DirectoryCollaborator colls = DirectoryLocator.getDirectory(DirectoryCollaborator.class, false);
        DirectoryLpuItem lpu = UserInfo.get().getCollaborator().getLpu();
        List<DirectoryCollaboratorItem> c = colls.getItemsFiltered(lpu, false, true, true);
        for (int i = 0; i < c.size(); i++) {
            DirectoryCollaboratorItem coll = c.get(i);
View Full Code Here

Examples of cli_fmw.utils.combo_vetoable.VetoableComboBoxModel

     *
     * @throws cli_fmw.delegate.exception.ClipsException
     */
    private void fillCollaboratorCombo(DirectoryWorkTypeItem workType)
            throws ClipsException {
        collabModel = new VetoableComboBoxModel();
        Iterator<DirectoryCollaboratorItem> i= sip.getInsertionPoint(workType).iterator();
        DirectoryLpuItem lpu = UserInfo.get().getCollaborator().getLpu();
        while(i.hasNext()) {
            DirectoryCollaboratorItem item = i.next();

View Full Code Here

Examples of cli_fmw.utils.combo_vetoable.VetoableComboBoxModel

}//GEN-LAST:event_hourScalerStateChanged

private void wtOnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_wtOnActionPerformed
    JCheckBox cb = (JCheckBox) evt.getSource();
    workTypesCombo.setEnabled(cb.isSelected());
    VetoableComboBoxModel model = (VetoableComboBoxModel) workTypesCombo.getModel();
    model.setSilent(true);
    model.setSelectedItem(null);
    model.setSilent(false);
}//GEN-LAST:event_wtOnActionPerformed
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.