Examples of FileModel


Examples of model.FileModel

    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

Examples of model.FileModel

      }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

Examples of model.FileModel

            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

Examples of model.FileModel

    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

Examples of model.FileModel

    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

Examples of model.FileModel

    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

Examples of model.FileModel

                              // 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

Examples of model.FileModel

                              // path.
      DataInputStream input = new DataInputStream(context
          .getResourceAsStream("SqlMapConfig.xml"));
      client = Utils.getSqlMapClient(input);
      //TODO ��δ�req��ȡ��FileModel�����IJ����أ�
      FileModel fileModel = null ;
      ObjectInputStream ois = new ObjectInputStream(req.getInputStream());
      fileModel = (FileModel)ois.readObject();
      ois.close();
      if(fileModel != null){
        System.out.println("UpdateModel#fileModel!=null");
      }else{
        System.out.println("UpdateModel#fileModel==null");
      }
      client.update("updateModel", fileModel);
      List<DrawModel> draws = fileModel.getDraws();
      for(int i = 0;i<draws.size();i++){
        client.update("updateDrawModel",draws.get(i));
      }         
     
    } catch (Exception e) {
View Full Code Here

Examples of no.ugland.utransprod.gui.model.FileModel

import com.jgoodies.binding.adapter.BasicComponentFactory;

public class FileViewHandler implements Closeable{
    private PresentationModel presentationModel;
    public FileViewHandler(String fileContent){
        presentationModel=new PresentationModel(new FileModel(fileContent));
    }
View Full Code Here

Examples of org.geoserver.web.data.store.panel.FileModel

        TextField<Integer> maxErrors = new TextField<Integer>("maxRenderingErrors");
        maxErrors.add(new MinimumValidator<Integer>(0));
        form.add(maxErrors);
      // watermark
      form.add(new CheckBox("watermark.enabled"));
      TextField watermarkUrlField = new TextField("watermark.uRL", new FileModel(new PropertyModel<String>(form.getModel(), "watermark.URL")));
      watermarkUrlField.add(new FileExistsValidator(true));
      watermarkUrlField.setOutputMarkupId(true);
        form.add(watermarkUrlField);
        form.add(chooserButton("chooser", new ParamResourceModel("chooseWatermark", this).getString(), watermarkUrlField));
      TextField<Integer> transparency = new TextField<Integer>("watermark.transparency");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.