Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.uberfire.ext.properties.editor.model;
 
 import java.util.List;
 
 import  org.jboss.errai.common.client.api.annotations.Portable;
 import static org.uberfire.commons.validation.PortablePreconditions.*;
 
 @Portable
A grouping of PropertyEditorFieldInfo in a property editor. The priority value is used to sort the categories. (lower values toward the beginning).
public class PropertyEditorCategory {
    private String name;
    private int priority = .;
    private String idEvent;
    public PropertyEditorCategory(){
    }
    public PropertyEditorCategory(String name) {
        this. = checkNotNull"name"name );
    }
    public PropertyEditorCategoryString name,
                                   int priority ) {
        this. = checkNotNull"name"name );
        this. = checkNotNull"name"priority );
    }

    
Add a field to a PropertyEditorCategory
        checkNotNull"field"field );
        field.setPropertyEditorCategorythis );
        .addfield );
        return this;
    }
    public String getName() {
        return ;
    }
    public int getPriority() {
        return ;
    }
        return ;
    }
    @Override
    public int hashCode() {
        int result =  != null ? .hashCode() : 0;
        result = 31 * result + ;
        result = 31 * result + (  != null ? .hashCode() : 0 );
        return result;
    }
    public String getIdEvent() {
        return ;
    }
    public void setIdEventString idEvent ) {
        this. = idEvent;
    }
    @Override
    public String toString() {
        return "PropertyEditorCategory{" +
                "name=" +  +
                ", priority=" +  +
                ", fields=" +  +
                ", idEvent=" +  +
                '}';
    }
New to GrepCode? Check out our FAQ X