| |
|
| java.lang.Object java.beans.PropertyEditorSupport org.netbeans.modules.vmd.api.properties.DesignPropertyEditor
All known Subclasses: org.netbeans.modules.vmd.midp.propertyeditors.PropertyEditorGoToSource, org.netbeans.modules.vmd.midp.propertyeditors.PropertyEditorVersion, org.netbeans.modules.vmd.midp.propertyeditors.eventhandler.PropertyEditorEventHandler, org.netbeans.modules.vmd.midp.propertyeditors.PropertyEditorJavaString, org.netbeans.modules.vmd.midp.propertyeditors.PropertyEditorInstanceName, org.netbeans.modules.vmd.api.properties.GroupPropertyEditor, org.netbeans.modules.vmd.midpnb.propertyeditors.table.PropertyEditorTableModel, org.netbeans.modules.vmd.midp.propertyeditors.api.usercode.PropertyEditorUserCode,
DesignPropertyEditor | abstract public class DesignPropertyEditor extends PropertyEditorSupport implements ExPropertyEditor,Factory(Code) | | This class represents custom property editor in the Properties Window.
|
attachEnv | public void attachEnv(PropertyEnv env)(Code) | | This method is called by the property sheet to pass the environment to the property editor.
The typical use case is for the ExPropertyEditor to call env.getFeatureDescriptor().getValue
(String key) to retrieve any hints the Property object may supply regarding how
the property editor should behave(such as providing alternate text representations of
"true" and "false" for a Boolean property editor).
Parameters: allows - an object (suchDef as a Node.Property instance) to communicate hints toproperty editor instances |
canEditAsText | public Boolean canEditAsText()(Code) | | Useful especially when passing value Boolean.FALSE - in this case disable
the possibility of editing the the value as text but allows getAsText to
return non null. Also used by passing Boolean.TRUE to indicate
that a editor should allow the user to type their own text into the combo box.
the state of property in-place editor in the advanced property sheet |
canWrite | public boolean canWrite()(Code) | | Test whether the property is writable.
true if the write of the value is supported |
customEditorOKButtonPressed | public void customEditorOKButtonPressed()(Code) | | Method is invoked after OK button is pressed in the custom editor.
|
customEditorResetToDefaultButtonPressed | public void customEditorResetToDefaultButtonPressed()(Code) | | Method is invoked after Reset To Defaulat button is pressed in the custom property editor.
This method is executed only when isResetToDefaultAutomatically return Boolean.False.
NOTE: This method is executed inside of write transaction.
|
executeInsideWriteTransaction | public boolean executeInsideWriteTransaction()(Code) | | This method is executed at the beginning of write transaction when data from property
editor is writes into the model
Boolean.FALSE ONLY this method will be executed without any other support it's means that value of property editor is not saved |
getCustomEditorTitle | public String getCustomEditorTitle()(Code) | | Title of the custom property editor dialog.
custom property editor title |
getDefaultValue | public Object getDefaultValue()(Code) | | Returns value used to restore this property to its default value, if supported. In the default
implementation, returns defaultValue of PropertyValue.
default value specifed in the model for this property |
getInplaceEditor | public InplaceEditor getInplaceEditor()(Code) | | |
getPropertyDisplayName | public String getPropertyDisplayName()(Code) | | |
init | public void init(DesignComponent component)(Code) | | It's called when PropertyEditor is attached to the DesignComponent using PropertiesPresenter (notifyAttached)
Parameters: DesignComponent - attached to this PropertyEditor |
invokeSaveToModel | final public void invokeSaveToModel()(Code) | | |
isDefaultValue | public boolean isDefaultValue()(Code) | | This method indicates whether the current value is the same as the value
that would otherwise be restored by calling restoreDefaultValue()
(if supportsDefaultValue() returns true). The default implementation
returns true and it is recommended to also return true when supportsDefaultValue()
returns false (if we do not support default value any value can be considered
as the default). If supportsDefaultValue() returns false this method will
not be called by the default implementation of property sheet.
on default checks |
isExecuteInsideWriteTransactionUsed | public boolean isExecuteInsideWriteTransactionUsed()(Code) | | Describes if executeInsideWriteTransaction() will be executed inside write
transaction responsible for saving data from property editor into the model.
Boolean.TRUE will be executed. |
isResetToDefaultAutomatically | public boolean isResetToDefaultAutomatically()(Code) | | This method gives support to chose how to handle reset To Defualt event inside of custom property editor.
When returns Boolean.True (on default) reset to default is handle automatically
by the method getDefaultValue and all values connected with this
property editor are restored to the default based on the getDefaultValue method.
When return Boolean.False, restoring values to the default state
has to be resolve completely inside of method customEditorResetToDefaultButtonPressed
boolean value |
notifyDesignChanged | public void notifyDesignChanged(DesignEvent event)(Code) | | Its called according to the DesignEventFilterResolver(DesignEventFilter) passed into the PropertiesPresenter
|
resolveInplaceEditor | final public void resolveInplaceEditor(InplaceEditor inplaceEditor)(Code) | | |
supportsCustomEditor | public boolean supportsCustomEditor()(Code) | | |
supportsDefaultValue | public boolean supportsDefaultValue()(Code) | | Test whether the property had a default value.
true if it does (true by default) |
|
|
|