Package org.metaworks.inputter

Examples of org.metaworks.inputter.ObjectInput


        classType = Class.forName(className);
       
        try{
          drrcInput = (InputterAdapter)ObjectType.getDefaultInputter(Class.forName(className));
        }catch(Exception e){
          drrcInput = new ObjectInput(classType);
        }
       
        RoleResolutionContext rrc = (RoleResolutionContext)Class.forName(className).newInstance();
        String roleResolutionContextName = rrc.getName();
View Full Code Here


        //
        pl.add(pvi.getComponent());
        pl.add(conditionBox);
       
        //
        valueInput = new ObjectInput();
       
        Inputter dtInput_;
    try {
      dtInput_ = ObjectType.getDefaultInputter(Class.class);
    } catch (Exception e1) {
      dtInput_ = new DataTypeInput();
    }
    final Inputter dtInput = dtInput_;
   
        cards = new JPanel(new CardLayout());
        cards.add(pvi2.getComponent(), "byVariable");
        cards.add(dtInput.getComponent(), "byUser");      
       
        final JPanel dynamicPanel = new JPanel(new BorderLayout());
       
        dynamicPanel.add(CreateRadioPanel(), BorderLayout.NORTH);
        dynamicPanel.add(cards, BorderLayout.CENTER);
        //pl2.add(valueInput.getComponent(), BorderLayout.WEST);
        pl.add(dynamicPanel);
       
       
    dtInput.addActionListener(new ActionListener(){
      public void actionPerformed(ActionEvent e) {
        try{
          Class type = (Class)dtInput.getValue();
          if(type!=null){
            if(valueInput==null)
              valueInput = new ObjectInput();
           
            cards.getParent().add(valueInput.getComponent(), BorderLayout.SOUTH);
            valueInput.setType(type);
            dlg.pack();
           
View Full Code Here

    FieldDescriptor fd = type.getFieldDescriptor("Type");

    final Inputter dtInput = fd.getInputter();
   
    fd = type.getFieldDescriptor("Value");
    final ObjectInput valueInput = new ObjectInput();
    fd.setInputter(valueInput);
   
    dtInput.addActionListener(new ActionListener(){
      public void actionPerformed(ActionEvent e) {
        try{
          Class type = (Class)dtInput.getValue();
          if(type!=null){
            valueInput.setType(type);
          }
        }catch(Exception ex){}
      }
    });
 
View Full Code Here

TOP

Related Classes of org.metaworks.inputter.ObjectInput

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.