org.merlotxml.merlot
Class DTDChooser

java.lang.Object
  extended byorg.merlotxml.merlot.DTDChooser
All Implemented Interfaces:
MerlotConstants

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.


Nested Class Summary
protected  class DTDChooser.DTDListModel
           
 
Field Summary
protected  DTDCache _cache
           
protected  javax.swing.JPanel _chooserPanel
           
protected  javax.swing.JList _list
           
protected  DTDChooser.DTDListModel _listModel
           
 
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
 
Constructor Summary
DTDChooser(DTDCache dtdcache)
           
 
Method Summary
 DTDCacheEntry chooseDTD()
          Lets the user choose a dtd, and returns the cache entry for it
 DTDCacheEntry chooseDTD(java.awt.Component msg)
          Gives the user a DTD Chooser dialog with the given message.
 DTDCacheEntry chooseDTD(java.lang.String message)
          Bring up the dtd chooser dialog with the given message for the user
 java.lang.String requestPublicId()
           
protected  void setupChooserPanel()
           
protected  javax.swing.JList setupDTDList()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_cache

protected DTDCache _cache

_chooserPanel

protected javax.swing.JPanel _chooserPanel

_listModel

protected DTDChooser.DTDListModel _listModel

_list

protected javax.swing.JList _list
Constructor Detail

DTDChooser

public DTDChooser(DTDCache dtdcache)
Method Detail

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()