class UrlListEditor extends AbstractBasicEditorProvider
| Constructor and Description |
|---|
UrlListEditor(SwingUrlListPreferenceProperty property,
java.util.Locale l,
SwingUrlListPreferenceProperty.UrlSelectionMode urlSelectionMode,
javax.swing.Action... extraActions)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListSelectionListener(javax.swing.event.ListSelectionListener listener)
Add a selection listener to the URL list.
|
protected static javax.swing.DefaultListModel<java.lang.String> |
createListModel(java.util.Collection<java.lang.String> c) |
javax.swing.JComponent |
getEditor()
Get a component for editing.
|
void |
goodBye()
Called when the editor provider is no longer used.
|
void |
removeListSelectionListener(javax.swing.event.ListSelectionListener listener)
Remove a selection listener to the URL list.
|
void |
reset()
Reset the value in the editor to the basic value.
|
void |
save()
Set the basic value from the editor.
|
getDescription, getLabel, getLabelText, getLabelTextWithPunctuation, getTitleText, getToolTipText, isValidValuepublic UrlListEditor(@NotNull SwingUrlListPreferenceProperty property, java.util.Locale l, @NotNull SwingUrlListPreferenceProperty.UrlSelectionMode urlSelectionMode, @NotNull javax.swing.Action... extraActions)
property - edited propertyl - localeurlSelectionMode - URL selection modeextraActions - additional actions to be shown in toolbar@NotNull protected static javax.swing.DefaultListModel<java.lang.String> createListModel(@NotNull java.util.Collection<java.lang.String> c)
public void addListSelectionListener(@NotNull javax.swing.event.ListSelectionListener listener)
listener - URL list selection listenerpublic void removeListSelectionListener(@NotNull javax.swing.event.ListSelectionListener listener)
listener - URL list selection listener@NotNull public javax.swing.JComponent getEditor()
public void reset()
public void save()
public void goodBye()