Class PropertyMemberUIWrapper
java.lang.Object
org.esa.snap.ui.tooladapter.model.PropertyMemberUIWrapper
- All Implemented Interfaces:
FocusListener
,EventListener
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected ToolAdapterOperatorDescriptor
protected ToolParameterDescriptor
protected JComponent
protected int
-
Constructor Summary
ConstructorsConstructorDescriptionPropertyMemberUIWrapper
(String attributeName, ToolParameterDescriptor paramDescriptor, ToolAdapterOperatorDescriptor opDescriptor, com.bc.ceres.swing.binding.BindingContext context) PropertyMemberUIWrapper
(String attributeName, ToolParameterDescriptor paramDescriptor, ToolAdapterOperatorDescriptor opDescriptor, com.bc.ceres.swing.binding.BindingContext context, int width, PropertyMemberUIWrapper.CallBackAfterEdit callback) -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected abstract JComponent
boolean
void
void
com.bc.ceres.swing.binding.BindingContext
getErrorValueMessage
(Object value) abstract Object
protected abstract Object
boolean
boolean
reloadUIComponent
(Class<?> newParamType) void
protected abstract void
setMemberValue
(Object value) void
setMemberValueWithCheck
(Object value)
-
Field Details
-
attributeName
-
UIComponent
-
width
protected int width -
paramDescriptor
-
opDescriptor
-
-
Constructor Details
-
PropertyMemberUIWrapper
public PropertyMemberUIWrapper(String attributeName, ToolParameterDescriptor paramDescriptor, ToolAdapterOperatorDescriptor opDescriptor, com.bc.ceres.swing.binding.BindingContext context) -
PropertyMemberUIWrapper
public PropertyMemberUIWrapper(String attributeName, ToolParameterDescriptor paramDescriptor, ToolAdapterOperatorDescriptor opDescriptor, com.bc.ceres.swing.binding.BindingContext context, int width, PropertyMemberUIWrapper.CallBackAfterEdit callback)
-
-
Method Details
-
getContext
public com.bc.ceres.swing.binding.BindingContext getContext() -
getParamDescriptor
-
getErrorValueMessage
-
setMemberValue
- Throws:
PropertyAttributeException
-
getMemberValue
- Throws:
PropertyAttributeException
-
getUIComponent
- Throws:
Exception
-
reloadUIComponent
- Throws:
Exception
-
buildAndLinkUIComponent
- Throws:
Exception
-
buildUIComponent
- Throws:
Exception
-
setMemberValueWithCheck
- Throws:
PropertyAttributeException
-
memberUIComponentNeedsRevalidation
public boolean memberUIComponentNeedsRevalidation() -
propertyUIComponentsNeedsRevalidation
public boolean propertyUIComponentsNeedsRevalidation() -
contextUIComponentsNeedsRevalidation
public boolean contextUIComponentsNeedsRevalidation() -
focusGained
- Specified by:
focusGained
in interfaceFocusListener
-
focusLost
- Specified by:
focusLost
in interfaceFocusListener
-
setCallback
-
getValueFromUIComponent
- Throws:
PropertyAttributeException
-