Package com.extjs.gxt.ui.client.widget.layout

Examples of com.extjs.gxt.ui.client.widget.layout.AbsoluteData


   
    Image image = new Image("images/LogonWindow.qq_PictureGraphic29.png");
    add(image);
   
    final TextField txtflUserID = new TextField();
    add(txtflUserID, new AbsoluteData(160, 66));
    txtflUserID.setFieldLabel("User ID");
   
    TextField txtfldPassword = new TextField();
    txtfldPassword.setPassword(true);
    add(txtfldPassword, new AbsoluteData(160, 117));
    txtfldPassword.setFieldLabel("Password");
   
    Button btnAsCustomer = new Button("As Customer");
    btnAsCustomer.addListener(Events.Select, new Listener<ButtonEvent>() {
      public void handleEvent(ButtonEvent e) {
        CustomerWindow customerWindow = new CustomerWindow((String)txtflUserID.getValue());
      }
    });
    add(btnAsCustomer, new AbsoluteData(97, 189));
   
    Button btnAsTrader = new Button("As Trader");
    add(btnAsTrader, new AbsoluteData(222, 189));
   
    LabelField lblfldUserId = new LabelField("User ID");
    add(lblfldUserId, new AbsoluteData(54, 66));
   
    LabelField lblfldPassword = new LabelField("Password");
    add(lblfldPassword, new AbsoluteData(65, 117));
  }
