com.inet.editor
Class HyperlinkInputDialog

java.lang.Object
  extended by com.inet.editor.HyperlinkInputDialog

public class HyperlinkInputDialog
extends java.lang.Object

Displays a dialog to add, edit or remove the hyperlink property from a text part.


Field Summary
static int CANCEL_OPTION
           
static int OK_OPTION
           
static int REMOVE_LINK_OPTION
           
 
Constructor Summary
HyperlinkInputDialog(java.lang.String url, java.lang.String displaytext)
          Create the dialog with a preset URL and a preset display string
 
Method Summary
 java.lang.String getDisplaytext()
          Returns the hover text defined by the user
 java.lang.String getUrl()
          Returns the URL defined by the user
 int showDialog(java.awt.Component caller)
          Shows the dialog
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CANCEL_OPTION

public static final int CANCEL_OPTION
See Also:
Constant Field Values

OK_OPTION

public static final int OK_OPTION
See Also:
Constant Field Values

REMOVE_LINK_OPTION

public static final int REMOVE_LINK_OPTION
See Also:
Constant Field Values
Constructor Detail

HyperlinkInputDialog

public HyperlinkInputDialog(java.lang.String url,
                            java.lang.String displaytext)
Create the dialog with a preset URL and a preset display string

Parameters:
url - the URL to link to, may be null
displaytext - the hover text, may be null
Method Detail

showDialog

public int showDialog(java.awt.Component caller)
Shows the dialog

Parameters:
caller - the parent component
Returns:
the user choice
See Also:
CANCEL_OPTION, OK_OPTION, REMOVE_LINK_OPTION

getUrl

public java.lang.String getUrl()
Returns the URL defined by the user

Returns:
the URL defined by the user, may be null

getDisplaytext

public java.lang.String getDisplaytext()
Returns the hover text defined by the user

Returns:
the hover text defined by the user, my be null