Tabnine Logo
MechanismInfo.getClazz
Code IndexAdd Tabnine to your IDE (free)

How to use
getClazz
method
in
jadex.bridge.service.types.security.MechanismInfo

Best Java code snippets using jadex.bridge.service.types.security.MechanismInfo.getClazz (Showing top 20 results out of 315)

origin: net.sourceforge.jadex/jadex-runtimetools-swing

  public void actionPerformed(ActionEvent e)
  {
    AcquireCertificatePanel.this.secser.setAcquisitionMechanismParameterValue(mi.getClazz(), pi.getName(), 
      cb.isSelected()? Boolean.TRUE: Boolean.FALSE);
  }
});
origin: org.activecomponents.jadex/jadex-runtimetools-swing

  public void actionPerformed(ActionEvent e)
  {
    AcquireCertificatePanel.this.secser.setAcquisitionMechanismParameterValue(mi.getClazz(), pi.getName(), 
      cb.isSelected()? Boolean.TRUE: Boolean.FALSE);
  }
});
origin: org.activecomponents.jadex/jadex-runtimetools-swing

  public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) 
  {
    String    val    = value instanceof MechanismInfo? SReflect.getInnerClassName(((MechanismInfo)value).getClazz()): (String)value;
    return super.getListCellRendererComponent(list, val, index, isSelected, cellHasFocus);
  }
});
origin: net.sourceforge.jadex/jadex-runtimetools-swing

  public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) 
  {
    String    val    = value instanceof MechanismInfo? SReflect.getInnerClassName(((MechanismInfo)value).getClazz()): (String)value;
    return super.getListCellRendererComponent(list, val, index, isSelected, cellHasFocus);
  }
});
origin: org.activecomponents.jadex/jadex-runtimetools-swing

  public void run()
  {
    String name = tf.getText();
    IComponentIdentifier cid = name.length()>0? new BasicComponentIdentifier(name): null; 
    AcquireCertificatePanel.this.secser.setAcquisitionMechanismParameterValue(mi.getClazz(), pi.getName(), cid);
  }
}, tf);
origin: net.sourceforge.jadex/jadex-runtimetools-swing

  public void run()
  {
    String name = tf.getText();
    IComponentIdentifier cid = name.length()>0? new ComponentIdentifier(name): null; 
    AcquireCertificatePanel.this.secser.setAcquisitionMechanismParameterValue(mi.getClazz(), pi.getName(), cid);
  }
}, tf);
origin: net.sourceforge.jadex/jadex-runtimetools-swing

  public void itemStateChanged(ItemEvent e)
  {            
    Object o = cbmechs.getSelectedItem();
    final MechanismInfo mi = o instanceof MechanismInfo? (MechanismInfo)o: null;
    AcquireCertificatePanel.this.secser.setAcquisitionMechanism(mi!=null? mi.getClazz(): null);
    
    if(mi==null)
    {
      if(ocl.getComponent("none")==null)
      {
        JPanel p = new JPanel(new BorderLayout());
        p.add(new JLabel("Deactivated", JLabel.CENTER), BorderLayout.CENTER);
        pdetail.add(p, "none");
      }
      ocl.show("none");
    }
    else
    {
      createMechanismPanel(mi);
      ocl.show(mi.getClazz());
    }
  }
});
origin: org.activecomponents.jadex/jadex-runtimetools-swing

  public void itemStateChanged(ItemEvent e)
  {            
    Object o = cbmechs.getSelectedItem();
    final MechanismInfo mi = o instanceof MechanismInfo? (MechanismInfo)o: null;
    AcquireCertificatePanel.this.secser.setAcquisitionMechanism(mi!=null? mi.getClazz(): null);
    
    if(mi==null)
    {
      if(ocl.getComponent("none")==null)
      {
        JPanel p = new JPanel(new BorderLayout());
        p.add(new JLabel("Deactivated", JLabel.CENTER), BorderLayout.CENTER);
        pdetail.add(p, "none");
      }
      ocl.show("none");
    }
    else
    {
      createMechanismPanel(mi);
      ocl.show(mi.getClazz());
    }
  }
});
origin: org.activecomponents.jadex/jadex-runtimetools-swing

      public void actionPerformed(ActionEvent e)
      {
        IComponentIdentifier cid = csd.selectAgent(null);
        if(cid!=null)
        {
//                    tf.setText(cid.getName());
          AcquireCertificatePanel.this.secser.setAcquisitionMechanismParameterValue(mi.getClazz(), pi.getName(), cid);
        }
      }
    });
origin: net.sourceforge.jadex/jadex-runtimetools-swing

      public void actionPerformed(ActionEvent e)
      {
        IComponentIdentifier cid = csd.selectAgent(null);
        if(cid!=null)
        {
//                    tf.setText(cid.getName());
          AcquireCertificatePanel.this.secser.setAcquisitionMechanismParameterValue(mi.getClazz(), pi.getName(), cid);
        }
      }
    });