View Full Code Here


        };

        subjectStore = new ListStore<SubjectData>();

        LabelField lblfldTemplateName = new LabelField(textMessages.name_());
        add(lblfldTemplateName, new AbsoluteData(6, 6));
        templateNameTextBox = new TextField<String>();
        add(templateNameTextBox, new AbsoluteData(87, 6));
        templateNameTextBox.setSize("276px", "22px");

        List<ColumnConfig> config = new ArrayList<ColumnConfig>(2);
        ColumnConfig column = new ColumnConfig();
        column.setId(Constants.SUBJECT);
        column.setHeader(textMessages.userGroup());
        column.setWidth(216);
        config.add(column);
        column = new ColumnConfig();
        column.setId(Constants.ACCESSLEVEL);
        column.setHeader(textMessages.accessLevel());
        column.setWidth(113);
        column.setEditor(accessLevelEditor);
        config.add(column);
        ColumnModel cm = new ColumnModel(config);
        permissionGrid = new EditorGrid<TemplateData>(permissionStore, cm);
        permissionGrid.setBorders(true);
        permissionGrid.setStripeRows(true);
        GridSelectionModel<TemplateData> gsm = permissionGrid.getSelectionModel();
        gsm.setSelectionMode(SelectionMode.SINGLE);
        permissionGrid.addListener(Events.CellClick, new Listener<GridEvent<TemplateData>>()
        {
            @Override
            public void handleEvent(GridEvent<TemplateData> ge)
            {
                selectedPermission = ge.getModel();
            }
        });
        permissionGrid.setSize(200, 200);
        add(permissionGrid, new AbsoluteData(3, 33));
        permissionGrid.setSize("360px", "221px");

        Button removeButton = new Button(textMessages.removeSelected(),
                new SelectionListener<ButtonEvent>()
                {
                    @Override
                    public void componentSelected(ButtonEvent ce)
                    {
                        doRemove();
                    }
                });
        add(removeButton, new AbsoluteData(258, 260));
        removeButton.setSize("105px", "22px");

        Button addUserButton = new Button(textMessages.add(),
                new SelectionListener<ButtonEvent>()
                {
                    @Override
                    public void componentSelected(ButtonEvent ce)
                    {
                        doAdd();
                    }
                });
        add(addUserButton, new AbsoluteData(160, 260));
        addUserButton.setSize("51px", "22px");

        comboSubjects = new ComboBox<SubjectData>();
        add(comboSubjects, new AbsoluteData(3, 260));
        comboSubjects.setEmptyText(textMessages.selectUserGroup());
        comboSubjects.setDisplayField(Constants.NAME);
        comboSubjects.setStore(subjectStore);
        comboSubjects.setTypeAhead(true);
        comboSubjects.setTriggerAction(TriggerAction.ALL);

        Button btnRemoveAll = new Button(textMessages.removeAll());
        btnRemoveAll.addSelectionListener(new SelectionListener<ButtonEvent>()
        {
            @Override
            public void componentSelected(ButtonEvent ce)
            {
                doRemoveAll();
            }
        });
        add(btnRemoveAll, new AbsoluteData(258, 284));
        btnRemoveAll.setSize("105px", "22px");
       
        chkbxShared = new CheckBox();
        add(chkbxShared, new AbsoluteData(6, 284));
        chkbxShared.setBoxLabel(textMessages.shared_());
        chkbxShared.setHideLabel(true);
        if (template.getId() != 0)
        {
            if (!clientSessionUtil.isAuthorized(Function.BYPASS_TEMPLATE_SHARING) &&
View Full Code Here

        this.setLayout(new AbsoluteLayout());
        this.setSize("455", "475");
        this.setResizable(false);
       
        LabelField lblfldUsername = new LabelField(textMessages.username_());
        add(lblfldUsername, new AbsoluteData(6, 6));
        usernameTextBox = new TextField<String>();
        usernameTextBox.setReadOnly(user.getId() > 0);
        add(usernameTextBox, new AbsoluteData(144, 6));
        usernameTextBox.setSize("271px", "22px");
        LabelField lblfldFullName = new LabelField(textMessages.fullname_());
        add(lblfldFullName, new AbsoluteData(6, 34));
        fullnameTextBox = new TextField<String>();
        add(fullnameTextBox, new AbsoluteData(144, 34));
        fullnameTextBox.setSize("271px", "22px");
        LabelField lblfldEmail = new LabelField(textMessages.email_());
        add(lblfldEmail, new AbsoluteData(6, 62));
        emailTextBox = new TextField<String>();
        add(emailTextBox, new AbsoluteData(144, 62));
        emailTextBox.setSize("271px", "22px");
        LabelField lblfldPassword = new LabelField(textMessages.password_());
        add(lblfldPassword, new AbsoluteData(6, 90));
        password1TextBox = new TextField<String>();
        password1TextBox.setPassword(true);
        add(password1TextBox, new AbsoluteData(144, 90));
        password1TextBox.setSize("271px", "22px");
        password2TextBox = new TextField<String>();
        password2TextBox.setPassword(true);
        add(password2TextBox, new AbsoluteData(144, 118));
        password2TextBox.setSize("271px", "22px");
        enabledCheckBox = new CheckBox();
        enabledCheckBox.setBoxLabel(textMessages.enabled());
        add(enabledCheckBox, new AbsoluteData(144, 146));
        enabledCheckBox.setSize("76px", "22px");

        LabelField lblfldGroups = new LabelField(textMessages.groups_());
        add(lblfldGroups, new AbsoluteData(6, 170));
        LabelField lblfldAvailable = new LabelField(textMessages.available());
        add(lblfldAvailable, new AbsoluteData(6, 195));
        LabelField lblfldMembers = new LabelField(textMessages.memberOf());
        add(lblfldMembers, new AbsoluteData(233, 195));

        DualListField<GroupData> membersListBox = new DualListField<GroupData>();
        add(membersListBox, new AbsoluteData(6, 216));
        membersListBox.setSize("424px", "183px");
        ListField<GroupData> from = membersListBox.getFromList();
        ListField<GroupData> to = membersListBox.getToList();
        from.setSize(300, 100);
        from.setDisplayField(Constants.NAME);
View Full Code Here

        this.setLayout(new AbsoluteLayout());
        this.setSize("455", "355");
        this.setResizable(false);

        LabelField lblfldName = new LabelField(textMessages.name_());
        add(lblfldName, new AbsoluteData(6, 13));
        lblfldName.setSize("82px", "19px");

        nameTextBox = new TextField<String>();
        add(nameTextBox, new AbsoluteData(128, 13));
        nameTextBox.setSize("306px", "22px");

        LabelField lblfldUsers = new LabelField(textMessages.users_());
        add(lblfldUsers, new AbsoluteData(6, 49));
        lblfldUsers.setSize("54px", "19px");
       
        LabelField lblfldAvailable = new LabelField(textMessages.available());
        add(lblfldAvailable, new AbsoluteData(6, 74));
        lblfldAvailable.setSize("67px", "19px");

        LabelField lblfldMembers = new LabelField(textMessages.members());
        add(lblfldMembers, new AbsoluteData(232, 74));
        lblfldMembers.setSize("74px", "19px");

        DualListField<UserData> membersListBox = new DualListField<UserData>();
        add(membersListBox, new AbsoluteData(6, 96));
        membersListBox.setSize("428px", "183px");
        ListField<UserData> from = membersListBox.getFromList();
        ListField<UserData> to = membersListBox.getToList();

        from.setSize(300, 100);
View Full Code Here

            {
                selectedPermission = ge.getModel();
            }
        });
        permissionGrid.setSize(200, 200);
        add(permissionGrid, new AbsoluteData(3, 3));
        permissionGrid.setSize("360px", "221px");

        Button removeButton = new Button(textMessages.removeSelected(),
                new SelectionListener<ButtonEvent>()
                {
                    @Override
                    public void componentSelected(ButtonEvent ce)
                    {
                        doRemove();
                    }
                });
        removeButton.setEnabled(isPasswordGrantable);
        add(removeButton, new AbsoluteData(258, 230));
        removeButton.setSize("105px", "22px");

        Button addUserButton = new Button(textMessages.add(),
                new SelectionListener<ButtonEvent>()
                {
                    @Override
                    public void componentSelected(ButtonEvent ce)
                    {
                        doAdd();
                    }
                });
        addUserButton.setEnabled(isPasswordGrantable);
        add(addUserButton, new AbsoluteData(160, 230));
        addUserButton.setSize("51px", "22px");

        comboSubjects = new ComboBox<SubjectData>();
        add(comboSubjects, new AbsoluteData(3, 230));
        comboSubjects.setEmptyText(textMessages.selectUserGroup());
        comboSubjects.setDisplayField(Constants.NAME);
        comboSubjects.setStore(subjectStore);
        comboSubjects.setTypeAhead(true);
        comboSubjects.setTriggerAction(TriggerAction.ALL);
        comboSubjects.setEnabled(isPasswordGrantable);

        Button btnRemoveAll = new Button(textMessages.removeAll());
        btnRemoveAll.addSelectionListener(new SelectionListener<ButtonEvent>()
        {
            @Override
            public void componentSelected(ButtonEvent ce)
            {
                doRemoveAll();
            }
        });
        btnRemoveAll.setEnabled(isPasswordGrantable);
        add(btnRemoveAll, new AbsoluteData(258, 254));
        btnRemoveAll.setSize("105px", "22px");
       
        Button btnAddTemplate = new Button(textMessages.addTemplate(),
                new SelectionListener<ButtonEvent>()
                {
                    @Override
                    public void componentSelected(ButtonEvent ce)
                    {
                        doAddTemplate();
                    }
                });
        btnAddTemplate.setEnabled(isPasswordGrantable);
        add(btnAddTemplate, new AbsoluteData(126, 254));
        btnAddTemplate.setSize("85px", "22px");

        Button okayButton = new Button(textMessages.okay(),
                new SelectionListener<ButtonEvent>()
                {
View Full Code Here

        this.setLayout(new AbsoluteLayout());
        this.setSize(430, 415);
        this.setResizable(false);
       
        LabelField lblfldName = new LabelField(textMessages.title_());
        add(lblfldName, new AbsoluteData(7, 6));

        nameTextBox = new TextField<String>();
        nameTextBox.setReadOnly(isPasswordReadOnly);
        add(nameTextBox, new AbsoluteData(82, 6));
        nameTextBox.setSize("331px", "22px");

        LabelField lblfldUsername = new LabelField(textMessages.username_());
        add(lblfldUsername, new AbsoluteData(7, 34));
       
        usernameTextBox = new TextField<String>();
        usernameTextBox.setReadOnly(isPasswordReadOnly);
        add(usernameTextBox, new AbsoluteData(82, 34));
        usernameTextBox.setSize("331px", "22px");

        LabelField lblfldPassword = new LabelField(textMessages.password_());
        add(lblfldPassword, new AbsoluteData(7, 62));
       
        passwordTextBox = new TextField<String>();
        passwordTextBox.setReadOnly(isPasswordReadOnly);
        add(passwordTextBox, new AbsoluteData(82, 62));
        passwordTextBox.setSize("331px", "22px");

        Button generateButton = new Button(textMessages.generatePassword(), new SelectionListener<ButtonEvent>() {
            @Override
            public void componentSelected(ButtonEvent ce) {
                doGeneratePassword();
            }
        });
        generateButton.setEnabled(!isPasswordReadOnly);
        add(generateButton, new AbsoluteData(82, 90));
        generateButton.setSize("127px", "22px");
       
        Button currentButton = new Button(textMessages.currentPassword(), new SelectionListener<ButtonEvent>()
        {
            @Override
            public void componentSelected(ButtonEvent ce)
            {
                doGetCurrentPassword();
            }
        });
        add(currentButton, new AbsoluteData(215, 90));
        currentButton.setSize("127px", "22px");
        currentButton.setEnabled(password.getId() > 0);

        Button historyButton = new Button(textMessages.viewPasswordHistory(), new SelectionListener<ButtonEvent>()
        {
            @Override
            public void componentSelected(ButtonEvent ce)
            {
                doViewPasswordHistory();
            }
        });
        add(historyButton, new AbsoluteData(215, 311));
        historyButton.setSize("127px", "22px");
        historyButton.setEnabled(password.getId() > 0);

        LabelField lblfldTags = new LabelField(textMessages.tags_());
        add(lblfldTags, new AbsoluteData(6, 118));
           
        tagsComboBox = new TextHelperComboBox<TagData>();
        tagsComboBox.setReadOnly(isPasswordReadOnly);
        add(tagsComboBox, new AbsoluteData(82, 118));
        tagsComboBox.setSize("331px", "22px");
        tagsComboBox.setEditable(true);
        tagsComboBox.setForceSelection(false);
        tagsComboBox.setHideTrigger(true);
        tagStore = new ListStore<TagData>();
        tagsComboBox.setStore(tagStore);
        tagsComboBox.setDisplayField(Constants.NAME);

        LabelField lblfldNotes = new LabelField(textMessages.notes_());
        add(lblfldNotes, new AbsoluteData(6, 146));
       
        notesTextArea = new TextArea();
        notesTextArea.setReadOnly(isPasswordReadOnly);
        add(notesTextArea, new AbsoluteData(82, 146));
        notesTextArea.setSize("331px", "75px");
       
        LabelField lblfldMaxHistory = new LabelField(textMessages.maxHistory_());
        add(lblfldMaxHistory, new AbsoluteData(6, 227));
       
        maxHistoryTextBox = new NumberField();
        maxHistoryTextBox.setReadOnly(isPasswordReadOnly);
        maxHistoryTextBox.setPropertyEditorType(Integer.class);
        add(maxHistoryTextBox, new AbsoluteData(82, 227));
        maxHistoryTextBox.setSize("76px", "22px");

        LabelField lblfldInfinite = new LabelField(textMessages.infinite());
        add(lblfldInfinite, new AbsoluteData(164, 227));
       
        activeCheckBox = new CheckBox();
        activeCheckBox.setReadOnly(isPasswordReadOnly);
        activeCheckBox.setBoxLabel(textMessages.active());
        add(activeCheckBox, new AbsoluteData(82, 255));
       
        Button editPermissionsButton = new Button(isPasswordGrantable ?
                textMessages.editPermissions() : textMessages.viewPermissions(),
                new SelectionListener<ButtonEvent>()
        {
            @Override
            public void componentSelected(ButtonEvent ce) {
                doEditPermissions();
            }
        });
        add(editPermissionsButton, new AbsoluteData(82, 283));
        editPermissionsButton.setSize("260px", "22px");
       
        Button accessAuditButton = new Button(textMessages.viewAccessAuditLog(),
                new SelectionListener<ButtonEvent>()
        {
            @Override
            public void componentSelected(ButtonEvent ce)
            {
                doViewAccessAuditLog();
            }
        });
        add(accessAuditButton, new AbsoluteData(82, 311));
        accessAuditButton.setSize("127px", "22px");
        accessAuditButton.setEnabled(password.getId() > 0);

        Button saveButton = new Button(textMessages.save(), new SelectionListener<ButtonEvent>() {
            @Override
View Full Code Here

TOP

Related Classes of com.extjs.gxt.ui.client.widget.layout.AbsoluteData

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.