Package com.inmethod.grid.column.editable

Examples of com.inmethod.grid.column.editable.SubmitCancelColumn


        component.setRequired(true);
      }
    });
    columns.add(new EditablePropertyColumn(new ResourceModel("homePhone"), "homePhone"));
    columns.add(new EditablePropertyColumn(new ResourceModel("cellPhone"), "cellPhone"));
    columns.add(new SubmitCancelColumn("esd", new Model("Edit")));
   
    DataGrid grid = new DefaultDataGrid("grid", new ContactDataSource(), columns);
    form.add(grid);
   
    grid.setAllowSelectMultiple(true);
View Full Code Here


        component.setRequired(true);
      }
    });
    columns.add(new EditablePropertyColumn(new ResourceModel("homePhone"), "homePhone"));
    columns.add(new EditablePropertyColumn(new ResourceModel("cellPhone"), "cellPhone"));
    columns.add(new SubmitCancelColumn("esd", new Model("Edit")));
   
    DataGrid grid = new DefaultDataGrid("grid", new ContactDataSource(), columns);
    form.add(grid);
   
    grid.setAllowSelectMultiple(true);
View Full Code Here

   * Constructor.
   */
  public EditableTreeGridPage() {
    List<IGridColumn> columns = new ArrayList<IGridColumn>();
   
    columns.add(new SubmitCancelColumn("edit", new Model("Edit")));
    columns.add(new EditablePropertyTreeColumn(new Model("Property 1"), "userObject.property1"));
    columns.add(new EditablePropertyColumn(new Model("Property 2"), "userObject.property2"));
    columns.add(new EditablePropertyColumn(new Model("Property 3"), "userObject.property3"));
    columns.add(new EditablePropertyColumn(new Model("Property 4"), "userObject.property4"));
    columns.add(new EditablePropertyColumn(new Model("Property 5"), "userObject.property5"));
View Full Code Here

            @Override
            protected void addValidators(FormComponent component) {
                component.setRequired(true);
            }
        });
        columns.add(new SubmitCancelColumn("submitCancel", new ResourceModel("edit")) {
            @Override
            protected void onSubmitted(AjaxRequestTarget target, IModel rowModel, WebMarkupContainer rowComponent) {
                dataSource.storeToPageParameters();
                super.onSubmitted(target, rowModel, rowComponent);
                target.addComponent(feedback);
View Full Code Here

            protected void addValidators(FormComponent component) {
                component.setRequired(true);
            }
        });

        columns.add(new SubmitCancelColumn("submitCancel", new ResourceModel("edit")) {
            @Override
            protected void onSubmitted(AjaxRequestTarget target, IModel rowModel,
                                       WebMarkupContainer rowComponent) {
                dataSource.storeToPageParameters();
                super.onSubmitted(target, rowModel, rowComponent);
View Full Code Here

        final ReferenceEditorConfiguration conf = new ReferenceEditorConfiguration();
        ManageMenuPanel panel = findParent(ManageMenuPanel.class);
        conf.setWorkspaceName(panel.getModelObject().getId());

        columns.add(new SubmitCancelColumn("submitCancel1", new ResourceModel("edit")));
        columns.add(new EditablePropertyTreeColumn(new ResourceModel("title"), "entry.title") {
            @Override
            protected boolean isClickToEdit() {
                return false;
            }
        }.setInitialSize(300));
        columns.add(new EditablePropertyColumn(new ResourceModel("cssClass"), "entry.cssClass") {
            @Override
            protected boolean isClickToEdit() {
                return false;
            }
        }.setInitialSize(200));

        columns.add(new SwitcherColumn("referenceEditor", new ResourceModel("referenceLabelCode"), conf).setInitialSize(400));

        columns.add(new SubmitCancelColumn("submitCancel2", new ResourceModel("edit")));

        return columns;
    }
View Full Code Here

TOP

Related Classes of com.inmethod.grid.column.editable.SubmitCancelColumn

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.