Package org.jboss.ballroom.client.widgets.forms

Examples of org.jboss.ballroom.client.widgets.forms.NumberBoxItem


        // ----

        StatusItem disabled= new StatusItem("disabled", "Disabled?");
        StatusItem development= new StatusItem("development", "Development?");
        StatusItem keepGenerated= new StatusItem("keepGenerated", "Keep Generated?");
        NumberBoxItem checkInterval = new NumberBoxItem("checkInterval", "Check Interval");
        StatusItem sourceFragment= new StatusItem("displaySource", "Display Source?");


        form.setFields(disabled, development);
        form.setFieldsInGroup("Advanced", new DisclosureGroupRenderer(), keepGenerated, checkInterval, sourceFragment);
View Full Code Here


        // --

        final Form<JDBCDriver> form = new Form<JDBCDriver>(JDBCDriver.class);
        TextBoxItem name = new TextBoxItem("name", "Name", true);
        TextBoxItem driverClass = new TextBoxItem("driverClass", "Driver Class", false);
        NumberBoxItem major = new NumberBoxItem("majorVersion", "Major Version")
        {
            {
                setRequired(false);
            }
        };
        NumberBoxItem minor = new NumberBoxItem("minorVersion", "Minor Version")
        {
            {
                setRequired(false);
            }
        };
View Full Code Here

            name = new TextBoxItem("name", "Name");
        else
            name = new TextItem("name", "Name");


        NumberBoxItem callTimeout = new NumberBoxItem("callTimeout", "Call Timeout");
        NumberBoxItem checkPeriod = new NumberBoxItem("checkPeriod", "Check Period");


        TextBoxItem connectionAddress= new TextBoxItem("clusterConnectionAddress", "Connection Address");
        NumberBoxItem connectionTtl= new NumberBoxItem("connectionTTL", "Connection TTL");

        TextBoxItem connectorRef= new TextBoxItem("connectorRef", "Connector Ref");
        TextBoxItem groupName= new TextBoxItem("discoveryGroupName", "Discovery Group");
        CheckBoxItem forward = new CheckBoxItem("forwardWhenNoConsumers","Forward?");

        NumberBoxItem maxHops = new NumberBoxItem("maxHops", "Max Hops");
        NumberBoxItem retryInterval = new NumberBoxItem("retryInterval", "Retry Interval");
        NumberBoxItem maxRetryInterval = new NumberBoxItem("maxRetryInterval", "Max Retry");
        NumberBoxItem reconnect = new NumberBoxItem("reconnectAttempts", "Reconnect Attempts");

        CheckBoxItem duplicateDetection = new CheckBoxItem("duplicateDetection","Duplicate Detection?");

        if(isCreate)
            form.setFields(name, groupName, connectorRef, connectionAddress);
View Full Code Here

        CheckBoxItem failoverInitial = new CheckBoxItem("failoverInitial", "Failover Initial?");

        CheckBoxItem globalPools = new CheckBoxItem("useGlobalPools", "Global Pools?");

        NumberBoxItem threadPool = new NumberBoxItem("threadPoolMax", "Thread Pool Max");
        NumberBoxItem txBatch = new NumberBoxItem("transactionBatchSize", "Transaction Batch Size");

        if(isCreate) {

            TextBoxItem name = new TextBoxItem("name", "Name");
View Full Code Here

    }
   
    private static class NumberBoxItemFactory implements FormItemFactory {
        @Override
        public FormItem makeFormItem(String beanPropName, String label, boolean isRequired) {
            NumberBoxItem numberItem = new NumberBoxItem(beanPropName, label);
            numberItem.setRequired(isRequired);
            return numberItem;
        }
View Full Code Here

        TextBoxItem pattern = new TextBoxItem("pattern", "Pattern");

        TextBoxItem dlQ = new TextBoxItem("deadLetterQueue", "Dead Letter Queue");
        TextBoxItem expQ= new TextBoxItem("expiryQueue", "Expiry Queue");
        NumberBoxItem redelivery = new NumberBoxItem("redeliveryDelay", "Redelivery Delay");

        form.setFields(pattern, dlQ, expQ, redelivery);

        // defaults
        AddressingPattern defaultPattern = findDefaultPattern();
        if(defaultPattern!=null) {
            dlQ.setValue(defaultPattern.getDeadLetterQueue());
            expQ.setValue(defaultPattern.getExpiryQueue());
            redelivery.setValue(defaultPattern.getRedeliveryDelay());
        }
        layout.add(form.asWidget());

        DialogueOptions options = new DialogueOptions(
                new ClickHandler() {
View Full Code Here

        form.setNumColumns(2);
        form.bind(addrTable);

        TextBoxItem dlQ = new TextBoxItem("deadLetterQueue", "Dead Letter Queue");
        TextBoxItem expQ= new TextBoxItem("expiryQueue", "Expiry Queue");
        NumberBoxItem redelivery = new NumberBoxItem("redeliveryDelay", "Redelivery Delay");

        form.setFields(dlQ, expQ, redelivery);

        StaticHelpPanel helpPanel = new StaticHelpPanel(MessagingDescription.getAddressingDescription());
        layout.add(helpPanel.asWidget());
View Full Code Here

        StatusItem development= new StatusItem("development", "Development?");

        StatusItem keepGenerated= new StatusItem("keepGenerated", "Keep Generated?");

        NumberBoxItem checkInterval = new NumberBoxItem("checkInterval", "Check Interval");

        StatusItem sourceFragment= new StatusItem("displaySource", "Display Source?");


        form.setFields(disabled, development);
View Full Code Here

        // TODO: https://issues.jboss.org/browse/AS7-661
        TextItem groupItem = new TextItem("group", Console.CONSTANTS.common_label_serverGroup());

        // ------------------------------------------------------

        final NumberBoxItem portOffset = new NumberBoxItem("portOffset", Console.CONSTANTS.common_label_portOffset());

        socketItem = new ComboBoxItem("socketBinding", Console.CONSTANTS.common_label_socketBinding())
        {
            @Override
            public boolean validate(String value) {
View Full Code Here

                        case BOOLEAN:
                            CheckBoxItem checkBoxItem = new CheckBoxItem(attr.getName(), label);
                            items.add(checkBoxItem);
                            break;
                        case DOUBLE:
                            NumberBoxItem num = new NumberBoxItem(attr.getName(), label);
                            num.setRequired(required);
                            items.add(num);
                            break;
                        case LONG:
                            NumberBoxItem num2 = new NumberBoxItem(attr.getName(), label);
                            num2.setRequired(required);
                            items.add(num2);
                            break;
                        case INT:
                            NumberBoxItem num3 = new NumberBoxItem(attr.getName(), label);
                            num3.setRequired(required);
                            items.add(num3);
                            break;
                        case STRING:
                            if(attrValue.get("allowed").isDefined())
                            {
View Full Code Here

TOP

Related Classes of org.jboss.ballroom.client.widgets.forms.NumberBoxItem

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.