|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface INatTableWidget
This interface defines every public action a user can perform on the EMF Facet table widget
| Method Summary | |
|---|---|
void |
addQueryColumn()
Open the query selection dialog. |
void |
addRows(java.util.List<EObject> newElements)
Add a new row in the table for each given element. |
void |
copySelectionToClipboard()
This method performs to usual "copy to clipboard" action. |
void |
createNewElement()
This method calls the last launched InstantiationMethod and adds
the result to the table if any. |
void |
createNewElement(InstantiationMethod instantiationMethod)
This method calls the given InstantiationMethod and adds the
result to the table if any. |
void |
deleteSelection()
Delete the selected elements from their respective models and remove the corresponding line in the table. |
Control |
getComposite()
|
java.util.List<InstantiationMethod> |
getInstantionMethodHistory()
|
java.util.Collection<ISelectionChangedListener> |
getSelectionChangedListeners()
|
TableConfiguration |
getTableConfiguration()
This method returns the TableConfiguration attached to the table. |
TableInstance |
getTableInstance()
This method returns the TableInstance attached to the table. |
boolean |
isCellsDeletable()
Return whether the selection of cells can be deleted. |
boolean |
isCellSelected()
Return whether there is at least a cell selected in the table |
boolean |
isColumnSelected()
Return whether there is at least a column selected in the table |
boolean |
isSelectedColumnDeletable()
Return whether the selected column can be deleted. |
void |
openLoadCustomizationDialog()
|
void |
openLoadFacetsDialog()
|
void |
openSavedTable()
Allow the opening of an existing saved .table file within the current table widget. |
void |
registerActionDelegate(IActionDelegate action)
Register an ActionDelegate. |
void |
removeLine()
Remove the selected lines from the table. |
void |
save()
Performs the usual save action. |
void |
saveAs()
Open a "Save As" dialog to serialize the table. |
void |
selectAll()
Perform the usual "Select All" action on the table's cells |
void |
selectColumnsToHide()
Open a selection popup to select which columns to show/hide. |
void |
selectInstantiationMethodToLaunch()
Open a dialog to choose the default instantiationMethod to perform when clicking on the "Create" button. |
void |
setHideEmptyColumns(boolean hideEmptyColumns)
Whether to hide columns which don't contain any elements. |
void |
setOnlyShowCommonColumns(boolean onlyShowCommonColumns)
Whether to show columns which are specific to a few elements (false), or only columns which are common to all the elements (true). |
void |
sortColumnsByType()
Whether to sort columns by type of link (attributes first, then references, then derived references, ...). |
void |
unregisterActionDelegate(IActionDelegate action)
Unregister an ActionDelegate |
| Method Detail |
|---|
void createNewElement()
InstantiationMethod and adds
the result to the table if any.
If no InstantiationMethod is saved, then a selection popup is
opened for the user to choose one via
selectInstantiationMethodToLaunch()
void createNewElement(InstantiationMethod instantiationMethod)
InstantiationMethod and adds the
result to the table if any.
instantiationMethod - an InstantiationMethodvoid selectInstantiationMethodToLaunch()
void save()
void saveAs()
void addQueryColumn()
void copySelectionToClipboard()
void deleteSelection()
void selectColumnsToHide()
void setHideEmptyColumns(boolean hideEmptyColumns)
hideEmptyColumns - true to hide columns which don't contain any
elements.void setOnlyShowCommonColumns(boolean onlyShowCommonColumns)
onlyShowCommonColumns - Whether to show columns which are specific to a few elements
(false), or only columns which are common to all the elements
(true)void sortColumnsByType()
sortColumnsByType - Boolean to sort columns by type of linkvoid openSavedTable()
void removeLine()
deleteSelection() for that case.
void selectAll()
TableConfiguration getTableConfiguration()
TableConfiguration attached to the table.
TableConfiguration attached to the table.java.util.List<InstantiationMethod> getInstantionMethodHistory()
TableInstance getTableInstance()
TableInstance attached to the table.
TableInstance attached to the table.boolean isCellSelected()
boolean isColumnSelected()
boolean isCellsDeletable()
boolean isSelectedColumnDeletable()
Control getComposite()
void addRows(java.util.List<EObject> newElements)
newElements - the list of elements to add to the tablevoid registerActionDelegate(IActionDelegate action)
ActionDelegate. It will be notified after the opening
of a saved table in a view.
action - the action to be registeredvoid unregisterActionDelegate(IActionDelegate action)
ActionDelegate
action - the action to be unregisteredjava.util.Collection<ISelectionChangedListener> getSelectionChangedListeners()
void openLoadCustomizationDialog()
void openLoadFacetsDialog()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||