es.uv.robotica.gvsig.mobile.gps.gui
Class WaypointDialog

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Window
              extended byjava.awt.Dialog
                  extended byes.prodevelop.gvsig.mobile.gui.dialog.control.ExpansibleDialog
                      extended byes.uv.robotica.gvsig.mobile.gps.gui.WaypointDialog
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.awt.event.MouseListener, java.io.Serializable

public class WaypointDialog
extends ExpansibleDialog
implements java.awt.event.MouseListener

A dialog for adding new waypoints It is generally instantiated and processed from the MainWindow class The dialog itself doens't create a waypoint nor appends it to the waypoints file It just provides the fields for the creation of a waypoint

Author:
juangui
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
WaypointDialog(java.awt.Frame parentFrame)
          Constructor
 
Method Summary
 java.lang.String getWptDesc()
          This method can be called when the dialog is closed to gather the waypoint description entered by the user
 Link getWptLink()
          This method can be called when the dialog is closed to gather the waypoint link entered by the user
 java.lang.String getWptName()
          This method can be called when the dialog is closed to gather the waypoint name entered by the user
 java.lang.String getWptSym()
          This method can be called when the dialog is closed to gather the waypoint symbol chosen by the user
 java.lang.String getWptType()
          This method can be called when the dialog is closed to gather the waypoint type chosen by the user
 boolean isOkPressed()
          This method can be called when the dialog is closed to test wether it was closed by pressing the ok button or not
 void mouseClicked(java.awt.event.MouseEvent arg0)
          This method is just included to comply with MouseListener interface Implements java.awt.event.MouseListener
 void mouseEntered(java.awt.event.MouseEvent arg0)
          This method is just included to comply with MouseListener interface Implements java.awt.event.MouseListener
 void mouseExited(java.awt.event.MouseEvent arg0)
          This method is just included to comply with MouseListener interface Implements java.awt.event.MouseListener
 void mousePressed(java.awt.event.MouseEvent e)
          Process mouse click event in the dialog When closing the dialog checks wether the ok button or the cancel button was pressed Implements java.awt.event.MouseListener
 void mouseReleased(java.awt.event.MouseEvent arg0)
          This method is just included to comply with MouseListener interface Implements java.awt.event.MouseListener
 
Methods inherited from class es.prodevelop.gvsig.mobile.gui.dialog.control.ExpansibleDialog
actionPerformed, add, addExpansible, close, expand
 
Methods inherited from class java.awt.Dialog
addNotify, dispose, getAccessibleContext, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WaypointDialog

public WaypointDialog(java.awt.Frame parentFrame)
Constructor

Parameters:
parentFrame -
Method Detail

isOkPressed

public boolean isOkPressed()
This method can be called when the dialog is closed to test wether it was closed by pressing the ok button or not

Returns:
true if the dialog was closed by pressing the ok button

getWptName

public java.lang.String getWptName()
This method can be called when the dialog is closed to gather the waypoint name entered by the user

Returns:
the waypoint name

getWptDesc

public java.lang.String getWptDesc()
This method can be called when the dialog is closed to gather the waypoint description entered by the user

Returns:
the waypoint description

getWptSym

public java.lang.String getWptSym()
This method can be called when the dialog is closed to gather the waypoint symbol chosen by the user

Returns:
the waypoint symbol

getWptType

public java.lang.String getWptType()
This method can be called when the dialog is closed to gather the waypoint type chosen by the user

Returns:
the waypoint type

getWptLink

public Link getWptLink()
This method can be called when the dialog is closed to gather the waypoint link entered by the user

Returns:
the waypoint link

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Process mouse click event in the dialog When closing the dialog checks wether the ok button or the cancel button was pressed Implements java.awt.event.MouseListener

Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent arg0)
This method is just included to comply with MouseListener interface Implements java.awt.event.MouseListener

Specified by:
mouseReleased in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent arg0)
This method is just included to comply with MouseListener interface Implements java.awt.event.MouseListener

Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent arg0)
This method is just included to comply with MouseListener interface Implements java.awt.event.MouseListener

Specified by:
mouseExited in interface java.awt.event.MouseListener

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent arg0)
This method is just included to comply with MouseListener interface Implements java.awt.event.MouseListener

Specified by:
mouseClicked in interface java.awt.event.MouseListener