Package com.k42b3.zubat.basic

Examples of com.k42b3.zubat.basic.FormPanel


    trafficTable.addMouseListener(new MouseListener() {

      public void mouseReleased(MouseEvent e)
      {
        TrafficItem item = trafficTm.getRow(trafficTable.getSelectedRow());

        if(item != null)
        {
          if(trafficDetailFrame == null)
          {
View Full Code Here



      // traffic panel
      trafficTm = new TrafficTableModel();

      http = new Http(new TrafficListenerInterface(){

        public void handleRequest(TrafficItem item)
        {
          trafficTm.addTraffic(item);
        }
View Full Code Here

    try
    {
      trafficTm = new TrafficTableModel();

      // http
      http = new Http(new TrafficListenerInterface(){

        public void handleRequest(TrafficItem item)
        {
          trafficTm.addTraffic(item);
        }
View Full Code Here

      {
        throw new Exception("Could not find access service");
      }

      OauthProvider provider = new OauthProvider(request.getUri(), authorization.getUri(), access.getUri(), Configuration.getInstance().getConsumerKey(), Configuration.getInstance().getConsumerSecret());
      oauth = new Oauth(http, provider);
    }
    catch(Exception e)
    {
      Zubat.handleException(e);
    }
View Full Code Here

    String requestUrl = availableServices.getItem("http://oauth.net/core/1.0/endpoint/request").getUri();
    String authorizationUrl = availableServices.getItem("http://oauth.net/core/1.0/endpoint/authorize").getUri();
    String accessUrl = availableServices.getItem("http://oauth.net/core/1.0/endpoint/access").getUri();

    OauthProvider provider = new OauthProvider(requestUrl, authorizationUrl, accessUrl, Configuration.getInstance().getConsumerKey(), Configuration.getInstance().getConsumerSecret());
    Oauth oauth = new Oauth(http, provider);

    if(!Configuration.getInstance().getToken().isEmpty() && !Configuration.getInstance().getTokenSecret().isEmpty())
    {
      oauth.auth(Configuration.getInstance().getToken(), Configuration.getInstance().getTokenSecret());
    }
    else
    {
      throw new Exception("No token set use --auth to obtain a token and token secret");
    }
View Full Code Here

      if(access == null)
      {
        throw new Exception("Could not find access service");
      }

      OauthProvider provider = new OauthProvider(request.getUri(), authorization.getUri(), access.getUri(), Configuration.getInstance().getConsumerKey(), Configuration.getInstance().getConsumerSecret());
      oauth = new Oauth(http, provider);
    }
    catch(Exception e)
    {
      Zubat.handleException(e);
View Full Code Here

    // authentication
    String requestUrl = availableServices.getItem("http://oauth.net/core/1.0/endpoint/request").getUri();
    String authorizationUrl = availableServices.getItem("http://oauth.net/core/1.0/endpoint/authorize").getUri();
    String accessUrl = availableServices.getItem("http://oauth.net/core/1.0/endpoint/access").getUri();

    OauthProvider provider = new OauthProvider(requestUrl, authorizationUrl, accessUrl, Configuration.getInstance().getConsumerKey(), Configuration.getInstance().getConsumerSecret());
    Oauth oauth = new Oauth(http, provider);

    if(!Configuration.getInstance().getToken().isEmpty() && !Configuration.getInstance().getTokenSecret().isEmpty())
    {
      oauth.auth(Configuration.getInstance().getToken(), Configuration.getInstance().getTokenSecret());
View Full Code Here

    item.setLayout(new BorderLayout());

    JLabel label = new JLabel(nodeLabel.getTextContent());
    label.setPreferredSize(new Dimension(100, 22));

    CheckboxList checkboxlist = new CheckboxList(nodeSrc.getTextContent());
    checkboxlist.setPreferredSize(new Dimension(255, 22));

    item.add(checkboxlist, BorderLayout.CENTER);


    requestFields.put(nodeRef.getTextContent(), checkboxlist);
View Full Code Here

    item.setLayout(new FlowLayout());

    JLabel label = new JLabel(nodeLabel.getTextContent());
    label.setPreferredSize(new Dimension(100, 22));

    Input input = new Input();
    input.setPreferredSize(new Dimension(300, 22));
   
    if(nodeValue != null)
    {
      input.setText(nodeValue.getTextContent());
    }

    if(nodeDisabled != null && nodeDisabled.getTextContent().equals("true"))
    {
      input.setEnabled(false);
    }

    item.add(label);
    item.add(input);
View Full Code Here

    item.setLayout(new FlowLayout());

    JLabel label = new JLabel(nodeLabel.getTextContent());
    label.setPreferredSize(new Dimension(100, 22));

    Input input = new Input();
    input.setPreferredSize(new Dimension(255, 22));

    JButton button = new JButton(nodeRef.getTextContent());
    button.setPreferredSize(new Dimension(40, 22));
    button.addActionListener(new ActionListener() {

      public void actionPerformed(ActionEvent e)
      {
        try
        {
          JButton source = (JButton) e.getSource();
          String key = source.getText();

          if(referenceFields.containsKey(key))
          {
            ReferenceItem item = referenceFields.get(key);
            SearchPanel panel = item.getPanel();

            if(panel == null)
            {
              panel = new SearchPanel(item);

              item.setPanel(panel);
            }

            panel.setVisible(true);

            panel.toFront();
          }
        }
        catch(Exception ex)
        {
          logger.warning(ex.getMessage());
        }
      }

    });

    if(nodeValue != null)
    {
      input.setText(nodeValue.getTextContent());
    }

    if(nodeDisabled != null && nodeDisabled.getTextContent().equals("true"))
    {
      input.setEnabled(false);
    }

    item.add(label);
    item.add(input);
    item.add(button);
View Full Code Here

TOP

Related Classes of com.k42b3.zubat.basic.FormPanel

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.