public abstract class PropertyMemberUIWrapper extends Object implements FocusListener
Modifier and Type | Class and Description |
---|---|
static interface |
PropertyMemberUIWrapper.CallBackAfterEdit |
Modifier and Type | Field and Description |
---|---|
protected String |
attributeName |
protected ToolAdapterOperatorDescriptor |
opDescriptor |
protected ToolParameterDescriptor |
paramDescriptor |
protected JComponent |
UIComponent |
protected int |
width |
Constructor and Description |
---|
PropertyMemberUIWrapper(String attributeName,
ToolParameterDescriptor paramDescriptor,
ToolAdapterOperatorDescriptor opDescriptor,
BindingContext context) |
PropertyMemberUIWrapper(String attributeName,
ToolParameterDescriptor paramDescriptor,
ToolAdapterOperatorDescriptor opDescriptor,
BindingContext context,
int width,
PropertyMemberUIWrapper.CallBackAfterEdit callback) |
Modifier and Type | Method and Description |
---|---|
void |
buildAndLinkUIComponent() |
protected abstract JComponent |
buildUIComponent() |
boolean |
contextUIComponentsNeedsRevalidation() |
void |
focusGained(FocusEvent e) |
void |
focusLost(FocusEvent e) |
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) |
protected String attributeName
protected JComponent UIComponent
protected int width
protected ToolParameterDescriptor paramDescriptor
protected ToolAdapterOperatorDescriptor opDescriptor
public PropertyMemberUIWrapper(String attributeName, ToolParameterDescriptor paramDescriptor, ToolAdapterOperatorDescriptor opDescriptor, BindingContext context)
public PropertyMemberUIWrapper(String attributeName, ToolParameterDescriptor paramDescriptor, ToolAdapterOperatorDescriptor opDescriptor, BindingContext context, int width, PropertyMemberUIWrapper.CallBackAfterEdit callback)
public BindingContext getContext()
public ToolParameterDescriptor getParamDescriptor()
protected abstract void setMemberValue(Object value) throws PropertyAttributeException
PropertyAttributeException
public abstract Object getMemberValue() throws PropertyAttributeException
PropertyAttributeException
public JComponent getUIComponent() throws Exception
Exception
public JComponent reloadUIComponent(Class<?> newParamType) throws Exception
Exception
protected abstract JComponent buildUIComponent() throws Exception
Exception
public void setMemberValueWithCheck(Object value) throws PropertyAttributeException
PropertyAttributeException
public boolean memberUIComponentNeedsRevalidation()
public boolean propertyUIComponentsNeedsRevalidation()
public boolean contextUIComponentsNeedsRevalidation()
public void focusGained(FocusEvent e)
focusGained
in interface FocusListener
public void focusLost(FocusEvent e)
focusLost
in interface FocusListener
public void setCallback(PropertyMemberUIWrapper.CallBackAfterEdit callback)
protected abstract Object getValueFromUIComponent() throws PropertyAttributeException
PropertyAttributeException
Copyright © 2014–2015 European Space Agency (ESA). All rights reserved.