Package net.datacrow.core.objects.helpers

Examples of net.datacrow.core.objects.helpers.ContactPerson


       
        Object o;
        for (int i = 0; i < comboPersons.getItemCount(); i++) {
            o =  comboPersons.getItemAt(i);
            if (o instanceof ContactPerson) {
                ContactPerson person = (ContactPerson) comboPersons.getItemAt(i);
                if (person != null && person.getID().equals(personID)) {
                    comboPersons.setSelectedIndex(i);
                    break;
                }
            }
        }
View Full Code Here


            }
        }
    }
   
    public void lendItems() {
        ContactPerson contactPerson = comboPersons.getSelectedItem() instanceof ContactPerson ? (ContactPerson) comboPersons.getSelectedItem() : null;
        final String contactPersonID = contactPerson != null ? contactPerson.getID() : null;
        final Date startDate = (Date) inputStartDate.getValue();
        final Date dueDate = (Date) inputDueDate.getValue();
       
        if (contactPersonID == null) {
            DcSwingUtilities.displayWarningMessage("msgSelectPerson");
View Full Code Here

    public Component getTableCellRendererComponent(
            JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {

        super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);          
        String contactPersonID = (String) value;
        ContactPerson contactPerson = (ContactPerson) DataManager.getItem(DcModules._CONTACTPERSON, contactPersonID);
        String description = contactPerson == null ? "" : contactPerson.toString();
        setText(description);
        setToolTipText(description);
       
        return this;
    }
View Full Code Here

TOP

Related Classes of net.datacrow.core.objects.helpers.ContactPerson

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.