Package org.omegat.externalfinder.item
Class ExternalFinderItem.Builder
- java.lang.Object
-
- org.omegat.externalfinder.item.ExternalFinderItem.Builder
-
- Enclosing class:
- ExternalFinderItem
public static class ExternalFinderItem.Builder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description ExternalFinderItem.SCOPE
scope
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Field Detail
-
scope
public ExternalFinderItem.SCOPE scope
-
-
Method Detail
-
from
public static ExternalFinderItem.Builder from(ExternalFinderItem item)
-
setName
public ExternalFinderItem.Builder setName(java.lang.String name)
Optionally prepend&
to a character to set a mnemonic for use in menus.
-
getName
public java.lang.String getName()
-
addURL
public ExternalFinderItem.Builder addURL(ExternalFinderItemURL url)
-
setURLs
public ExternalFinderItem.Builder setURLs(java.util.List<ExternalFinderItemURL> urls)
-
getURLs
public java.util.List<ExternalFinderItemURL> getURLs()
-
addCommand
public ExternalFinderItem.Builder addCommand(ExternalFinderItemCommand command)
-
setCommands
public ExternalFinderItem.Builder setCommands(java.util.List<ExternalFinderItemCommand> commands)
-
getCommands
public java.util.List<ExternalFinderItemCommand> getCommands()
-
setKeyStroke
public ExternalFinderItem.Builder setKeyStroke(javax.swing.KeyStroke keystroke)
-
getKeyStroke
public javax.swing.KeyStroke getKeyStroke()
-
setNopopup
public ExternalFinderItem.Builder setNopopup(boolean nopopup)
-
isNopopup
public boolean isNopopup()
-
setScope
public ExternalFinderItem.Builder setScope(ExternalFinderItem.SCOPE scope)
-
getScope
public ExternalFinderItem.SCOPE getScope()
-
build
public ExternalFinderItem build() throws ExternalFinderValidationException
-
validate
public void validate() throws ExternalFinderValidationException
-
-