| org.netbeans.modules.visualweb.propertyeditors.PropertyEditorBase org.netbeans.modules.visualweb.propertyeditors.TabularPropertyEditor
All known Subclasses: org.netbeans.modules.visualweb.propertyeditors.StringArrayPropertyEditor, org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.OptionsPropertyEditor, org.netbeans.modules.visualweb.web.ui.dt.component.propertyeditors.SelectedValuesPropertyEditor,
TabularPropertyEditor | public class TabularPropertyEditor extends PropertyEditorBase (Code) | | An editor for list-like or table-like properties. Any property that takes a
list or array of objects that have a regular number of fields may be edited
using this editor. Implementing classes must provide an implementation of
the getRows() and setRows(List) methods, which are
called to get and set the property's value as a list of lists (using
java.util.List ). In addition, implementing classes must provide
the column names and types to be used when representing the tabular data in
a table widget.
Editing is done through a custom pop-up component, but an in-line, read-only
view of the values in the table's default column is also provided. The default
column is the first, or whatever column index is returned by the method
getDefaultDisplayColumnIndex() .
See Also: TabularPropertyPanel See Also: com.sun.rave.propertyeditors.TabularPropertyModel author: gjmurphy |
Field Summary | |
final public static String | TABLE_MODEL_CLASS Key used to specify a table model within a property descriptor. |
TABLE_MODEL_CLASS | final public static String TABLE_MODEL_CLASS(Code) | | Key used to specify a table model within a property descriptor.
|
TabularPropertyEditor | public TabularPropertyEditor()(Code) | | Creates a new instance of TabularPropertyEditor.
|
getAsText | public String getAsText()(Code) | | Returns a string containing the comma-delimited values of the column,
the index of which is returned by getTextDisplayColumnIndex() .
|
getCustomEditor | public Component getCustomEditor()(Code) | | Returns this editor's custom editor panel, an instance of TabularPropertyPanel.
To notify the panel of changes in the tabular property, call
((TabularPropertyPanel) this.getCustomEditor()).updateTableData() .
|
getTabularPropertyModel | protected TabularPropertyModel getTabularPropertyModel()(Code) | | Return a table model suitable for displaying the value of this property
as a table of columns and rows. By default, looks for a table model class
specified as the value of the property descriptor key TABLE_MODEL_CLASS.
|
getTextDisplayColumnIndex | protected int getTextDisplayColumnIndex()(Code) | | Returns the index of the column to use as a default display when the
editor is not displaying the full table of values. By default, the
first (0th) column is used.
|
isEditableAsText | public boolean isEditableAsText()(Code) | | |
supportsCustomEditor | public boolean supportsCustomEditor()(Code) | | |
|
|