Class InterfacesTable
java.lang.Object
org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
org.libreoffice.ide.eclipse.core.gui.AbstractTable
org.libreoffice.ide.eclipse.core.wizards.pages.InterfacesTable
- All Implemented Interfaces:
org.eclipse.jface.viewers.ISelectionProvider,org.eclipse.swt.graphics.Drawable
This class corresponds to the table of interface inheritances. The add action launches the UNO Type browser to select
one interface. This class shouldn't be subclassed.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassThe interface names are stored in path-like strings, ie: using "::" as separator. -
Field Summary
Fields inherited from class org.libreoffice.ide.eclipse.core.gui.AbstractTable
mTable, mTableViewerFields inherited from class org.eclipse.swt.widgets.Composite
embeddedHandleFields inherited from class org.eclipse.swt.widgets.Widget
handle -
Constructor Summary
ConstructorsConstructorDescriptionInterfacesTable(org.eclipse.swt.widgets.Composite pParent) Simplified constructor for this kind of table. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInterface(String ifaceName, boolean optional) Add a new interface in the table.protected ITableElementaddLine()Method called after an action on the Add button.protected org.eclipse.jface.viewers.CellEditor[]createCellEditors(org.eclipse.swt.widgets.Table pTable) Method called to configure the columns cell editors.Methods inherited from class org.libreoffice.ide.eclipse.core.gui.AbstractTable
addLine, addSelectionChangedListener, createContent, dispose, getLines, getSelection, handleDoubleClick, removeLine, removeSelectionChangedListener, setSelection, setToolTipTextMethods inherited from class org.eclipse.swt.widgets.Composite
changed, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList, toStringMethods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar, setScrollbarsModeMethods inherited from class org.eclipse.swt.widgets.Control
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isAutoScalable, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, updateMethods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, addTypedListener, checkWidget, getData, getData, getDisplay, getListeners, getStyle, getTypedListeners, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, removeTypedListener, reskin, setData, setData
-
Constructor Details
-
InterfacesTable
public InterfacesTable(org.eclipse.swt.widgets.Composite pParent) Simplified constructor for this kind of table.- Parameters:
pParent- the parent composite where to put the table
-
-
Method Details
-
addInterface
Add a new interface in the table.- Parameters:
ifaceName- the name of the interface to addoptional-trueif the interface is optional.
-
createCellEditors
protected org.eclipse.jface.viewers.CellEditor[] createCellEditors(org.eclipse.swt.widgets.Table pTable) Method called to configure the columns cell editors. This method should be overridden in order to set customized editors. The default action is to returnnullto indicate that no editing is allowed.- Overrides:
createCellEditorsin classAbstractTable- Parameters:
pTable- the table for which to create the cell editors, i.e. the internal table object of this class.- Returns:
- the cell editors in the order of the columns
-
addLine
Method called after an action on the Add button. This method should be overridden to customize the table.- Overrides:
addLinein classAbstractTable- Returns:
- the new table line to add.
-