org.merlotxml.merlot
Class DTDChooser
java.lang.Object
|
+--org.merlotxml.merlot.DTDChooser
- public class DTDChooser
- extends java.lang.Object
- implements MerlotConstants
This class provides a way to choose a DTD either from a plugin or
from the filesystem.
Fields inherited from interface org.merlotxml.merlot.MerlotConstants |
ACTION_MENU_ACCELERATOR,
ACTION_MENU_ICON,
ACTION_NAME,
ACTION_SHORT_DESCRIPTION,
ACTION_SMALL_ICON,
AFTER,
BEFORE,
ERR,
INTO,
UI,
XML |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
_cache
protected DTDCache _cache
_chooserPanel
protected javax.swing.JPanel _chooserPanel
_listModel
protected DTDChooser.DTDListModel _listModel
_list
protected javax.swing.JList _list
DTDChooser
public DTDChooser(DTDCache dtdcache)
chooseDTD
public DTDCacheEntry chooseDTD()
- Lets the user choose a dtd, and returns the cache entry for it
chooseDTD
public DTDCacheEntry chooseDTD(java.lang.String message)
- Bring up the dtd chooser dialog with the given message for the user
chooseDTD
public DTDCacheEntry chooseDTD(java.awt.Component msg)
- Gives the user a DTD Chooser dialog with the given message.
- Parameters:
msg
- the message to display above the list- Returns:
- a DTDCacheEntry for the chosen dtd, or null if none was chosen
requestPublicId
public java.lang.String requestPublicId()
setupChooserPanel
protected void setupChooserPanel()
setupDTDList
protected javax.swing.JList setupDTDList()