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 interface
PropertyMemberUIWrapper.CallBackAfterEdit
-
Field Summary
Fields Modifier and Type Field Description protected String
attributeName
protected ToolAdapterOperatorDescriptor
opDescriptor
protected ToolParameterDescriptor
paramDescriptor
protected JComponent
UIComponent
protected int
width
-
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 void
buildAndLinkUIComponent()
protected abstract JComponent
buildUIComponent()
boolean
contextUIComponentsNeedsRevalidation()
void
focusGained(FocusEvent e)
void
focusLost(FocusEvent e)
com.bc.ceres.swing.binding.BindingContext
getContext()
String
getErrorValueMessage(Object value)
abstract Object
getMemberValue()
ToolParameterDescriptor
getParamDescriptor()
JComponent
getUIComponent()
protected abstract Object
getValueFromUIComponent()
boolean
memberUIComponentNeedsRevalidation()
boolean
propertyUIComponentsNeedsRevalidation()
JComponent
reloadUIComponent(Class<?> newParamType)
void
setCallback(PropertyMemberUIWrapper.CallBackAfterEdit callback)
protected abstract void
setMemberValue(Object value)
void
setMemberValueWithCheck(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:
focusGained
in interfaceFocusListener
-
focusLost
public void focusLost(FocusEvent e)
- Specified by:
focusLost
in interfaceFocusListener
-
setCallback
public void setCallback(PropertyMemberUIWrapper.CallBackAfterEdit callback)
-
getValueFromUIComponent
protected abstract Object getValueFromUIComponent() throws PropertyAttributeException
- Throws:
PropertyAttributeException
-
-