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() |
addDependency
public 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 DomUIControl
public void addCommitListener(CommitListener listener)
addCommitListener
in class DomUIControl
public void removeCommitListener(CommitListener listener)
removeCommitListener
in class DomUIControl
public boolean canNavigate(DomElement element)
canNavigate
in class DomUIControl
public void navigate(DomElement element)
navigate
in class DomUIControl
public void calcData(DataKey key, DataSink sink)
calcData
in interface TypeSafeDataProvider
protected 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 Committable
public void dispose()
Disposable
dispose
in interface Disposable
protected final Project getProject()
public DomTableView getComponent()
getComponent
in interface CommittablePanel
public final DomCollectionChildDescription getChildDescription()
public final DomElement getDomElement()
getDomElement
in class DomUIControl
public final void reset()
reset
in interface Committable
public 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 Highlightable
public static DomCollectionControl getDomCollectionControl(AnActionEvent e)