Class PropertyMemberUIWrapper
- java.lang.Object
-
- org.esa.snap.ui.tooladapter.model.PropertyMemberUIWrapper
-
- All Implemented Interfaces:
FocusListener,EventListener
public abstract class PropertyMemberUIWrapper extends Object implements FocusListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePropertyMemberUIWrapper.CallBackAfterEdit
-
Field Summary
Fields Modifier and Type Field Description protected StringattributeNameprotected ToolAdapterOperatorDescriptoropDescriptorprotected ToolParameterDescriptorparamDescriptorprotected JComponentUIComponentprotected intwidth
-
Constructor Summary
Constructors Constructor Description PropertyMemberUIWrapper(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
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidbuildAndLinkUIComponent()protected abstract JComponentbuildUIComponent()booleancontextUIComponentsNeedsRevalidation()voidfocusGained(FocusEvent e)voidfocusLost(FocusEvent e)com.bc.ceres.swing.binding.BindingContextgetContext()StringgetErrorValueMessage(Object value)abstract ObjectgetMemberValue()ToolParameterDescriptorgetParamDescriptor()JComponentgetUIComponent()protected abstract ObjectgetValueFromUIComponent()booleanmemberUIComponentNeedsRevalidation()booleanpropertyUIComponentsNeedsRevalidation()JComponentreloadUIComponent(Class<?> newParamType)voidsetCallback(PropertyMemberUIWrapper.CallBackAfterEdit callback)protected abstract voidsetMemberValue(Object value)voidsetMemberValueWithCheck(Object value)
-
-
-
Field Detail
-
attributeName
protected String attributeName
-
UIComponent
protected JComponent UIComponent
-
width
protected int width
-
paramDescriptor
protected ToolParameterDescriptor paramDescriptor
-
opDescriptor
protected ToolAdapterOperatorDescriptor opDescriptor
-
-
Constructor Detail
-
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 Detail
-
getContext
public com.bc.ceres.swing.binding.BindingContext getContext()
-
getParamDescriptor
public ToolParameterDescriptor getParamDescriptor()
-
setMemberValue
protected abstract void setMemberValue(Object value) throws PropertyAttributeException
- Throws:
PropertyAttributeException
-
getMemberValue
public abstract Object getMemberValue() throws PropertyAttributeException
- Throws:
PropertyAttributeException
-
getUIComponent
public JComponent getUIComponent() throws Exception
- Throws:
Exception
-
reloadUIComponent
public JComponent reloadUIComponent(Class<?> newParamType) throws Exception
- Throws:
Exception
-
buildUIComponent
protected abstract JComponent buildUIComponent() throws Exception
- Throws:
Exception
-
setMemberValueWithCheck
public void setMemberValueWithCheck(Object value) throws PropertyAttributeException
- Throws:
PropertyAttributeException
-
memberUIComponentNeedsRevalidation
public boolean memberUIComponentNeedsRevalidation()
-
propertyUIComponentsNeedsRevalidation
public boolean propertyUIComponentsNeedsRevalidation()
-
contextUIComponentsNeedsRevalidation
public boolean contextUIComponentsNeedsRevalidation()
-
focusGained
public void focusGained(FocusEvent e)
- Specified by:
focusGainedin interfaceFocusListener
-
focusLost
public void focusLost(FocusEvent e)
- Specified by:
focusLostin interfaceFocusListener
-
setCallback
public void setCallback(PropertyMemberUIWrapper.CallBackAfterEdit callback)
-
getValueFromUIComponent
protected abstract Object getValueFromUIComponent() throws PropertyAttributeException
- Throws:
PropertyAttributeException
-
-