|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
org.openoffice.ide.eclipse.core.gui.AbstractTable
org.openoffice.ide.eclipse.core.gui.OOoTable
public class OOoTable
This class creates the whole OOo table with it's viewer and content provider. This class encloses an OOo editor dialog.
for the basic table functions descriptions
Field Summary |
---|
Fields inherited from class org.openoffice.ide.eclipse.core.gui.AbstractTable |
---|
mTable, mTableViewer |
Fields inherited from class org.eclipse.swt.widgets.Composite |
---|
embeddedHandle |
Fields inherited from class org.eclipse.swt.widgets.Widget |
---|
handle |
Constructor Summary | |
---|---|
OOoTable(org.eclipse.swt.widgets.Composite pParent)
Main constructor of the OOo Table. |
Method Summary | |
---|---|
protected ITableElement |
addLine()
Method called after an action on the Add button. |
void |
getPreferences()
Fill the table with the preferences from the OOOS_CONFIG file. |
protected void |
handleDoubleClick(org.eclipse.jface.viewers.DoubleClickEvent pEvent)
Method called when a double click event has been raised by the table. |
protected org.openoffice.ide.eclipse.core.internal.model.AbstractOOo |
openDialog(org.openoffice.ide.eclipse.core.internal.model.AbstractOOo pOoo)
This method create and calls the dialog box to be launched on OOo edition or OOo creation. |
protected ITableElement |
removeLine()
Method called after an action on the Del button. |
void |
savePreferences()
Saves the OOos in the OOOS_CONFIG file. |
Methods inherited from class org.openoffice.ide.eclipse.core.gui.AbstractTable |
---|
addLine, addSelectionChangedListener, createCellEditors, createContent, dispose, getLines, getSelection, removeSelectionChangedListener, setSelection, setToolTipText |
Methods inherited from class org.eclipse.swt.widgets.Composite |
---|
changed, checkSubclass, computeSize, getBackgroundMode, getChildren, getClientArea, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList |
Methods inherited from class org.eclipse.swt.widgets.Scrollable |
---|
computeTrim, getBorderWidth, getHorizontalBar, getVerticalBar |
Methods inherited from class org.eclipse.swt.widgets.Control |
---|
addControlListener, addDragDetectListener, addFocusListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBounds, getCursor, getData, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getRegion, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTraverseListener, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setRegion, setSize, setSize, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, update |
Methods inherited from class org.eclipse.swt.widgets.Widget |
---|
addDisposeListener, addListener, checkWidget, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OOoTable(org.eclipse.swt.widgets.Composite pParent)
pParent
- Composite parent of the table.Method Detail |
---|
public void getPreferences()
public void savePreferences()
protected ITableElement addLine()
addLine
in class AbstractTable
protected ITableElement removeLine()
removeLine
in class AbstractTable
null
if none was removed.protected void handleDoubleClick(org.eclipse.jface.viewers.DoubleClickEvent pEvent)
handleDoubleClick
in class AbstractTable
pEvent
- the double click event raisedprotected org.openoffice.ide.eclipse.core.internal.model.AbstractOOo openDialog(org.openoffice.ide.eclipse.core.internal.model.AbstractOOo pOoo)
pOoo
could be null: in this
case, a new one will be created. Otherwise the fields of the old one will
be changed. This is useful for OOo editing: the object reference is the
same.
pOoo
- the OpenOffice.org instance to show in the dialog
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |