|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.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 conditionsMethod 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()
Vector
public 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 TableModelListener
TableModelListener.tableChanged(TableModelEvent)
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
MouseListener.mouseClicked(MouseEvent)
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
MouseListener.mouseExited(MouseEvent)
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
MouseListener.mouseEntered(MouseEvent)
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
MouseListener.mousePressed(MouseEvent)
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
MouseListener.mouseReleased(MouseEvent)
public void valueChanged(ListSelectionEvent e)
valueChanged
in interface ListSelectionListener
javax.swing.event.ListSelectionListener#tableChanged(ListSelectionEvent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |