|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractCellEditor
javax.swing.DefaultCellEditor
edu.udo.cs.miningmart.gui.stepsettings.ParameterEditor
This is an editor for one parameter in the StepParameterTable
.
Nested Class Summary |
Nested classes inherited from class javax.swing.DefaultCellEditor |
javax.swing.DefaultCellEditor.EditorDelegate |
Field Summary | |
protected MiningMartApplication |
app
|
protected boolean |
editable
|
protected int |
loopnumber
|
protected int |
numberofloops
|
protected java.util.Vector |
oldparamcollections
|
protected OpParam |
opParam
|
protected java.util.Vector |
paramcollections
|
protected Step |
step
|
Fields inherited from class javax.swing.DefaultCellEditor |
clickCountToStart, delegate, editorComponent |
Fields inherited from class javax.swing.AbstractCellEditor |
changeEvent, listenerList |
Constructor Summary | |
ParameterEditor()
Default Constructor for editing a JTextField . |
|
ParameterEditor(MiningMartApplication app,
Step step,
OpParam opParam)
Constructs new ParameterEditor with a JTextField . |
Method Summary | |
void |
addChangeListener(javax.swing.event.ChangeListener listener)
Adds the ChangeListener . |
void |
cancelEditing()
The values before editing will be displayed. |
boolean |
existsOutput()
Checks wether the output exists or not. |
void |
fireStateChanged()
Informs all ChangeListener that changed occurred. |
java.util.Collection |
getAllParameterCollections()
Gets a Collection with Collection s for each loopnumber. |
javax.swing.event.ChangeListener |
getChangeListener(int index)
Gets the ChangeListener by its index. |
int |
getChangeListenerCount()
Gets the number of ChangeListener . |
int |
getLoopNumber()
Gets the current loopnumber. |
int |
getNumberOfLoops()
Gets the number of loops of the Step . |
java.util.Collection |
getParameterCollection()
Gets the Collection for the current loopnumber. |
java.util.Collection |
getParameterCollection(int loopnumber)
Gets the Collection of the Parameter for the specified loopnumber. |
java.awt.Component |
getTableCellRendererComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
Gets the editorComponent . |
OpParam |
getTheOpParam()
Gets the OpParam . |
void |
init()
Inits this editor for the current loopnumber. |
void |
makeOutput(boolean inputchanged,
boolean outputchanged,
boolean loopcountlower,
boolean loopcounthigher)
Creates,updates and/or renames the output of the parameter. |
void |
removeAllChangeListener()
Removes all ChangeListener . |
void |
removeChangeListener(javax.swing.event.ChangeListener listener)
Removes the ChangeListener . |
void |
setCollectionsInStep()
Saves the Collection s in the Step .
|
void |
setEditable()
Sets the editable-flag. |
void |
setLoopNumber(int loopnumber)
Sets the loopnumber. |
void |
setNumberOfLoops(int numberofloops)
Sets the number of the loops. |
void |
setParameterCollection(java.util.Collection collection)
Sets the Collection of the Parameter for the current loopnumber. |
void |
setParameterCollection(java.util.Collection collection,
int loopnumber)
Sets the Collection of the Parameter for the specified loppnumber. |
Methods inherited from class javax.swing.DefaultCellEditor |
cancelCellEditing, getCellEditorValue, getClickCountToStart, getComponent, getTableCellEditorComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell, stopCellEditing |
Methods inherited from class javax.swing.AbstractCellEditor |
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.CellEditor |
addCellEditorListener, removeCellEditorListener |
Field Detail |
protected MiningMartApplication app
protected Step step
protected OpParam opParam
protected int numberofloops
protected int loopnumber
protected java.util.Vector paramcollections
protected java.util.Vector oldparamcollections
protected boolean editable
Constructor Detail |
public ParameterEditor()
JTextField
.
public ParameterEditor(MiningMartApplication app, Step step, OpParam opParam)
ParameterEditor
with a JTextField
.
Method Detail |
public void init()
public int getNumberOfLoops()
Step
.
public int getLoopNumber()
public void setLoopNumber(int loopnumber)
public void setNumberOfLoops(int numberofloops)
public java.util.Collection getParameterCollection(int loopnumber)
Collection
of the Parameter for the specified loopnumber.
public java.util.Collection getParameterCollection()
Collection
for the current loopnumber.
public void setParameterCollection(java.util.Collection collection, int loopnumber)
Collection
of the Parameter for the specified loppnumber.
public void setParameterCollection(java.util.Collection collection)
Collection
of the Parameter for the current loopnumber.
public java.util.Collection getAllParameterCollections()
Collection
with Collection
s for each loopnumber.
public java.awt.Component getTableCellRendererComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, boolean hasFocus, int row, int column)
editorComponent
.
getTableCellRendererComponent
in interface javax.swing.table.TableCellRenderer
TableCellRenderer.getTableCellRendererComponent(JTable, Object, boolean, boolean, int, int)
public void setCollectionsInStep() throws M4Exception
Collection
s in the Step
.
Only input-parameters.
M4Exception
Step.setParameter(OpParam,Collection,int)
public boolean existsOutput()
Collection
s of the old Parameters are null or empty then the ouput doesn't exists.
public void makeOutput(boolean inputchanged, boolean outputchanged, boolean loopcountlower, boolean loopcounthigher) throws M4Exception
M4Exception
public void addChangeListener(javax.swing.event.ChangeListener listener)
ChangeListener
.
public void removeChangeListener(javax.swing.event.ChangeListener listener)
ChangeListener
.
public void removeAllChangeListener()
ChangeListener
.
public int getChangeListenerCount()
ChangeListener
.
public javax.swing.event.ChangeListener getChangeListener(int index)
ChangeListener
by its index.
public void fireStateChanged()
ChangeListener
that changed occurred.
public OpParam getTheOpParam()
OpParam
.
public void cancelEditing() throws M4Exception
M4Exception
Step.setParameter(OpParam,Collection,int)
public void setEditable()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |