Package net.sf.orexio.lopf.container

Examples of net.sf.orexio.lopf.container.ContainerVector


  }
 
  protected Vector<ContainerVector> addContainerVectors() throws IOException,ClassNotFoundException{
    Vector<ContainerVector> containerVectors=new Vector<ContainerVector>();
   
    addresss=new ContainerVector(this,repository,null,Address.class);
    containerVectors.add(addresss);
   
    return containerVectors;
  }
View Full Code Here


  public ContainerVector getEvents() {
    if(events==null){
      Culture culture=(Culture)getParent();
      try{
        events=new ContainerVector(this,culture.getRepository(),id,Event.class);
      }catch(ClassNotFoundException e){
        Messages.showException(e);
      }catch(java.io.IOException e){
        Messages.showException(e);
      }
View Full Code Here


    protected Vector<ContainerVector> addContainerVectors() throws IOException,ClassNotFoundException{
      Vector<ContainerVector> ghostVectors=new Vector<ContainerVector>();
   
      varieties=new ContainerVector(this,repository,null,Variety.class);
   
    ghostVectors.add(varieties);
   
    return ghostVectors;
    }
View Full Code Here

 

  protected Vector<ContainerVector> addContainerVectors() throws IOException,ClassNotFoundException{
    Vector<ContainerVector> ghostVectors=new Vector<ContainerVector>();
   
    hardwares=new ContainerVector(this,repository,null,Hardware.class);
    plantations=new ContainerVector(this,repository,null,Plantation.class);
   
    ghostVectors.add(hardwares);
    ghostVectors.add(plantations);
   
    return ghostVectors;
View Full Code Here

   * This method initializes this
   *
   * @return void
   */
  private void initialize() {
    ContainerVector   varietiesAvaible         = Resources.getResources().getVarieties();
    java.util.Iterator<Container> iterator=varietiesAvaible.iterator();
    while(iterator.hasNext()){
      Container ghost=(Container)iterator.next();
      Variety variety;
     
      try{variety=(Variety)ghost.getData();}
      catch(ClassNotFoundException e){Messages.showException(e);variety=null;}
      catch(IOException e){Messages.showException(e);variety=null;}
   
      // Checking if variety type is added.
      Plants plants=(Plants)panel.getEvent();
      if (!plants.getVarieties().contains(variety)) {
        // Adding jMenu
        JMenuItem jMenuItem = new JMenuItem();
        jMenuItem.setText(variety.getName());       
        jMenuItem.setName(variety.toString());
        jMenuItem
            .addActionListener(new java.awt.event.ActionListener() {
              public void actionPerformed(
                  java.awt.event.ActionEvent e) {
                JMenuItem jMenuItem = (JMenuItem) e.getSource();
                ContainerVector   varietiesAvaible         = Resources.getResources().getVarieties();
                java.util.Iterator<Container> iterator=varietiesAvaible.iterator();
                while(iterator.hasNext()){
                  Container ghost=(Container)iterator.next();
                  Variety variety;
                 
                  try{variety=(Variety)ghost.getData();}
View Full Code Here

TOP

Related Classes of net.sf.orexio.lopf.container.ContainerVector

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.