Package chemaxon.marvin.services
Interface ServiceDescriptorEditor<T extends ServiceDescriptor>
- Type Parameters:
 T- theServiceDescriptorclass
Provides editor suport for 
ServiceDescriptor- Since:
 - 5.6
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringProperty key for preferred service descriptionstatic final StringProperty key for preferred service namestatic final StringProperty key for optional client property UserSettingsstatic final StringProperty key for editor validation state asBoolean - 
Method Summary
Modifier and TypeMethodDescriptionReturns theServiceDescriptorrepresented by editor state ornullif the editor is in not valid stateReturns the editor component for theServiceDescriptorReturns thePropertyChangeSupportassociated with this editorbooleanisValid()Returnstrueif editor represents a valid descriptor in current statevoidsetDescriptor(T descriptor) Updates the editor to represent the specified descriptor NOTE:getDescriptor()may NOT return same instance 
- 
Field Details
- 
PROPERTY_KEY_VALID
Property key for editor validation state asBoolean- See Also:
 
 - 
PROPERTY_KEY_PREFERRED_NAME
Property key for preferred service name- See Also:
 
 - 
PROPERTY_KEY_PREFERRED_DESCRIPTION
Property key for preferred service description- See Also:
 
 - 
PROPERTY_KEY_USERSETTINGS
Property key for optional client property UserSettings- See Also:
 
 
 - 
 - 
Method Details
- 
getEditor
JComponent getEditor()Returns the editor component for theServiceDescriptor- Returns:
 - the editor component for the 
ServiceDescriptor 
 - 
getDescriptor
T getDescriptor()Returns theServiceDescriptorrepresented by editor state ornullif the editor is in not valid state- Returns:
 - the 
ServiceDescriptorrepresented by editor state ornull 
 - 
setDescriptor
Updates the editor to represent the specified descriptor NOTE:getDescriptor()may NOT return same instance- Parameters:
 descriptor- the descriptor to represent
 - 
isValid
boolean isValid()Returnstrueif editor represents a valid descriptor in current state- Returns:
 trueif editor represents a valid descriptor in current state
 - 
getPropertyChangeSupport
PropertyChangeSupport getPropertyChangeSupport()Returns thePropertyChangeSupportassociated with this editor- Returns:
 - the 
PropertyChangeSupportinstance 
 
 -