| |
|
| com.gwtext.client.widgets.grid.GridPanel com.gwtext.client.widgets.grid.EditorGridPanel com.gwtext.client.widgets.grid.PropertyGridPanel
PropertyGridPanel | public class PropertyGridPanel extends EditorGridPanel (Code) | | A specialized grid implementation intended to mimic the traditional property grid as typically seen in development IDEs.
Each row in the grid represents a property of some object, and the data is stored as a set of name/value pairs
|
PropertyGridPanel | public PropertyGridPanel()(Code) | | Create a new PropertGridPanel.
|
PropertyGridPanel | public PropertyGridPanel(JavaScriptObject jsObj)(Code) | | |
addPropertyGridPanelListener | native public void addPropertyGridPanelListener(PropertyGridPanelListener listener)(Code) | | Add a PropertGridPanel listener.
Parameters: listener - the listener. |
create | native protected JavaScriptObject create(JavaScriptObject configJS)(Code) | | |
setCustomEditors | public void setCustomEditors(Map customEditors) throws IllegalStateException(Code) | | An object containing name/value pairs of custom editor type definitions that allow the grid to support additional
types of editable fields. By default, the grid supports strongly-typed editing of strings, dates, numbers and booleans
using built-in form editors, but any custom type can be supported and associated with a custom input control by specifying
a custom editor. The name of the editor type should correspond with the name of the property that will use the editor.
PropertyGridPanel grid = new PropertyGridPanel();
Map source = new HashMap();
source.put("Edit Time", "10:00 AM");
Map customEditors = new HashMap();
GridEditor timeEditor = new GridEditor(new TimeField());
customEditors.put("Edit Time", timeEditor);
grid.setCustomEditors(customEditors);
Parameters: customEditors - custom editors throws: IllegalStateException - this property cannot be changed after the Component has been rendered |
setNameText | public void setNameText(String nameText) throws IllegalStateException(Code) | | The value of the property name text.
Parameters: nameText - the property name text throws: IllegalStateException - this property cannot be changed after the Component has been rendered |
setSource | public void setSource(NameValuePair[] source)(Code) | | Sets the source data object containing the property data. The data object can contain one or more name/value pairs
representing all of the properties of an object to display in the grid, and this data will automatically be loaded
into the grid's store. If the grid already contains data, this method will replace any existing data.
Parameters: source - the data source |
setSource | public void setSource(Map source)(Code) | | Sets the source data object containing the property data. The data object can contain one or more name/value pairs
representing all of the properties of an object to display in the grid, and this data will automatically be loaded
into the grid's store. If the grid already contains data, this method will replace any existing data.
Parameters: source - the data source |
|
|
|