public class DomCollectionControl<T extends DomElement> extends DomUIControl implements Highlightable, TypeSafeDataProvider
| Modifier and Type | Class and Description |
|---|---|
static class |
DomCollectionControl.AddAction |
class |
DomCollectionControl.ControlAddAction |
static class |
DomCollectionControl.EditAction |
static class |
DomCollectionControl.RemoveAction |
Disposable.Parent| Constructor and Description |
|---|
DomCollectionControl(DomElement parentElement,
DomCollectionChildDescription description) |
DomCollectionControl(DomElement parentElement,
DomCollectionChildDescription description,
boolean editable,
ColumnInfo<T,?>... columnInfos) |
DomCollectionControl(DomElement parentElement,
java.lang.String subTagName) |
DomCollectionControl(DomElement parentElement,
java.lang.String subTagName,
boolean editable,
ColumnInfo<T,?>... columnInfos) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCommitListener(CommitListener listener) |
void |
bind(javax.swing.JComponent component) |
void |
calcData(DataKey key,
DataSink sink) |
boolean |
canNavigate(DomElement element) |
void |
commit() |
protected AnAction [] |
createAdditionActions() |
protected ColumnInfo[] |
createColumnInfos(DomElement parent) |
protected DefaultAddAction |
createDefaultAction(java.lang.String name,
javax.swing.Icon icon,
java.lang.reflect.Type type) |
protected DefaultActionGroup |
createPopupActionGroup() |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
protected void |
doEdit() |
protected void |
doEdit(T t) |
protected void |
doRemove() |
protected void |
doRemove(java.util.List<? extends T> toDelete) |
DomCollectionChildDescription |
getChildDescription() |
java.util.List<T> |
getCollectionElements() |
DomTableView |
getComponent() |
static DomCollectionControl |
getDomCollectionControl(AnActionEvent e) |
DomElement |
getDomElement() |
protected java.lang.String |
getEmptyPaneText() |
protected java.lang.String |
getHelpId() |
protected Project |
getProject() |
protected void |
initialize(DomTableView boundComponent) |
boolean |
isEditable() |
void |
navigate(DomElement element) |
void |
removeCommitListener(CommitListener listener) |
void |
reset() |
protected int |
sortAdjustedIndex(int index) |
void |
updateHighlighting() |
addDependencypublic DomCollectionControl(DomElement parentElement, DomCollectionChildDescription description, boolean editable, ColumnInfo<T,?>... columnInfos)
public DomCollectionControl(DomElement parentElement, java.lang.String subTagName, boolean editable, ColumnInfo<T,?>... columnInfos)
public DomCollectionControl(DomElement parentElement, DomCollectionChildDescription description)
public DomCollectionControl(DomElement parentElement, java.lang.String subTagName)
public boolean isEditable()
public void bind(javax.swing.JComponent component)
bind in class DomUIControlpublic void addCommitListener(CommitListener listener)
addCommitListener in class DomUIControlpublic void removeCommitListener(CommitListener listener)
removeCommitListener in class DomUIControlpublic boolean canNavigate(DomElement element)
canNavigate in class DomUIControlpublic void navigate(DomElement element)
navigate in class DomUIControlpublic void calcData(DataKey key, DataSink sink)
calcData in interface TypeSafeDataProviderprotected java.lang.String getHelpId()
protected java.lang.String getEmptyPaneText()
protected void initialize(DomTableView boundComponent)
protected DefaultActionGroup createPopupActionGroup()
protected ColumnInfo[] createColumnInfos(DomElement parent)
protected int sortAdjustedIndex(int index)
protected final void doEdit()
protected void doEdit(T t)
protected void doRemove(java.util.List<? extends T> toDelete)
protected final void doRemove()
public void commit()
commit in interface Committablepublic void dispose()
Disposabledispose in interface Disposableprotected final Project getProject()
public DomTableView getComponent()
getComponent in interface CommittablePanelpublic final DomCollectionChildDescription getChildDescription()
public final DomElement getDomElement()
getDomElement in class DomUIControlpublic final void reset()
reset in interface Committablepublic java.util.List<T> getCollectionElements()
protected AnAction [] createAdditionActions()
protected DefaultAddAction createDefaultAction(java.lang.String name, javax.swing.Icon icon, java.lang.reflect.Type type)
public void updateHighlighting()
updateHighlighting in interface Highlightablepublic static DomCollectionControl getDomCollectionControl(AnActionEvent e)