Package com.sun.messaging.jmq.admin.apps.console.util

Examples of com.sun.messaging.jmq.admin.apps.console.util.IntegerField


        items = new LabelledComponent[4];

        hostTF = new JTextField(DEFAULT_BROKER_HOST, 10);
        items[0] = new LabelledComponent(acr.getString(acr.I_BROKER_HOST), hostTF);

        portTF = new IntegerField(0, Integer.MAX_VALUE, DEFAULT_PRIMARY_PORT, 10);
        items[1] = new LabelledComponent(acr.getString(acr.I_BROKER_PORT), portTF);

        userTF = new JTextField(BrokerAdmin.DEFAULT_ADMIN_USERNAME, 10);
        items[2] = new LabelledComponent(acr.getString(acr.I_BROKER_USERNAME), userTF);
View Full Code Here


  servicePanel.add(dynamicPortLabel);

  serviceConstraints.gridx = 2;
  serviceConstraints.gridy = 1;
  serviceConstraints.insets = new Insets(0, 5, 0, 0);
  staticPortIF = new IntegerField(0, Integer.MAX_VALUE, 15);
  staticPortIF.setEnabled(false);
  serviceGridbag.setConstraints(staticPortIF, serviceConstraints);
  servicePanel.add(staticPortIF);

        tmpLabelC = new LabelledComponent(
                ar.getString(ar.I_JMQCMD_SVC_PORT)+":",
                servicePanel, LabelledComponent.NORTH);
        workGridbag.setConstraints(tmpLabelC, workConstraints);
        lvpItems[1] = tmpLabelC;

  // Set this so that we can enable/disable this component
  svcPortComponent = lvpItems[1];

        svcState = new JLabel();
        tmpLabelC = new LabelledComponent(
    ar.getString(ar.I_JMQCMD_SVC_STATE)+":",
    svcState);
        workGridbag.setConstraints(tmpLabelC, workConstraints);
  lvpItems[2] = tmpLabelC;

        lvp = new LabelValuePanel(lvpItems, 4, 0);
        workGridbag.setConstraints(lvp, workConstraints);
        workPanel.add(lvp);

        workConstraints.gridy = 1;

        sep = new JSeparator();
        workConstraints.fill = GridBagConstraints.HORIZONTAL;
        workGridbag.setConstraints(sep, workConstraints);
        workPanel.add(sep);
        /*
         * Reset
         */
        workConstraints.fill = GridBagConstraints.NONE;
        workConstraints.gridy = 2;

        lvpItems = new LabelledComponent[2];

        allocatedThreads = new JLabel();
        tmpLabelC = new LabelledComponent(
    ar.getString(ar.I_JMQCMD_SVC_CUR_THREADS) + ":",
    allocatedThreads);
        workGridbag.setConstraints(tmpLabelC, workConstraints);
  lvpItems[0] = tmpLabelC;

        numConnections = new JLabel();
        tmpLabelC = new LabelledComponent(
    ar.getString(ar.I_JMQCMD_SVC_NUM_CXN) + ":",
    numConnections);
        workGridbag.setConstraints(tmpLabelC, workConstraints);
  lvpItems[1] = tmpLabelC;

        lvp = new LabelValuePanel(lvpItems, 4, 0);
        workGridbag.setConstraints(lvp, workConstraints);
        workPanel.add(lvp);

        workConstraints.gridy = 3;

        sep = new JSeparator();
        workConstraints.fill = GridBagConstraints.HORIZONTAL;
        workGridbag.setConstraints(sep, workConstraints);
        workPanel.add(sep);
        /*
         * Reset
         */
        workConstraints.fill = GridBagConstraints.NONE;
        workConstraints.gridy = 4;

        lvpItems = new LabelledComponent[2];

        minThreads = new IntegerField(0, Integer.MAX_VALUE, 15);
  minThreads.addActionListener(this);
        tmpLabelC = new LabelledComponent(
                ar.getString(ar.I_JMQCMD_SVC_MIN_THREADS) + ":",
                minThreads);
        workGridbag.setConstraints(tmpLabelC, workConstraints);
        workPanel.add(tmpLabelC);
  lvpItems[0] = tmpLabelC;

  maxThreads = new IntegerField(0, Integer.MAX_VALUE, 15);
  maxThreads.addActionListener(this);
        tmpLabelC = new LabelledComponent(
                ar.getString(ar.I_JMQCMD_SVC_MAX_THREADS) + ":",
                maxThreads);
        workGridbag.setConstraints(tmpLabelC, workConstraints);
