Package com.io7m.jwheatsheaf.api
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 viasuper
.- Specified by:
buttonOpen
in interfaceJWFileChooserStringOverridesType
- 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 viasuper
.- Specified by:
buttonSave
in interfaceJWFileChooserStringOverridesType
- 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 viasuper
.- Specified by:
confirmReplaceMessage
in interfaceJWFileChooserStringOverridesType
- 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 viasuper
.- Specified by:
confirmReplaceButton
in interfaceJWFileChooserStringOverridesType
- 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 viasuper
.- Specified by:
confirmTitleMessage
in interfaceJWFileChooserStringOverridesType
- Returns:
- A message override
-