Package chemaxon.marvin.services
Interface ServiceDescriptorEditor<T extends chemaxon.marvin.services.ServiceDescriptor>
-
- Type Parameters:
T
- theServiceDescriptor
class
@PublicAPI public interface ServiceDescriptorEditor<T extends chemaxon.marvin.services.ServiceDescriptor>
Provides editor suport forServiceDescriptor
- Since:
- 5.6
-
-
Field Summary
Fields Modifier and Type Field Description static String
PROPERTY_KEY_PREFERRED_DESCRIPTION
Property key for preferred service descriptionstatic String
PROPERTY_KEY_PREFERRED_NAME
Property key for preferred service namestatic String
PROPERTY_KEY_USERSETTINGS
Property key for optional client property UserSettingsstatic String
PROPERTY_KEY_VALID
Property key for editor validation state asBoolean
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
getDescriptor()
Returns theServiceDescriptor
represented by editor state ornull
if the editor is in not valid stateJComponent
getEditor()
Returns the editor component for theServiceDescriptor
PropertyChangeSupport
getPropertyChangeSupport()
Returns thePropertyChangeSupport
associated with this editorboolean
isValid()
Returnstrue
if editor represents a valid descriptor in current statevoid
setDescriptor(T descriptor)
Updates the editor to represent the specified descriptor NOTE:getDescriptor()
may NOT return same instance
-
-
-
Field Detail
-
PROPERTY_KEY_VALID
static final String PROPERTY_KEY_VALID
Property key for editor validation state asBoolean
- See Also:
- Constant Field Values
-
PROPERTY_KEY_PREFERRED_NAME
static final String PROPERTY_KEY_PREFERRED_NAME
Property key for preferred service name- See Also:
- Constant Field Values
-
PROPERTY_KEY_PREFERRED_DESCRIPTION
static final String PROPERTY_KEY_PREFERRED_DESCRIPTION
Property key for preferred service description- See Also:
- Constant Field Values
-
PROPERTY_KEY_USERSETTINGS
static final String PROPERTY_KEY_USERSETTINGS
Property key for optional client property UserSettings- See Also:
- Constant Field Values
-
-
Method Detail
-
getEditor
JComponent getEditor()
Returns the editor component for theServiceDescriptor
- Returns:
- the editor component for the
ServiceDescriptor
-
getDescriptor
T getDescriptor()
Returns theServiceDescriptor
represented by editor state ornull
if the editor is in not valid state- Returns:
- the
ServiceDescriptor
represented by editor state ornull
-
setDescriptor
void setDescriptor(T descriptor)
Updates the editor to represent the specified descriptor NOTE:getDescriptor()
may NOT return same instance- Parameters:
descriptor
- the descriptor to represent
-
isValid
boolean isValid()
Returnstrue
if editor represents a valid descriptor in current state- Returns:
true
if editor represents a valid descriptor in current state
-
getPropertyChangeSupport
PropertyChangeSupport getPropertyChangeSupport()
Returns thePropertyChangeSupport
associated with this editor- Returns:
- the
PropertyChangeSupport
instance
-
-