jview
Class JEditableAnalyser
java.lang.Object
util.PropertyContainer
util.PropertyResources
util.PropertyBundles
jview.AbstractDisplayable
jview.JAbstractAnalyser
jview.JAsynchronAnalyser
jview.JEditableAnalyser
- All Implemented Interfaces:
- ComponentListener, PropertyChangeListener, Cloneable, EventListener, DataAnalysing, DataObserver, Displayable, BeanSupport, Initializable, LocalizedSupplying, PropertySupplying, ResourceSupplying
- Direct Known Subclasses:
- JVisualizingAnalyser
public abstract class JEditableAnalyser
- extends JAsynchronAnalyser
Supports meta action on an analyser via user-editing of critical properties.
If metaAction(java.awt.event.ActionEvent) is called, we immediately fork to
editProperties(java.awt.event.ActionEvent), then return true to show that the action was
consumed. It is perfectly legal to override the metaAction(java.awt.event.ActionEvent) by
calling editProperties(java.awt.event.ActionEvent) and returning false, then.
The editProperties(java.awt.event.ActionEvent) queries via the abstract method
getEditableProperties() for the properties that should be updated.
It then displays a model confirm dialog, that prompts a
JPropertyEdit table. After the user confirmed the changes,
they are read and key-by-key set in the analyser's method.
| Fields inherited from class jview.JAbstractAnalyser |
KEY_ALLOW, KEY_ANALYSER, KEY_ANALYSESETS, KEY_BASELOG, KEY_BASEPLAIN, KEY_BASEPOWER, KEY_BASERANDOM, KEY_BASESINUS, KEY_BASESQRT, KEY_BASETAN, KEY_DENY, KEY_EXECFACTOR, KEY_EXECOFFSET, KEY_TRANSFERCLASSES, KEY_TRANSFERINIT, KEY_VIEWPORTLISTEN |
| Methods inherited from class jview.JAbstractAnalyser |
addPropertyChangeListener, addPropertyChangeListener, componentHidden, componentMoved, componentResized, componentShown, dataChanged, estimateExecutionTime, estimateExecutionTime, firePropertyChange, getAnalysedSets, getAnalyser, getAnalyserInput, getDataTagging, propertyChange, removePropertyChangeListener, removePropertyChangeListener, setAnalyserInput, setDataTagging |
| Methods inherited from class util.PropertyResources |
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, keyCreate, keyCreate, reload, setApplet |
| Methods inherited from class util.PropertyContainer |
augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, reload, removeProperty, rescanned, setObject, setProperties, setProperty, stringProperties, toString |
| Methods inherited from interface util.PropertySupplying |
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringProperties |
KEY_EDITTITLE
public static final String KEY_EDITTITLE
- The title shown when properties are edited.
- See Also:
- Constant Field Values
DEFEDITTITLE
private static final String DEFEDITTITLE
- The title shown when properties are edited.
- See Also:
- Constant Field Values
JEditableAnalyser
protected JEditableAnalyser(Map<String,String> prop)
- Creates a new ediatable analyser.
metaAction
protected boolean metaAction(ActionEvent ae)
- We fork into
editProperties(java.awt.event.ActionEvent) and return true.
- Specified by:
metaAction in class JAsynchronAnalyser
- Returns:
- True, if action was consumed.
getEditableProperties
protected abstract Map<String,String> getEditableProperties()
- Queries for editable properties. If the mapping returned here is a
treemap or a linked map, the order is retained on the display.
editProperties
protected boolean editProperties(ActionEvent ae)
- We edit the properties such that we display a table with the
editable properties. If the user confirms the changes, we update
our analyser's properties and return true, otherwise we return false.