Class TextFileChooser.FileEncodingPanel

    • Field Detail

      • m_PanelEncoding

        protected JPanel m_PanelEncoding
        the panel for the encoding.
      • m_LabelEncoding

        protected JLabel m_LabelEncoding
        the label for the text field.
      • m_ComboBoxEncoding

        protected BaseComboBox m_ComboBoxEncoding
        the text field for the encoding.
      • m_DefaultBackground

        protected Color m_DefaultBackground
        the default background color of the panel.
    • Constructor Detail

      • FileEncodingPanel

        public FileEncodingPanel()
    • Method Detail

      • initialize

        protected void initialize()
        Initializes the members.
        Overrides:
        initialize in class BasePanel
      • initGUI

        protected void initGUI()
        Initializes the widgets.
        Overrides:
        initGUI in class BasePanel
      • setOwner

        public void setOwner​(JFileChooser value)
        Sets the owner.
        Parameters:
        value - the new owner
      • setEncoding

        public void setEncoding​(String value)
        Sets the encoding.
        Parameters:
        value - the encoding to use
      • getEncoding

        public String getEncoding()
        Returns the currently set encoding.
        Returns:
        the encoding
      • isValidEncoding

        public static boolean isValidEncoding​(String value)
        Returns whether the encoding is valid.
        Parameters:
        value - the encoding to check, e.g., "UTF-8"
        Returns:
        true if valid