Package event_manager.models

Examples of event_manager.models.Staff


        }
    }//GEN-LAST:event_toListKeyPressed

    private void addStaff() {
        if(fromList.isSelectionEmpty()) return;
        Staff staff = (Staff) fromList.getSelectedValue();
        int index = fromList.getSelectedIndex();
        fromListModel.removeElementAt(index);
        toListModel.addElement(staff);
    }
View Full Code Here


        toListModel.addElement(staff);
    }
   
    private void removeStaff() {
        if(toList.isSelectionEmpty()) return;
        Staff staff = (Staff) toList.getSelectedValue();
        int index = toList.getSelectedIndex();
        toListModel.removeElementAt(index);
        fromListModel.addElement(staff);
    }
View Full Code Here

    private void addStaffToEvent() {
        int staffSize = toListModel.size();
        if(staffSize < 1) return;
        Object[] staffIds = new Object[staffSize];
        for(int i = 0; i < staffSize; i++) {
            Staff staff = (Staff) toListModel.getElementAt(i);
            staffIds[i] = staff.getId();
        }
       event.addStaffs(staffIds);
    }
View Full Code Here

TOP

Related Classes of event_manager.models.Staff

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.