Class InterfaceMembersTable
- 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.InterfaceMembersTable
-
- All Implemented Interfaces:
org.eclipse.jface.viewers.ISelectionProvider,org.eclipse.swt.graphics.Drawable
public class InterfaceMembersTable extends AbstractTable
Table representing the interface members in the interface wizard page.
-
-
Field Summary
-
Fields inherited from class org.libreoffice.ide.eclipse.core.gui.AbstractTable
mTable, mTableViewer
-
-
Constructor Summary
Constructors Constructor Description InterfaceMembersTable(org.eclipse.swt.widgets.Composite pParent)Creates a table to add/edit/remove the attributes and methods of an interface.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ITableElementaddLine()Method called after an action on the Add button.UnoFactoryData[]getUnoFactoryData()Returns an array of the definedUnoFactoryData.protected voidhandleDoubleClick(org.eclipse.jface.viewers.DoubleClickEvent pEvent)Method called when a double click event has been raised by the table.protected UnoFactoryDataopenDialog(UnoFactoryData pContent)Open the member dialog for edition or creation.-
Methods inherited from class org.libreoffice.ide.eclipse.core.gui.AbstractTable
addLine, addSelectionChangedListener, createCellEditors, createContent, dispose, getLines, getSelection, removeLine, removeSelectionChangedListener, setSelection, setToolTipText
-
Methods 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
-
Methods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar
-
Methods 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, update
-
Methods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, checkWidget, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString
-
-
-
-
Constructor Detail
-
InterfaceMembersTable
public InterfaceMembersTable(org.eclipse.swt.widgets.Composite pParent)
Creates a table to add/edit/remove the attributes and methods of an interface.- Parameters:
pParent- the parent composite where to create the table. Its layout should be a Grid Layout with one column
-
-
Method Detail
-
getUnoFactoryData
public UnoFactoryData[] getUnoFactoryData()
Returns an array of the definedUnoFactoryData.- Returns:
- the created factory data
-
addLine
protected ITableElement 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.
-
handleDoubleClick
protected void handleDoubleClick(org.eclipse.jface.viewers.DoubleClickEvent pEvent)
Method called when a double click event has been raised by the table. This implementation doesn't perform any action and is intended to be overridden.- Overrides:
handleDoubleClickin classAbstractTable- Parameters:
pEvent- the double click event raised
-
openDialog
protected UnoFactoryData openDialog(UnoFactoryData pContent)
Open the member dialog for edition or creation.- Parameters:
pContent- ifnull, the dialog is opened to create a new member, otherwise it reuses the given data to modify them.- Returns:
- the created or edited data
-
-