Class JWFileChooserStringOverridesAbstract

java.lang.Object
com.io7m.jwheatsheaf.api.JWFileChooserStringOverridesAbstract
All Implemented Interfaces:
JWFileChooserStringOverridesType
Direct Known Subclasses:
JWFileChooserStringOverridesEmpty

public abstract class JWFileChooserStringOverridesAbstract
extends java.lang.Object
implements JWFileChooserStringOverridesType
An abstract set of string overrides that override nothing.
  • Constructor Summary

    Constructors
    Modifier Constructor Description
    protected JWFileChooserStringOverridesAbstract()  
  • Method Summary

    Modifier and Type Method Description
    java.util.Optional<java.lang.String> buttonOpen()
    A message override for the "Open" button.
    java.util.Optional<java.lang.String> buttonSave()
    A message override for the "Save" button.
    java.util.Optional<java.lang.String> confirmReplaceButton()
    A message override for the "Replace" confirmation button.
    java.util.Optional<java.lang.String> confirmReplaceMessage​(java.lang.String file)
    A message override for the "Do you want to replace this file?" message.
    java.util.Optional<java.lang.String> confirmTitleMessage()
    A message override for the "Replace?" confirmation dialog header.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JWFileChooserStringOverridesAbstract

      protected JWFileChooserStringOverridesAbstract()
  • Method Details

    • buttonOpen

      public java.util.Optional<java.lang.String> buttonOpen()
      A message override for the "Open" button. Overrides of this method are NOT required to call this method via super.
      Specified by:
      buttonOpen in interface JWFileChooserStringOverridesType
      Returns:
      A message override
    • buttonSave

      public java.util.Optional<java.lang.String> buttonSave()
      A message override for the "Save" button. Overrides of this method are NOT required to call this method via super.
      Specified by:
      buttonSave in interface JWFileChooserStringOverridesType
      Returns:
      A message override
    • confirmReplaceMessage

      public java.util.Optional<java.lang.String> confirmReplaceMessage​(java.lang.String file)
      A message override for the "Do you want to replace this file?" message. Overrides of this method are NOT required to call this method via super.
      Specified by:
      confirmReplaceMessage in interface JWFileChooserStringOverridesType
      Parameters:
      file - The file
      Returns:
      A message override
    • confirmReplaceButton

      public java.util.Optional<java.lang.String> confirmReplaceButton()
      A message override for the "Replace" confirmation button. Overrides of this method are NOT required to call this method via super.
      Specified by:
      confirmReplaceButton in interface JWFileChooserStringOverridesType
      Returns:
      A message override
    • confirmTitleMessage

      public java.util.Optional<java.lang.String> confirmTitleMessage()
      A message override for the "Replace?" confirmation dialog header. Overrides of this method are NOT required to call this method via super.
      Specified by:
      confirmTitleMessage in interface JWFileChooserStringOverridesType
      Returns:
      A message override