Package org.jboss.as.console.client.widgets.forms

Examples of org.jboss.as.console.client.widgets.forms.TextBoxItem


        layout.add(new HTML("<h3>Step 1/3: Datasource Attributes</h3>"));

        final Form<DataSource> form = new Form<DataSource>(DataSource.class);

        final TextBoxItem name = new TextBoxItem("name", "Name");
        TextBoxItem jndiName = new TextBoxItem("jndiName", "JNDI Name") {
            @Override
            public boolean validate(String value) {
                boolean notEmpty = super.validate(value);

                return notEmpty && !value.contains(":") && !value.startsWith("/");
View Full Code Here


        layout.add(new HTML("<h3>Step 4/4: Connection Settings</h3>"));

        form = new Form<XADataSource>(XADataSource.class);

        TextBoxItem user = new TextBoxItem("username", "Username");
        PasswordBoxItem pass = new PasswordBoxItem("password", "Password") {
            {
                isRequired = false;
            }
        };
View Full Code Here

        layout.add(new HTML("<h3>Step 1/4: Datasource Attributes</h3>"));

        final Form<XADataSource> form = new Form<XADataSource>(XADataSource.class);

        TextBoxItem name = new TextBoxItem("name", "Name");
        TextBoxItem jndiName = new TextBoxItem("jndiName", "JNDI Name") {
            @Override
            public boolean validate(String value) {
                boolean notEmpty = super.validate(value);

                return notEmpty && !value.contains(":") && !value.startsWith("/");
View Full Code Here

        layout.add(new HTML("<h3>Step 3/3: Connection Settings</h3>"));

        form = new Form<DataSource>(DataSource.class);

        TextBoxItem connectionUrl = new TextBoxItem("connectionUrl", "Connection URL");
        TextBoxItem user = new TextBoxItem("username", "Username");
        PasswordBoxItem pass = new PasswordBoxItem("password", "Password") {
            {
                isRequired = false;
            }
        };
View Full Code Here

        layout.add(new HTML("<h3>Create Address Pattern</h3>"));

        final Form<SecurityPattern> form = new Form<SecurityPattern>(SecurityPattern.class);


        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(
View Full Code Here

        VerticalPanel layout = new VerticalPanel();
        layout.setStyleName("fill-layout-width");
        final Form<JMSEndpoint> form = new Form<JMSEndpoint>(JMSEndpoint.class);


        TextBoxItem name = new TextBoxItem("name", "Name");
        TextBoxItem jndi = new TextBoxItem("jndiName", "JNDI");

        form.setFields(name, jndi);

        layout.add(form.asWidget());
View Full Code Here

        VerticalPanel layout = new VerticalPanel();
        layout.setStyleName("window-content");

        final Form<ServerGroupRecord> form = new Form(ServerGroupRecord.class);

        TextBoxItem nameField = new TextBoxItem("groupName", Console.CONSTANTS.common_label_name())
        {
            @Override
            public boolean validate(String value) {
                boolean hasValue = super.validate(value);
                boolean hasWhitespace = value.contains(" ");
View Full Code Here

        VerticalPanel panel = new VerticalPanel();
        panel.add(detailToolStrip);

        final TextItem nameItem = new TextItem("name", "Name");
        TextBoxItem jndiItem = new TextBoxItem("jndiName", "JNDI");
        CheckBoxItem enabledFlagItem = new CheckBoxItem("enabled", "Is enabled?");
        TextItem driverItem = new TextItem("driverName", "Driver");

        TextBoxItem userItem = new TextBoxItem("username", "Username");
        PasswordBoxItem passwordItem = new PasswordBoxItem("password", "Password");

        form.setFields(nameItem, jndiItem, enabledFlagItem, driverItem);
        form.setFieldsInGroup("Connection", new DefaultGroupRenderer(), userItem, passwordItem);
View Full Code Here

        layout.setStyleName("window-content");

        final Form<Server> form = new Form<Server>(Server.class);
        form.setNumColumns(1);

        TextBoxItem nameItem = new TextBoxItem("name", Console.CONSTANTS.common_label_name())
        {
            @Override
            public boolean validate(String value) {
                boolean hasValue = super.validate(value);
                boolean hasWhitespace = value.contains(" ");
View Full Code Here

        VerticalPanel layout = new VerticalPanel();
        layout.setStyleName("window-content");

        final Form<Jvm> form = new Form<Jvm>(Jvm.class);

        TextBoxItem nameItem = new TextBoxItem("name", Console.CONSTANTS.common_label_name());
        TextBoxItem heapItem = new TextBoxItem("heapSize", "Heap Size");
        TextBoxItem maxHeapItem = new TextBoxItem("maxHeapSize", "Max Heap Size");
        //CheckBoxItem debugItem = new CheckBoxItem("debugEnabled", "Debug Enabled?");
        //TextBoxItem debugOptionsItem = new TextBoxItem("debugOptions", "Debug Options");

        form.setFields(nameItem, heapItem, maxHeapItem);
View Full Code Here

TOP

Related Classes of org.jboss.as.console.client.widgets.forms.TextBoxItem

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.