Search in sources :

Example 1 with TimeField

use of com.sun.messaging.jmq.admin.apps.console.util.TimeField in project openmq by eclipse-ee4j.

the class BrokerQueryDialog method makeLogTab.

public JPanel makeLogTab() {
    JPanel workPanel;
    GridBagLayout workGridbag;
    GridBagConstraints workConstraints;
    LabelledComponent tmpLabelC;
    LabelledComponent[] lvpItems;
    LabelValuePanel lvp;
    workPanel = new JPanel();
    workGridbag = new GridBagLayout();
    workPanel.setLayout(workGridbag);
    workConstraints = new GridBagConstraints();
    workConstraints.gridx = 0;
    workConstraints.anchor = GridBagConstraints.WEST;
    workConstraints.fill = GridBagConstraints.NONE;
    workConstraints.insets = new Insets(5, 0, 5, 0);
    workConstraints.ipadx = 0;
    workConstraints.ipady = 0;
    workConstraints.weightx = 1.0;
    lvpItems = new LabelledComponent[3];
    logLevelCb = new JComboBox(BKR_LOG_LEVEL_VALID_VALUES.toArray(new String[BKR_LOG_LEVEL_VALID_VALUES.size()]));
    tmpLabelC = new LabelledComponent(acr.getString(acr.I_BROKER_LOG_LEVEL), logLevelCb);
    lvpItems[0] = tmpLabelC;
    logRolloverSizeBF = new BytesField(0, Integer.MAX_VALUE, "0", 10);
    logRolloverSizeSF = new SpecialValueField(logRolloverSizeBF, acr.getString(acr.I_BROKER_UNLIMITED));
    tmpLabelC = new LabelledComponent(acr.getString(acr.I_BROKER_LOG_ROLLOVER_SIZE), logRolloverSizeSF, LabelledComponent.NORTH);
    lvpItems[1] = tmpLabelC;
    logRolloverIntervalTF = new TimeField(Integer.MAX_VALUE, "0", 10);
    logRolloverIntervalSF = new SpecialValueField(logRolloverIntervalTF, acr.getString(acr.I_BROKER_UNLIMITED));
    tmpLabelC = new LabelledComponent(acr.getString(acr.I_BROKER_LOG_ROLLOVER_INTERVAL), logRolloverIntervalSF, LabelledComponent.NORTH);
    lvpItems[2] = tmpLabelC;
    lvp = new LabelValuePanel(lvpItems, 4, 5);
    workGridbag.setConstraints(lvp, workConstraints);
    workPanel.add(lvp);
    return (workPanel);
}
Also used : LabelledComponent(com.sun.messaging.jmq.admin.apps.console.util.LabelledComponent) LabelValuePanel(com.sun.messaging.jmq.admin.apps.console.util.LabelValuePanel) JPanel(javax.swing.JPanel) BytesField(com.sun.messaging.jmq.admin.apps.console.util.BytesField) TimeField(com.sun.messaging.jmq.admin.apps.console.util.TimeField) GridBagConstraints(java.awt.GridBagConstraints) Insets(java.awt.Insets) GridBagLayout(java.awt.GridBagLayout) JComboBox(javax.swing.JComboBox) SpecialValueField(com.sun.messaging.jmq.admin.apps.console.util.SpecialValueField)

Aggregations

BytesField (com.sun.messaging.jmq.admin.apps.console.util.BytesField)1 LabelValuePanel (com.sun.messaging.jmq.admin.apps.console.util.LabelValuePanel)1 LabelledComponent (com.sun.messaging.jmq.admin.apps.console.util.LabelledComponent)1 SpecialValueField (com.sun.messaging.jmq.admin.apps.console.util.SpecialValueField)1 TimeField (com.sun.messaging.jmq.admin.apps.console.util.TimeField)1 GridBagConstraints (java.awt.GridBagConstraints)1 GridBagLayout (java.awt.GridBagLayout)1 Insets (java.awt.Insets)1 JComboBox (javax.swing.JComboBox)1 JPanel (javax.swing.JPanel)1