All Packages Class Hierarchy This Package Previous Next Index
Class tc.ui.MarkerDialog
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Dialog
|
+----tc.ui.MarkerDialog
- public class MarkerDialog
- extends Dialog
MarkerDialog is a modal dialog for letting the user to select markers.
- Version:
- 0.30, 1998/04/01
- Author:
- FRED development team, Jukka Viljamaa, Antti Viljamaa
- See Also:
- CalendarPanel, Marker
-
buttonPanel
- Panel for buttons.
-
cancelButton
- A button.
-
colorButton
- A button.
-
colorCanvas
- A canvas to show marker color.
-
colorChooser
- The color chooser dialog.
-
gridBagLayout
- The layout for the dialog.
-
markers
- The markers to show to the user..
-
markersList
- The UI widget for the markers.
-
okayButton
- A button.
-
okayPushed
- The flag denoting the user's confirmation.
-
MarkerDialog(Frame)
- Initializes the MarkerDialog and sets its owner to the given frame.
-
cancelButton_actionPerformed(ActionEvent)
- Called when the cancel button has been pushed.
-
colorButton_actionPerformed(ActionEvent)
- Called when the color button has been pushed.
-
getColorChooser()
- Gets the color chooser dialog.
-
getSelectedMarker()
- Returns the marker that is currently selected in the markers list or null
if nothing is selected.
-
isOkayPushed()
- Returns true if the user has pushed OK.
-
jbInit()
- Initializes the user interface widgets of the dialog.
-
markersList_mouseReleased(MouseEvent)
- Called when the user has selected a marker.
-
okayButton_actionPerformed(ActionEvent)
- Called when the OK button has been pushed.
-
setMarkers(Vector)
- Sets the markers to be shown in the dialog.
-
setOkayPushed(boolean)
- Sets the flag denoting the user's confirmation.
-
windowClosing(WindowEvent)
- Called when the user is closing the dialog.
buttonPanel
private BevelPanel buttonPanel
- Panel for buttons.
cancelButton
private Button cancelButton
- A button.
colorButton
private Button colorButton
- A button.
colorCanvas
private ColorCanvas colorCanvas
- A canvas to show marker color.
colorChooser
private ColorChooser colorChooser
- The color chooser dialog.
gridBagLayout
private GridBagLayout gridBagLayout
- The layout for the dialog.
markers
private Vector markers
- The markers to show to the user..
markersList
private List markersList
- The UI widget for the markers.
okayButton
private Button okayButton
- A button.
okayPushed
private boolean okayPushed
- The flag denoting the user's confirmation.
MarkerDialog
public MarkerDialog(Frame frame)
- Initializes the MarkerDialog and sets its owner to the given frame.
getSelectedMarker
public Marker getSelectedMarker()
- Returns the marker that is currently selected in the markers list or null
if nothing is selected.
isOkayPushed
public boolean isOkayPushed()
- Returns true if the user has pushed OK.
setMarkers
public void setMarkers(Vector m)
- Sets the markers to be shown in the dialog.
cancelButton_actionPerformed
void cancelButton_actionPerformed(ActionEvent e)
- Called when the cancel button has been pushed. Sets the okayPushed flag
to false and dismisses the dialog.
colorButton_actionPerformed
void colorButton_actionPerformed(ActionEvent e)
- Called when the color button has been pushed. Shows the color chooser
dialog.
okayButton_actionPerformed
void okayButton_actionPerformed(ActionEvent e)
- Called when the OK button has been pushed. Sets the okayPushed flag
to true and dismisses the dialog.
markersList_mouseReleased
void markersList_mouseReleased(MouseEvent e)
- Called when the user has selected a marker. Sets the colorCanavas to
the color of the selected marker.
windowClosing
void windowClosing(WindowEvent e)
- Called when the user is closing the dialog. Dismisses the dialog.
getColorChooser
private ColorChooser getColorChooser()
- Gets the color chooser dialog.
jbInit
private void jbInit() throws Exception
- Initializes the user interface widgets of the dialog.
setOkayPushed
private void setOkayPushed(boolean flag)
- Sets the flag denoting the user's confirmation.
All Packages Class Hierarchy This Package Previous Next Index