View Full Code Here

  instanceNameLbl = new JLabel();
  tmpLabelC = new LabelledComponent(acr.getString(acr.I_BROKER_INSTANCE_NAME),
      instanceNameLbl);
  lvpItems[1] = tmpLabelC;

  portTF = new IntegerField(0, Integer.MAX_VALUE, 10);
  tmpLabelC = new LabelledComponent(acr.getString(acr.I_BROKER_PORT), portTF);
  lvpItems[2] = tmpLabelC;

  autoCreateTopicCkb = new JCheckBox();
  tmpLabelC = new LabelledComponent(acr.getString(acr.I_BROKER_ACREATE_TOPICS),
        autoCreateTopicCkb);
  lvpItems[3] = tmpLabelC;

  autoCreateQueueCkb = new JCheckBox();
        autoCreateQueueCkb.addActionListener(this);
  tmpLabelC = new LabelledComponent(acr.getString(acr.I_BROKER_ACREATE_QUEUES),
        autoCreateQueueCkb);
  lvpItems[4] = tmpLabelC;

  /*
   * Active Consumers
   */
        activeConsumerIF = new IntegerField(0, Integer.MAX_VALUE, 10);
        activeConsumerSF = new SpecialValueField(activeConsumerIF,
        acr.getString(acr.I_BROKER_UNLIMITED));
  activeConsumerLabelC = new LabelledComponent
      (acr.getString(acr.I_BROKER_AUTOCREATED_ACTIVE_CONSUMER),
       activeConsumerSF, LabelledComponent.NORTH);
  lvpItems[5] = activeConsumerLabelC;

  /*
   * Failover Consumers
   */
        failoverConsumerIF = new IntegerField(0, Integer.MAX_VALUE, 10);
        failoverConsumerSF = new SpecialValueField(failoverConsumerIF,
        acr.getString(acr.I_BROKER_UNLIMITED));
  failoverConsumerLabelC = new LabelledComponent
      (acr.getString(acr.I_BROKER_AUTOCREATED_FAILOVER_CONSUMER),
       failoverConsumerSF, LabelledComponent.NORTH);
View Full Code Here

  workConstraints.ipady = 0;
  workConstraints.weightx = 1.0;

  lvpItems = new LabelledComponent[3];

  maxNumMsgsInMemDskTF = new IntegerField(0, Integer.MAX_VALUE, 10);
  maxNumMsgsInMemDskSF = new SpecialValueField(maxNumMsgsInMemDskTF,
      acr.getString(acr.I_BROKER_UNLIMITED));
  tmpLabelC = new LabelledComponent(
    acr.getString(acr.I_BROKER_MAX_MSGS_IN_MEM_DSK),
    maxNumMsgsInMemDskSF, LabelledComponent.NORTH);
View Full Code Here

  lvpItems = new LabelledComponent[6];

  /*
   * Queue message limit
   */
        mesgLimitIF = new IntegerField(0, Integer.MAX_VALUE, 11);
        mesgLimitSF = new SpecialValueField(mesgLimitIF,
        acr.getString(acr.I_BROKER_UNLIMITED));
  mesgLimitLabelC = new LabelledComponent
        (acr.getString(acr.I_BROKER_MAX_NUM_MSGS),
         mesgLimitSF, LabelledComponent.NORTH);
  lvpItems[i++] = mesgLimitLabelC;

  /*
   * Queue size limit
   */
        mesgSizeLimitBF = new BytesField(0, Long.MAX_VALUE, 11);
        mesgSizeLimitSF = new SpecialValueField(mesgSizeLimitBF,
        acr.getString(acr.I_BROKER_UNLIMITED));
  mesgSizeLimitLabelC = new LabelledComponent
        (acr.getString(acr.I_BROKER_MAX_TTL_SIZE_MSGS),
         mesgSizeLimitSF, LabelledComponent.NORTH);
  lvpItems[i++] = mesgSizeLimitLabelC;

        /*
         * Destination Maximum Size per Message
         */
        maxSizePerMsgBF = new BytesField(0, Long.MAX_VALUE, 11);
        maxSizePerMsgSF = new SpecialValueField(maxSizePerMsgBF,
        acr.getString(acr.I_BROKER_UNLIMITED));
  tmpLabelC = new LabelledComponent
      (acr.getString(acr.I_BROKER_MAX_SIZE_PER_MSG),
       maxSizePerMsgSF, LabelledComponent.NORTH);
  lvpItems[i++] = tmpLabelC;

  /*
   * Max Producers
   */
        maxProducerIF = new IntegerField(0, Integer.MAX_VALUE, 11);
        maxProducerSF = new SpecialValueField(maxProducerIF,
        acr.getString(acr.I_BROKER_UNLIMITED));
  maxProducerLabelC = new LabelledComponent
      (acr.getString(acr.I_BROKER_MAX_PRODUCERS),
       maxProducerSF, LabelledComponent.NORTH);
  lvpItems[i++] = maxProducerLabelC;

  /*
   * Active Consumers
   */
        activeConsumerIF = new IntegerField(0, Integer.MAX_VALUE, 11);
        activeConsumerSF = new SpecialValueField(activeConsumerIF,
        acr.getString(acr.I_BROKER_UNLIMITED));
  activeConsumerLabelC = new LabelledComponent
      (acr.getString(acr.I_BROKER_ACTIVE_CONSUMER),
       activeConsumerSF, LabelledComponent.NORTH);
  lvpItems[i++] = activeConsumerLabelC;

  /*
   * Failover Consumers
   */
        failoverConsumerIF = new IntegerField(0, Integer.MAX_VALUE, 11);
        failoverConsumerSF = new SpecialValueField(failoverConsumerIF,
        acr.getString(acr.I_BROKER_UNLIMITED));
  failoverConsumerLabelC = new LabelledComponent
      (acr.getString(acr.I_BROKER_FAILOVER_CONSUMER),
       failoverConsumerSF, LabelledComponent.NORTH);
