Class PropertiesDialog
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Dialog
|
+----PropertiesDialog
- public class PropertiesDialog
- extends Dialog
- implements ActionListener
This class implements properties dialog for electrical element.
This class is universal for any electrical component and should not be changed
in case of adding new components to the applet. This class has common interface
with class Element - to exchange the data.
-
PropertiesDialog(Frame, Element)
- Constructor gets two arguments: first - parent frame, to make the dialog to be
able to appear.
-
actionPerformed(ActionEvent)
-
Processes action events occurring on this component.
PropertiesDialog
public PropertiesDialog(Frame parent,
Element e)
- Constructor gets two arguments: first - parent frame, to make the dialog to be
able to appear. Second - electrical element, to give dialog the source where
to take the information for display and where to send new one, updated by user.
- Parameters:
- parent - parent frame.
- e - electrical element.
actionPerformed
public void actionPerformed(ActionEvent e)
- Processes action events occurring on this component.
This method responds to buttons and update the properties' values or
discard according to what button was pressed - accept or cancel
- Parameters:
- e - the action event.
- See Also:
- ActionListener