public abstract class NamedItemsListEditor<T> extends MasterDetailsComponent
MasterDetailsComponent.ActionGroupWithPreselection, MasterDetailsComponent.ItemsChangeListener, MasterDetailsComponent.MyActionGroupWrapper, MasterDetailsComponent.MyDeleteAction, MasterDetailsComponent.MyNode, MasterDetailsComponent.MyRootNode
Configurable.Composite, Configurable.NoMargin, Configurable.NoScroll, Configurable.TopComponentController, Configurable.TopComponentProvider, Configurable.VariableProjectAppLevel, Configurable.WithEpDependencies
COPY_ICON, LOG, myAutoScrollHandler, myCurrentConfigurable, myHistory, myNorthPanel, myRoot, myState, myToReInitWholePanel, myTree, myWholePanel, TREE_NAME, TREE_OBJECT, TREE_UPDATER
APPLICATION_CONFIGURABLE, PROJECT_CONFIGURABLE
Modifier | Constructor and Description |
---|---|
protected |
NamedItemsListEditor(Namer<? super T> namer,
Factory<? extends T> factory,
Cloner<T> cloner,
<any> comparer,
java.util.List<T> items) |
protected |
NamedItemsListEditor(Namer<? super T> namer,
Factory<? extends T> factory,
Cloner<T> cloner,
<any> comparer,
java.util.List<T> items,
boolean initInConstructor) |
Modifier and Type | Method and Description |
---|---|
void |
apply()
Stores the settings from the Swing form to the configurable component.
|
java.lang.String |
askForProfileName(java.lang.String titlePattern) |
protected boolean |
canDelete(T item) |
protected java.util.List<AnAction> |
createActions(boolean fromPopup) |
protected abstract UnnamedConfigurable |
createConfigurable(T item) |
protected T |
createItem() |
protected T |
findByName(java.lang.String name) |
protected java.util.List<T> |
getCurrentItems() |
protected UnnamedConfigurable |
getItemConfigurable(T item) |
java.util.List<T> |
getItems() |
T |
getSelectedItem() |
boolean |
isModified()
Indicates whether the Swing form was modified or not.
|
protected void |
onItemCloned(T clone) |
protected void |
onItemCreated(T newItem) |
protected void |
onItemDeleted(java.lang.Object item) |
void |
reset()
Loads the settings from the configurable component to the Swing form.
|
void |
selectItem(T item) |
protected void |
setDisplayName(T item,
java.lang.String name) |
void |
setShowIcons(boolean showIcons) |
protected java.lang.String |
subjDisplayName() |
protected boolean |
wasObjectStored(java.lang.Object editableObject) |
addItemsChangeListener, addNode, addNotify, checkForEmptyAndDuplicatedNames, clearChildren, createComponent, createToolbarActionGroup, disposeUIResources, ensureInitialized, findNodeByCondition, findNodeByName, findNodeByObject, forAll, getAdditionalActions, getComponentStateKey, getDetails, getDetailsComponent, getEmptySelectionString, getHelpTopic, getMaster, getNodeComparator, getPanelPreferredSize, getSelectedConfigurable, getSelectedNode, getSelectedObject, getSplitter, getState, getStateService, getToolbar, getTree, initializeConfigurable, initTree, initUi, isAutoScrollEnabled, isInitialized, loadComponentState, loadState, processRemovedItems, reInitWholePanelIfNeeded, removeNodes, removePaths, restoreLastSelection, selectNodeInTree, selectNodeInTree, selectNodeInTree, selectNodeInTree, selectNodeInTree, setHistory, setSelectedNode, sortDescendants, updateMultiSelection, updateSelection
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDisplayName, getPreferredFocusedComponent, isModified, isModified, isModified, isModified
cancel
protected NamedItemsListEditor(Namer<? super T> namer, Factory<? extends T> factory, Cloner<T> cloner, <any> comparer, java.util.List<T> items)
public void reset()
UnnamedConfigurable
reset
in interface UnnamedConfigurable
reset
in class MasterDetailsComponent
protected boolean wasObjectStored(java.lang.Object editableObject)
wasObjectStored
in class MasterDetailsComponent
protected java.lang.String subjDisplayName()
public java.lang.String askForProfileName(java.lang.String titlePattern)
protected T findByName(java.lang.String name)
protected java.util.List<AnAction> createActions(boolean fromPopup)
createActions
in class MasterDetailsComponent
protected boolean canDelete(T item)
protected abstract UnnamedConfigurable createConfigurable(T item)
protected void onItemDeleted(java.lang.Object item)
onItemDeleted
in class MasterDetailsComponent
protected void setDisplayName(T item, java.lang.String name)
public void setShowIcons(boolean showIcons)
protected UnnamedConfigurable getItemConfigurable(T item)
public boolean isModified()
UnnamedConfigurable
isModified
in interface UnnamedConfigurable
isModified
in class MasterDetailsComponent
true
if the settings were modified, false
otherwisepublic void apply() throws ConfigurationException
UnnamedConfigurable
apply
in interface UnnamedConfigurable
apply
in class MasterDetailsComponent
ConfigurationException
- if values cannot be appliedprotected java.util.List<T> getCurrentItems()
public java.util.List<T> getItems()
public T getSelectedItem()
protected void onItemCloned(T clone)
public void selectItem(T item)
protected T createItem()
protected void onItemCreated(T newItem)