|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.fhg.igd.semoa.envision.plugins.PolicyConditionPanel.ConditionList
This class generates the table with the names of the condition.
| Field Summary | |
(package private) String |
editedName_
The last name that is edited or has been edited. |
(package private) Vector |
list_
The vector with all the names which are contained in the table. |
(package private) DefaultTableModel |
model_
The model of the table |
(package private) ListSelectionModel |
rowSelection_
|
(package private) JTable |
table_
The generated table. |
| Constructor Summary | |
PolicyConditionPanel.ConditionList(Map conds)
Class Constructor which specified the map from which the names list is generated. |
|
| Method Summary | |
void |
add(String name)
Adds a new row in the table. |
Vector |
getDataVector()
|
String |
getSelectedValue()
Returns the value of the selected row in a string. |
JTable |
getTable()
Returns the generated names' table. |
boolean |
isEditing()
Checks if the user is editing some value in the table. |
void |
mouseClicked(MouseEvent e)
|
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
void |
remove(int row)
Removes the row at the specified index. |
void |
setEditedValue(String s)
Sets the old value of the row that has been editited at the moment when the "Rename" button is clicked. |
void |
stopEditing()
Stops the editing of the table. |
void |
tableChanged(TableModelEvent e)
|
void |
valueChanged(ListSelectionEvent e)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
ListSelectionModel rowSelection_
DefaultTableModel model_
String editedName_
It is set either by the mouseClicked() or by the
setEditedValue() when the "Rename" button is clicked.
Vector list_
JTable table_
| Constructor Detail |
public PolicyConditionPanel.ConditionList(Map conds)
conds - the map of the conditions| Method Detail |
public void add(String name)
name - the value of the row which must be addedpublic void remove(int row)
row - the index of the row which must be removedpublic String getSelectedValue()
public JTable getTable()
public Vector getDataVector()
Vectorpublic void setEditedValue(String s)
s - the old value of the row that has been editedpublic boolean isEditing()
public void stopEditing()
public void tableChanged(TableModelEvent e)
tableChanged in interface TableModelListenerTableModelListener.tableChanged(TableModelEvent)public void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenerMouseListener.mouseClicked(MouseEvent)public void mouseExited(MouseEvent e)
mouseExited in interface MouseListenerMouseListener.mouseExited(MouseEvent)public void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerMouseListener.mouseEntered(MouseEvent)public void mousePressed(MouseEvent e)
mousePressed in interface MouseListenerMouseListener.mousePressed(MouseEvent)public void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerMouseListener.mouseReleased(MouseEvent)public void valueChanged(ListSelectionEvent e)
valueChanged in interface ListSelectionListenerjavax.swing.event.ListSelectionListener#tableChanged(ListSelectionEvent)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||