Package com._1c.g5.v8.dt.html.ui.editor
Class TableSizeControl
- java.lang.Object
-
- org.eclipse.swt.widgets.Widget
-
- org.eclipse.swt.widgets.Control
-
- org.eclipse.swt.widgets.Scrollable
-
- org.eclipse.swt.widgets.Composite
-
- com._1c.g5.v8.dt.html.ui.editor.TableSizeControl
-
- All Implemented Interfaces:
org.eclipse.swt.graphics.Drawable
public class TableSizeControl extends org.eclipse.swt.widgets.Composite
Control for choice size of table
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
TableSizeControl.ITableSizeChangeListener
Classes which implement this interface provide a method that deals with the events that are generated as the table size changed.
-
Constructor Summary
Constructors Constructor Description TableSizeControl(org.eclipse.swt.widgets.Composite parent, int style)
Constructor forTableSizeControl
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTableSizeChangeListener(TableSizeControl.ITableSizeChangeListener listener)
Adds the listener to the collection of listeners who will be notified when the the table size will be changed, by sending it one of the messages defined in theTableSizeControl.ITableSizeChangeListener
interface.void
removeTableSizeChangeListener(TableSizeControl.ITableSizeChangeListener listener)
Removes the listener from the collection of listeners who will be notified when the the table size will be changed.void
updateTableSize(int newCol, int newRow)
Update table size to given column and row count-
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, 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, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
-
Methods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString
-
-
-
-
Constructor Detail
-
TableSizeControl
public TableSizeControl(org.eclipse.swt.widgets.Composite parent, int style)
Constructor forTableSizeControl
- Parameters:
parent
- a widget which will be the parent of the new instance, cannot benull
style
- the style of widget to construct
-
-
Method Detail
-
updateTableSize
public void updateTableSize(int newCol, int newRow)
Update table size to given column and row count- Parameters:
newCol
- the new column countnewRow
- the new row count
-
addTableSizeChangeListener
public void addTableSizeChangeListener(TableSizeControl.ITableSizeChangeListener listener)
Adds the listener to the collection of listeners who will be notified when the the table size will be changed, by sending it one of the messages defined in theTableSizeControl.ITableSizeChangeListener
interface.- Parameters:
listener
- the listener which should be notified
-
removeTableSizeChangeListener
public void removeTableSizeChangeListener(TableSizeControl.ITableSizeChangeListener listener)
Removes the listener from the collection of listeners who will be notified when the the table size will be changed.- Parameters:
listener
- the listener which should no longer be notified
-
-