Example usage for org.springframework.beans.propertyeditors StringArrayPropertyEditor setAsText

List of usage examples for org.springframework.beans.propertyeditors StringArrayPropertyEditor setAsText

Introduction

In this page you can find the example usage for org.springframework.beans.propertyeditors StringArrayPropertyEditor setAsText.

Prototype

@Override
    public void setAsText(String text) throws IllegalArgumentException 

Source Link

Usage

From source file:org.jdal.model.TableState.java

/**
 * Set visible columns as CSV String //from  w  w  w .jav  a2 s .c o  m
 * @param value the CSV String
 */
public void setVisibleColumns(String value) {
    StringArrayPropertyEditor pe = new StringArrayPropertyEditor();
    pe.setAsText(value);
    visibleColumns = Arrays.asList((String[]) pe.getValue());
}