origin: org.activecomponents.jadex/jadex-runtimetools-swing

/**
 *  Create checkbox for boolean choices.
 */
protected void createCheckBox(PropertiesPanel pp, final ParameterInfo pi, final MechanismInfo mi)
{
  final JCheckBox cb = pp.createCheckBox(pi.getName(), ((Boolean)pi.getValue()).booleanValue(), true);
  cb.setToolTipText(pi.getDescription());
  cb.addActionListener(new ActionListener()
  {
    public void actionPerformed(ActionEvent e)
    {
      AcquireCertificatePanel.this.secser.setAcquisitionMechanismParameterValue(mi.getClazz(), pi.getName(), 
        cb.isSelected()? Boolean.TRUE: Boolean.FALSE);
    }
  });
  
  updateactions.put(mi.getClazz().getName()+"."+pi.getName(), new ICommand<Object>()
  {
    public void execute(Object val) 
    {
      cb.setSelected(((Boolean)val).booleanValue());
    }
  });
}
 
origin: net.sourceforge.jadex/jadex-runtimetools-swing

/**
 *  Create checkbox for boolean choices.
 */
protected void createCheckBox(PropertiesPanel pp, final ParameterInfo pi, final MechanismInfo mi)
{
  final JCheckBox cb = pp.createCheckBox(pi.getName(), ((Boolean)pi.getValue()).booleanValue(), true);
  cb.setToolTipText(pi.getDescription());
  cb.addActionListener(new ActionListener()
  {
    public void actionPerformed(ActionEvent e)
    {
      AcquireCertificatePanel.this.secser.setAcquisitionMechanismParameterValue(mi.getClazz(), pi.getName(), 
        cb.isSelected()? Boolean.TRUE: Boolean.FALSE);
    }
  });
  
  updateactions.put(mi.getClazz().getName()+"."+pi.getName(), new ICommand<Object>()
  {
    public void execute(Object val) 
    {
      cb.setSelected(((Boolean)val).booleanValue());
    }
  });
}
 
origin: org.activecomponents.jadex/jadex-runtimetools-swing

  public void run()
  {
    Object val = tf.getText();
    Class<?> cl = pi.getType();
    if(!String.class.equals(cl))
    {
      IStringObjectConverter conv = BasicTypeConverter.getBasicStringConverter(cl);
      if(conv==null) // todo:
        return;
      
      try
      {
        val = conv.convertString((String)val, null);
      }
      catch(Exception ex)
      {
        throw new RuntimeException(ex);
      }
    }
    AcquireCertificatePanel.this.secser.setAcquisitionMechanismParameterValue(mi.getClazz(), pi.getName(), val);
  }
};
origin: net.sourceforge.jadex/jadex-runtimetools-swing

  public void run()
  {
    Object val = tf.getText();
    Class<?> cl = pi.getType();
    if(!String.class.equals(cl))
    {
      IStringObjectConverter conv = BasicTypeConverter.getBasicStringConverter(cl);
      if(conv==null) // todo:
        return;
      
      try
      {
        val = conv.convertString((String)val, null);
      }
      catch(Exception ex)
      {
        throw new RuntimeException(ex);
      }
    }
    AcquireCertificatePanel.this.secser.setAcquisitionMechanismParameterValue(mi.getClazz(), pi.getName(), val);
  }
};
origin: org.activecomponents.jadex/jadex-runtimetools-swing

updateactions.put(mi.getClazz().getName()+"."+pi.getName(), new ICommand<Object>()
origin: net.sourceforge.jadex/jadex-runtimetools-swing

updateactions.put(mi.getClazz().getName()+"."+pi.getName(), new ICommand<Object>()
origin: org.activecomponents.jadex/jadex-runtimetools-swing

Class<?> cl = mi.getClazz();
if(ocl.getComponent(cl)==null)
origin: net.sourceforge.jadex/jadex-runtimetools-swing

Class<?> cl = mi.getClazz();
if(ocl.getComponent(cl)==null)
origin: org.activecomponents.jadex/jadex-runtimetools-swing

addTextFieldListener(action, tf);
updateactions.put(mi.getClazz().getName()+"."+pi.getName(), new ICommand<Object>()
origin: net.sourceforge.jadex/jadex-runtimetools-swing

addTextFieldListener(action, tf);
updateactions.put(mi.getClazz().getName()+"."+pi.getName(), new ICommand<Object>()
jadex.bridge.service.types.securityMechanismInfogetClazz

Javadoc

Get the clazz.

Popular methods of MechanismInfo

  • <init>
  • getParameterInfos
    Get the parameterinfos.

Popular in Java

  • Start an intent from android
  • requestLocationUpdates (LocationManager)
  • getSupportFragmentManager (FragmentActivity)
  • runOnUiThread (Activity)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • JComboBox (javax.swing)
  • Option (scala)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now