View Full Code Here

  } else if (propType.equals(AdministeredObject.AO_PROPERTY_TYPE_INTEGER)) {

    if (propDefault == null)
        lc = new LabelledComponent(propLabel + ":",
        new IntegerField(Integer.MIN_VALUE,  
             Integer.MAX_VALUE,
             propDefault, 7));
    else
        lc = new LabelledComponent(propLabel + ":",
        new IntegerField(Integer.MIN_VALUE,  
             Integer.MAX_VALUE, 7));

    lc.setClientData(propName);
  } else if (propType.equals(AdministeredObject.AO_PROPERTY_TYPE_LONG)) {
    if (propDefault == null)
View Full Code Here

  destPanel.add(queueMessageLimitLimitedRB);

  destConstraints.gridx = 1;
  destConstraints.gridy = i;
  destConstraints.insets = zeroInsets;
  queueMessageLimitTF = new IntegerField(0, Integer.MAX_VALUE, 10);
  destGridbag.setConstraints(queueMessageLimitTF, destConstraints);
  destPanel.add(queueMessageLimitTF);

  destConstraints.gridx = 2;
  destConstraints.gridy = i++;
  destConstraints.insets = new Insets(0, 4, 0, 0);

        ButtonGroup qMessageLimitGroup = new ButtonGroup();
        qMessageLimitGroup.add(queueMessageLimitUnlimitedRB);
        qMessageLimitGroup.add(queueMessageLimitLimitedRB);
  /*
   * END Queue Message Limit
   */

  /*
   * BEGIN Queue Size Limit
   */
  destConstraints.gridx = 0;
  destConstraints.gridy = i++;
  destConstraints.gridwidth = GridBagConstraints.REMAINDER;
  destConstraints.insets = newSectionInsets;
  /*
        JLabel QSizeLimit = new JLabel("Queue Size Limit:");
  */
        QSizeLimit = new JLabel(acr.getString(acr.I_BROKER_MAX_TTL_SIZE_MSGS));
  destGridbag.setConstraints(QSizeLimit, destConstraints);
  destPanel.add(QSizeLimit);

  /*
   * Reset
   */
  destConstraints.gridwidth = 1;

  destConstraints.gridx = 0;
  destConstraints.gridy = i;
  destConstraints.insets = indentInsets;
        queueSizeLimitUnlimitedRB = new JRadioButton();
        queueSizeLimitUnlimitedRB.addActionListener(this);
  destGridbag.setConstraints(queueSizeLimitUnlimitedRB, destConstraints);
  destPanel.add(queueSizeLimitUnlimitedRB);

  destConstraints.gridx = 1;
  destConstraints.gridy = i++;
  destConstraints.insets = zeroInsets;
  destConstraints.gridwidth = GridBagConstraints.REMAINDER;
  queueSizeLimitUnlimitedLbl = new JLabel(acr.getString(acr.I_BROKER_UNLIMITED));
  destGridbag.setConstraints(queueSizeLimitUnlimitedLbl, destConstraints);
  destPanel.add(queueSizeLimitUnlimitedLbl);

  /*
   * Reset
   */
  destConstraints.gridwidth = 1;

  destConstraints.gridx = 0;
  destConstraints.gridy = i;
  destConstraints.insets = indentInsets;
        queueSizeLimitLimitedRB = new JRadioButton();
        queueSizeLimitLimitedRB.addActionListener(this);
  destGridbag.setConstraints(queueSizeLimitLimitedRB, destConstraints);
  destPanel.add(queueSizeLimitLimitedRB);

  destConstraints.gridx = 1;
  destConstraints.gridy = i++;
  destConstraints.gridwidth = GridBagConstraints.REMAINDER;
  destConstraints.insets = zeroInsets;
  queueSizeLimitBF = new BytesField(0, Integer.MAX_VALUE, 10);
  queueSizeLimitBF.addActionListener(this);
  destGridbag.setConstraints(queueSizeLimitBF, destConstraints);
  destPanel.add(queueSizeLimitBF);

        ButtonGroup qSizeLimitGroup = new ButtonGroup();
        qSizeLimitGroup.add(queueSizeLimitUnlimitedRB);
        qSizeLimitGroup.add(queueSizeLimitLimitedRB);
  /*
   * END Queue Size Limit
   */

  /*
   * Reset
   */
  destConstraints.gridwidth = 1;

  /*
   * BEGIN Maximum Size per Message
   */
  destConstraints.gridx = 0;
  destConstraints.gridy = i++;
  destConstraints.gridwidth = GridBagConstraints.REMAINDER;
  destConstraints.insets = newSectionInsets;
  /*
        JLabel maxSizePerMsg = new JLabel("Maximum Size per Message:");
  */
        JLabel maxSizePerMsg = new JLabel(acr.getString(acr.I_BROKER_MAX_SIZE_PER_MSG));
  destGridbag.setConstraints(maxSizePerMsg, destConstraints);
  destPanel.add(maxSizePerMsg);

  /*
   * Reset
   */
  destConstraints.gridwidth = 1;

  destConstraints.gridx = 0;
  destConstraints.gridy = i;
  destConstraints.insets = indentInsets;
        destMaxSizePerMsgUnlimitedRB = new JRadioButton();
        destMaxSizePerMsgUnlimitedRB.addActionListener(this);
  destGridbag.setConstraints(destMaxSizePerMsgUnlimitedRB, destConstraints);
  destPanel.add(destMaxSizePerMsgUnlimitedRB);

  destConstraints.gridx = 1;
  destConstraints.gridy = i++;
  destConstraints.insets = zeroInsets;
  destMaxSizePerMsgUnlimitedLbl = new JLabel(acr.getString(acr.I_BROKER_UNLIMITED));
  destGridbag.setConstraints(destMaxSizePerMsgUnlimitedLbl, destConstraints);
  destPanel.add(destMaxSizePerMsgUnlimitedLbl);

  destConstraints.gridx = 0;
  destConstraints.gridy = i;
  destConstraints.insets = indentInsets;
        destMaxSizePerMsgLimitedRB = new JRadioButton();
        destMaxSizePerMsgLimitedRB.addActionListener(this);
  destGridbag.setConstraints(destMaxSizePerMsgLimitedRB, destConstraints);
  destPanel.add(destMaxSizePerMsgLimitedRB);

  destConstraints.gridx = 1;
  destConstraints.gridy = i++;
  destConstraints.insets = zeroInsets;
  destConstraints.gridwidth = GridBagConstraints.REMAINDER;
  destMaxSizePerMsgBF = new BytesField(0, Integer.MAX_VALUE, 10);
  destMaxSizePerMsgBF.addActionListener(this);
  destGridbag.setConstraints(destMaxSizePerMsgBF, destConstraints);
  destPanel.add(destMaxSizePerMsgBF);

        ButtonGroup maxMesgSizeGroup = new ButtonGroup();
        maxMesgSizeGroup.add(destMaxSizePerMsgUnlimitedRB);
        maxMesgSizeGroup.add(destMaxSizePerMsgLimitedRB);
  /*
   * END Maximum Size per Message
   */

  /*
   * BEGIN Max Producer Count
   */
  destConstraints.gridx = 0;
  destConstraints.gridy = i++;
  destConstraints.gridwidth = GridBagConstraints.REMAINDER;
  destConstraints.insets = newSectionInsets;
        maxProducerLbl = new JLabel(acr.getString(acr.I_BROKER_MAX_PRODUCERS));
  destGridbag.setConstraints(maxProducerLbl, destConstraints);
  destPanel.add(maxProducerLbl);

  /*
   * Reset
   */
  destConstraints.gridwidth = 1;

  destConstraints.gridx = 0;
  destConstraints.gridy = i;
  destConstraints.insets = indentInsets;
        maxProducerUnlimitedRB = new JRadioButton();
        maxProducerUnlimitedRB.addActionListener(this);
  destGridbag.setConstraints(maxProducerUnlimitedRB, destConstraints);
  destPanel.add(maxProducerUnlimitedRB);

  destConstraints.gridx = 1;
  destConstraints.gridy = i++;
  destConstraints.insets = zeroInsets;
  destConstraints.gridwidth = GridBagConstraints.REMAINDER;
  maxProducerUnlimitedLbl = new JLabel(acr.getString(acr.I_BROKER_UNLIMITED));
  destGridbag.setConstraints(maxProducerUnlimitedLbl, destConstraints);
  destPanel.add(maxProducerUnlimitedLbl);

  /*
   * Reset
   */
  destConstraints.gridwidth = 1;

  destConstraints.gridx = 0;
  destConstraints.gridy = i;
  destConstraints.insets = indentInsets;
        maxProducerLimitedRB = new JRadioButton();
        maxProducerLimitedRB.addActionListener(this);
  destGridbag.setConstraints(maxProducerLimitedRB, destConstraints);
  destPanel.add(maxProducerLimitedRB);

  destConstraints.gridx = 1;
  destConstraints.gridy = i++;
  destConstraints.gridwidth = GridBagConstraints.REMAINDER;
  destConstraints.insets = zeroInsets;
  maxProducerIF = new IntegerField(0, Integer.MAX_VALUE, 10);
  maxProducerIF.addActionListener(this);
  destGridbag.setConstraints(maxProducerIF, destConstraints);
  destPanel.add(maxProducerIF);

        ButtonGroup maxProducerGroup = new ButtonGroup();
        maxProducerGroup.add(maxProducerUnlimitedRB);
        maxProducerGroup.add(maxProducerLimitedRB);

  /*
   * END Max Producer Count
   */

  /*
   * BEGIN Active Consumer Count
   */
  destConstraints.gridx = 0;
  destConstraints.gridy = i++;
  destConstraints.gridwidth = GridBagConstraints.REMAINDER;
        activeConsumerLbl = new JLabel(acr.getString(acr.I_BROKER_ACTIVE_CONSUMER));
  destGridbag.setConstraints(activeConsumerLbl, destConstraints);
  destPanel.add(activeConsumerLbl);

  /*
   * Reset
   */
  destConstraints.gridwidth = 1;

  destConstraints.gridx = 0;
  destConstraints.gridy = i;
  destConstraints.insets = indentInsets;
        activeConsumerUnlimitedRB = new JRadioButton();
        activeConsumerUnlimitedRB.addActionListener(this);
  destGridbag.setConstraints(activeConsumerUnlimitedRB, destConstraints);
  destPanel.add(activeConsumerUnlimitedRB);

  destConstraints.gridx = 1;
  destConstraints.gridy = i++;
  destConstraints.insets = zeroInsets;
  destConstraints.gridwidth = GridBagConstraints.REMAINDER;
  activeConsumerUnlimitedLbl = new JLabel(acr.getString(acr.I_BROKER_UNLIMITED));
  destGridbag.setConstraints(activeConsumerUnlimitedLbl, destConstraints);
  destPanel.add(activeConsumerUnlimitedLbl);

  /*
   * Reset
   */
  destConstraints.gridwidth = 1;

  destConstraints.gridx = 0;
  destConstraints.gridy = i;
  destConstraints.insets = indentInsets;
        activeConsumerLimitedRB = new JRadioButton();
        activeConsumerLimitedRB.addActionListener(this);
  destGridbag.setConstraints(activeConsumerLimitedRB, destConstraints);
  destPanel.add(activeConsumerLimitedRB);

  destConstraints.gridx = 1;
  destConstraints.gridy = i++;
  destConstraints.gridwidth = GridBagConstraints.REMAINDER;
  destConstraints.insets = zeroInsets;
  activeConsumerIF = new IntegerField(0, Integer.MAX_VALUE, 10);
  activeConsumerIF.addActionListener(this);
  destGridbag.setConstraints(activeConsumerIF, destConstraints);
  destPanel.add(activeConsumerIF);

        ButtonGroup activeConsumerGroup = new ButtonGroup();
        activeConsumerGroup.add(activeConsumerUnlimitedRB);
        activeConsumerGroup.add(activeConsumerLimitedRB);

  /*
   * END Active Consumer Count
   */

  /*
   * BEGIN Failover Consumer Count
   */
  destConstraints.gridx = 0;
  destConstraints.gridy = i++;
  destConstraints.gridwidth = GridBagConstraints.REMAINDER;
  destConstraints.insets = newSectionInsets;
        failoverConsumerLbl = new JLabel(acr.getString(acr.I_BROKER_FAILOVER_CONSUMER));
  destGridbag.setConstraints(failoverConsumerLbl, destConstraints);
  destPanel.add(failoverConsumerLbl);

  /*
   * Reset
   */
  destConstraints.gridwidth = 1;

  destConstraints.gridx = 0;
  destConstraints.gridy = i;
  destConstraints.insets = indentInsets;
        failoverConsumerUnlimitedRB = new JRadioButton();
        failoverConsumerUnlimitedRB.addActionListener(this);
  destGridbag.setConstraints(failoverConsumerUnlimitedRB, destConstraints);
  destPanel.add(failoverConsumerUnlimitedRB);

  destConstraints.gridx = 1;
  destConstraints.gridy = i++;
  destConstraints.insets = zeroInsets;
  destConstraints.gridwidth = GridBagConstraints.REMAINDER;
  failoverConsumerUnlimitedLbl = new JLabel(acr.getString(acr.I_BROKER_UNLIMITED));
  destGridbag.setConstraints(failoverConsumerUnlimitedLbl, destConstraints);
  destPanel.add(failoverConsumerUnlimitedLbl);

  /*
   * Reset
   */
  destConstraints.gridwidth = 1;

  destConstraints.gridx = 0;
  destConstraints.gridy = i;
  destConstraints.insets = indentInsets;
        failoverConsumerLimitedRB = new JRadioButton();
        failoverConsumerLimitedRB.addActionListener(this);
  destGridbag.setConstraints(failoverConsumerLimitedRB, destConstraints);
  destPanel.add(failoverConsumerLimitedRB);

  destConstraints.gridx = 1;
  destConstraints.gridy = i++;
  destConstraints.gridwidth = GridBagConstraints.REMAINDER;
  destConstraints.insets = zeroInsets;
  failoverConsumerIF = new IntegerField(0, Integer.MAX_VALUE, 10);
  failoverConsumerIF.addActionListener(this);
  destGridbag.setConstraints(failoverConsumerIF, destConstraints);
  destPanel.add(failoverConsumerIF);

        ButtonGroup failoverConsumerGroup = new ButtonGroup();
View Full Code Here

TOP

Related Classes of com.sun.messaging.jmq.admin.apps.console.util.IntegerField

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.