Package com.art.anette.datamodel.dataobjects.simple

Examples of com.art.anette.datamodel.dataobjects.simple.Employee


    @Override
    public void mouseClicked(MouseEvent event) {
        gantt.grabFocus();
        WorkPackage wp = gantt.getSelectedWorkPackage();
        if (wp != null) {
            Employee user = logic.getEmployee();
            btnAddWorkPackage.setEnabled(user.isAllowedToAdd(wp, WorkPackage.class));
            btnEditWorkPackage.setEnabled(user.isAllowedToEdit(wp));
            btnDeleteWorkPackage.setEnabled(user.isAllowedToDelete(wp));
            btnLinkWorkPackage.setEnabled(user.isAllowedToEdit(wp));
            btnUnlinkWorkPackage.setEnabled(user.isAllowedToEdit(wp));
        } else {
            btnAddWorkPackage.setEnabled(false);
            btnEditWorkPackage.setEnabled(false);
            btnDeleteWorkPackage.setEnabled(false);
            btnLinkWorkPackage.setEnabled(false);
View Full Code Here


    /**
     * Zeigt an, dass der Client sich im Online-Modus befindet.
     */
    public void setOnline() {
        lblConnection.setText(lang.getString("Online"));
        final Employee employee = BasicController.getInstance().getLoggedInEmployee();
        final String empDescr = employee.getName() + " <" + employee.getEmail() + '>';
        final String serverDescr = NetworkControl.getInstance().getServerDescr();
        lblConnection.setToolTipText(empDescr + " AT " + serverDescr);
        imgConnection.setImage(new ImageIcon(getClass().getResource("/com/art/anette/client/ui/resources/online.png")).getImage());
        imgConnection.repaint();
    }
View Full Code Here

        }
    }

    private static Object adjustObjectForSending(Object obj) {
        if (obj instanceof Employee) {
            Employee employee = (Employee) obj;
            Employee cloned = employee.clone();
            cloned.clearPassword();
            return cloned;
        }
        return obj;
    }
View Full Code Here

TOP

Related Classes of com.art.anette.datamodel.dataobjects.simple.Employee

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.