Package hec.gui

Class AbstractFileChooserField

All Implemented Interfaces:
FocusListener, MouseMotionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, DocumentListener, Scrollable, SwingConstants, Modifiable, ModifiedEventControl, EditableComponent, FormManagementListener, RmaValidComponent
Direct Known Subclasses:
FileChooserFld

public abstract class AbstractFileChooserField extends RmaJTextField
See Also:
  • Field Details

  • Constructor Details

    • AbstractFileChooserField

      public AbstractFileChooserField()
    • AbstractFileChooserField

      public AbstractFileChooserField(String fullpath)
    • AbstractFileChooserField

      public AbstractFileChooserField(String fullpath, int cols)
  • Method Details

    • setOpenFile

      public void setOpenFile()
    • setOpenDirectory

      public void setOpenDirectory()
    • getOpenType

      public int getOpenType()
    • configure

      protected void configure()
    • createDefaultModel

      protected Document createDefaultModel()
      Description copied from class: RmaJTextField
      Creates the default implementation of the model to be used at construction if one isn't explicitly given. An instance of RMADocument is returned.
      Overrides:
      createDefaultModel in class RmaJTextField
      Returns:
      the default model implementation
    • setDefaultPath

      public void setDefaultPath(String path)
    • getDefaultPath

      public String getDefaultPath()
    • setOpening

      public void setOpening()
    • isOpening

      public boolean isOpening()
    • setSaving

      public void setSaving()
    • setMouseListener

      protected void setMouseListener()
    • removeMouseListener

      protected void removeMouseListener()
    • setText

      public void setText(String s)
      Overrides:
      setText in class JTextComponent
    • getToolTipText

      public String getToolTipText()
      Overrides:
      getToolTipText in class RmaJTextField
    • setFilters

      public void setFilters(List filters)
    • getFilters

      public List getFilters()
    • displayFileChooserDialog

      public abstract boolean displayFileChooserDialog()
    • getPath

      public String getPath()
      this method is here for subclasses to override to do any thing to the path before the FileChooser dialog get the path. by default it returns getText()
      Returns:
      getText()
    • getUIClassID

      public String getUIClassID()
      Gets the class ID for a UI.
      Overrides:
      getUIClassID in class JTextField
      Returns:
      the ID ("DescFieldUI")
      See Also:
    • isManagingFocus

      public boolean isManagingFocus()
      let tabs traverse to next component please
      Overrides:
      isManagingFocus in class JComponent
    • fireFileChosen

      protected void fireFileChosen()
    • addFileSelectedListener

      public void addFileSelectedListener(FileSelectedListener listener)
    • removeFileSelectedListener

      public void removeFileSelectedListener(FileSelectedListener listener)
    • setChooserTitle

      public void setChooserTitle(String title)
      set the title to use for the chooser dialog
      Parameters:
      title - the chooser dialog title
    • getChooserTitle

      public String getChooserTitle()
      Returns:
      the title to use for the chooser dialog
    • setChooserApproveButtonText

      public void setChooserApproveButtonText(String okButtonText)
    • getChooserApproveButtonText

      public String getChooserApproveButtonText()