Package com.smartgwt.client.widgets.tree

Examples of com.smartgwt.client.widgets.tree.TreeGridField


    treeGrid.setShowOpenIcons(false);
    treeGrid.setShowDropIcons(false);
    treeGrid.setClosedIconSuffix("");
    // treeGrid.setAutoFetchData(true);

    TreeGridField nameField = new TreeGridField("Name", handleHorizontal(
        650, 900));
    nameField.setCanSort(false);
    RegExpValidator elementName = new RegExpValidator();
    elementName.setErrorMessage("Invalid name for XML element");
    elementName.setExpression("^([a-zA-Z])+([a-zA-Z0-9\\-_\\.])*");

    nameField.setValidators(elementName);

    TreeGridField typeField = new TreeGridField(Type, 60);
    typeField.setCanSort(false);

    TreeGridField minField = new TreeGridField(Min, 30);
    minField.setCanSort(false);

    TreeGridField maxField = new TreeGridField(Max, 30);
    maxField.setCanSort(false);

    maxField.setType(ListGridFieldType.INTEGER);
    minField.setType(ListGridFieldType.INTEGER);

    TreeGridField prefix = new TreeGridField(Prefix, 40);
    prefix.setCanSort(false);

    TreeGridField suffix = new TreeGridField(Suffix, 40);
    suffix.setCanSort(false);
    typeField.setValueMap(Sequence, Choice, Simple);

    treeGrid.setFields(nameField, typeField, minField, maxField, prefix,
        suffix);
    treeGrid.addSelectionChangedHandler(new SelectionChangedHandler() {
View Full Code Here


    tree.setLoadDataOnDemand(false);
    tree.setCanSort(false);
    tree.setCellHeight(17);
    tree.setShowHeader(false);

    TreeGridField field = new TreeGridField();
    field.setCanFilter(true);
    field.setName("name");
    field.setTitle("<b>SmartGWT Showcase</b>");
    tree.setFields(field);

    Tree treeData = new Tree();
    treeData.setModelType(TreeModelType.PARENT);
    treeData.setNameProperty("name");
View Full Code Here

    this.tree.setDataSource( DataSourceRegistry.MAIL_FOLDER.get() );
    this.tree.setCanEdit( true );
    this.tree.setConfirmCancelEditing( false );
    this.tree.setLeaveScrollbarGap(false)

    TreeGridField field = new TreeGridField( "name" );
    this.tree.setFields( field );
    this.tree.setCanReorderRecords( true );
    this.tree.setCanAcceptDroppedRecords( true );
    this.tree.setCanDropOnLeaves( true );
    this.tree.setCanReparentNodes( true );
View Full Code Here

TOP

Related Classes of com.smartgwt.client.widgets.tree.TreeGridField

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.