Package model

Examples of model.FileModel


          return;
        }
      }

      System.out.println("modelID = " + modelID);
      FileModel model = null;
      try {
        model = FileModelService.buildFileModel(modelID);
      } catch (Exception ex) {
        ex.printStackTrace();
      }
      projectReader.setDataSource(model);
      boolean result = projectReader.readProject();
      if (result == false) {
        JOptionPane.showInternalMessageDialog(uiJPanel, projectReader
            .getErrorInfo(), "������Ϣ����", JOptionPane.ERROR_MESSAGE);
        return;
      }
      String domainName = projectReader.getDomainName();
      String[] viewNameArray = projectReader.getViewNameArray();
      Drawing[] drawingArray = projectReader.getDrawingArray();
      GroupMap informationMap = projectReader.getInformationMap();
      FComponent featureModel = projectReader.getFeatureModel();

      ProjectImplementation pi = new ProjectImplementation();
      pi.setProjectId(modelID);
      pi.setProjectName(model.getName());
      pi.setDomainName(domainName);
      for (int i = 0; i < viewNameArray.length; i++)
        pi.addView(viewNameArray[i]);

      ProjectManagerImplementation pmi = null;
View Full Code Here


        index += " " + drawingViews.length;
        for (int i = 0; i < drawingViews.length; i++) {
          index += " " + drawingViews[i].getDrawing().getTitle();
        }
        if (fileModel == null) {
          fileModel = new FileModel();
          fileModel.setId(project.getProjectId());
          fileModel.setName(project.getProjectName());
          fileModel.setIndex(index);
        }
        // begin д������ģ�������ļ�
View Full Code Here

    box.setLayout(new BoxLayout(box,BoxLayout.PAGE_AXIS));
    final ButtonGroup group = new ButtonGroup();
    final int numbuts = models.size();
    final JRadioButton[]radioButtons = new JRadioButton[numbuts];
    for(int i = 0 ;i<numbuts;i++){
      FileModel fm = models.get(i);
      String text = fm.getId() + " " +fm.getName();
      radioButtons[i] = new JRadioButton(text);     
      group.add(radioButtons[i]);
      box.add(radioButtons[i]);
    }
    radioButtons[0].setSelected(true);
View Full Code Here

    box.setLayout(new BoxLayout(box,BoxLayout.PAGE_AXIS));
    final ButtonGroup group = new ButtonGroup();
    final int numbuts = models.size();
    final JRadioButton[]radioButtons = new JRadioButton[numbuts];
    for(int i = 0 ;i<numbuts;i++){
      FileModel fm = models.get(i);
      String text = fm.getId() + " " +fm.getName();
      radioButtons[i] = new JRadioButton(text);     
      group.add(radioButtons[i]);
      box.add(radioButtons[i]);
    }
    radioButtons[0].setSelected(true);
View Full Code Here

      }else{
        return ;
      }

      System.out.println("modelID = " +modelID);
      FileModel model = null;
      try{
        model =FileModelService.buildFileModel(modelID);
      }catch(Exception ex){
        ex.printStackTrace();
      }
      projectReader.setDataSource(model);
      boolean result = projectReader.readProject();
            if (result == false) {
                JOptionPane.showInternalMessageDialog(uiJPanel, projectReader.getErrorInfo(), "������Ϣ����", JOptionPane.ERROR_MESSAGE);
                return;
            }
            String domainName = projectReader.getDomainName();
            String[] viewNameArray = projectReader.getViewNameArray();
            Drawing[] drawingArray = projectReader.getDrawingArray();
            GroupMap informationMap = projectReader.getInformationMap();
            FComponent featureModel = projectReader.getFeatureModel();

            ProjectImplementation pi = new ProjectImplementation();
            pi.setProjectId(modelID);
            pi.setProjectName(model.getName());
            pi.setDomainName(domainName);
            for (int i = 0; i < viewNameArray.length; i++)
                pi.addView(viewNameArray[i]);

            ProjectManagerImplementation pmi = new ProjectManagerImplementation();
View Full Code Here

            index += " "+drawingViews.length;
            for(int i = 0 ;i<drawingViews.length ;i++){
              index += " " + drawingViews[i].getDrawing().getTitle();
            }
            if(fileModel == null){
              fileModel = new FileModel();
              fileModel.setId(project.getProjectId());
              fileModel.setName(project.getProjectName());
              fileModel.setIndex(index);
            }
//          begin д������ģ�������ļ�
View Full Code Here

    HttpURLConnection conn =  (HttpURLConnection) url.openConnection();
    conn.setDoOutput(true);
    conn.setRequestProperty("content-type", "application/x-java-serialized-object");
    conn.connect();   
    ObjectInputStream ois = new ObjectInputStream(conn.getInputStream());
    FileModel model = (FileModel)ois.readObject();
    ois.close();
    conn.disconnect();
    return model;
  }
View Full Code Here

    HttpURLConnection conn =  (HttpURLConnection) url.openConnection();
    conn.setDoOutput(true);
    conn.setRequestProperty("content-type", "application/x-java-serialized-object");
    conn.connect();   
    ObjectInputStream ois = new ObjectInputStream(conn.getInputStream());
    FileModel model = (FileModel)ois.readObject();
    ois.close();
    conn.disconnect();
    return model;
  }
View Full Code Here

    HttpURLConnection conn =  (HttpURLConnection) url.openConnection();
    conn.setDoOutput(true);
    conn.setRequestProperty("content-type", "application/x-java-serialized-object");
    conn.connect();   
    ObjectInputStream ois = new ObjectInputStream(conn.getInputStream());
    FileModel model = (FileModel)ois.readObject();
    ois.close();
    conn.disconnect();
    return model;
  }
View Full Code Here

                              // path.
      DataInputStream input = new DataInputStream(context
          .getResourceAsStream("SqlMapConfig.xml"));
      client = Utils.getSqlMapClient(input);
     
      FileModel model = null;
      recid = Integer.valueOf(req.getParameter("recid"));
      model= (FileModel) client.queryForObject("getModel",recid);
      if(model != null){
        List<DrawModel> draws = client.queryForList("getDraws",recid);
        model.setDraws(draws);
      }         
     
     
      ObjectOutputStream oos = new ObjectOutputStream(resp.getOutputStream());
      oos.writeObject(model);
View Full Code Here

TOP

Related Classes of model.FileModel

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.