Package de.netsysit.model

Examples of de.netsysit.model.ReceiverModel


                    if (prevApplication != null) {
                        prevApplication.removePropertyChangeListener(listPcl);
                    }
                    fillReceiverListGUI();
                } else if (propName.equals("editingStopped")) {
                    ReceiverModel rm = (ReceiverModel) listReceiversLst.getSelectedValue();
                    rm.setName(editorComp.getText());
                } else if ((propName.equals("listReceiverAdded")) || (propName.equals("listReceiverRemoved"))) {
                    listReceiversLst.setModel(currentReceiverList.getReceiversAsMutableListModel());
                }
            }
        };
View Full Code Here


        }
    }
   
    public void deleteReceiver() {
        int index = listReceiversLst.getSelectedIndex();
        ReceiverModel selection = (ReceiverModel) listReceiversLst.getSelectedValue();
        currentReceiverList.removeReceiver(selection);
        if(index <= listReceiversLst.getModel().getSize()-1)
            listReceiversLst.setSelectedIndex(index);
        else {
            int newIndex = listReceiversLst.getModel().getSize() - 1;
View Full Code Here

            listReceiversLst.setSelectedIndex(newIndex);
        }
    }
   
    public void addReceiver() {
        ReceiverModel receiver = new ReceiverModel();
        receiver.setId(PolicyUtilities.getNewReceiverId());
        receiver.setName(rb.getString("newreceiver") + "_" + new Integer(receiver.getId()).toString());
        currentReceiverList.addReceiver(receiver);
       
        int newIndex = listReceiversLst.getModel().getSize() - 1;
        listReceiversLst.setSelectedIndex(newIndex);
        editReceiver();
View Full Code Here

TOP

Related Classes of de.netsysit.model.ReceiverModel

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.