public class TimeSlice
extends org.eclipse.swt.widgets.Composite
Constructor and Description |
---|
TimeSlice(org.eclipse.swt.widgets.Composite parent,
int style)
Constructor TimeSlice.
|
Modifier and Type | Method and Description |
---|---|
void |
addCellFocusListener(org.eclipse.swt.events.FocusListener listener) |
void |
addKeyListener(org.eclipse.swt.events.KeyListener listener) |
void |
addMouseListener(org.eclipse.swt.events.MouseListener listener) |
org.eclipse.swt.widgets.Control |
getColumnControl(int column)
Returns the control that implements the specified column.
|
java.util.LinkedList |
getColumns() |
int |
getControlColumn(org.eclipse.swt.widgets.Widget widget)
Return the column number of the specified widget.
|
java.util.Date |
getCurrentTime() |
int |
getNumberOfColumns()
Gets the number of columns that will be displayed in this row.
|
boolean |
isHeaderControl() |
void |
removeCellFocusListener(org.eclipse.swt.events.FocusListener listener) |
void |
removeKeyListener(org.eclipse.swt.events.KeyListener listener) |
void |
removeMouseListener(org.eclipse.swt.events.MouseListener listener) |
void |
setCurrentTime(java.util.Date currentTime) |
void |
setHeaderControl(boolean headerControl) |
void |
setMenu(org.eclipse.swt.widgets.Menu menu) |
void |
setNumberOfColumns(int numberOfColumns)
Sets the number of columns that will be displayed in this row.
|
changed, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addMenuDetectListener, 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, removeMenuDetectListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString
public TimeSlice(org.eclipse.swt.widgets.Composite parent, int style)
parent
- The SWT parent object.style
- The set of style bits this control accepts. Currently SWT.NONE.public java.util.LinkedList getColumns()
public org.eclipse.swt.widgets.Control getColumnControl(int column)
column
- The column number.public int getControlColumn(org.eclipse.swt.widgets.Widget widget)
widget
- the TimeSlot widgetpublic void setMenu(org.eclipse.swt.widgets.Menu menu)
setMenu
in class org.eclipse.swt.widgets.Control
public boolean isHeaderControl()
public void setHeaderControl(boolean headerControl)
headerControl
- The headerControl to set.public int getNumberOfColumns()
public void setNumberOfColumns(int numberOfColumns)
Calling this method more than once results in undefined behavior.
numberOfColumns
- The number of days to display.public java.util.Date getCurrentTime()
public void setCurrentTime(java.util.Date currentTime)
currentTime
- public void addCellFocusListener(org.eclipse.swt.events.FocusListener listener)
listener
- Control.addFocusListener(org.eclipse.swt.events.FocusListener)
public void removeCellFocusListener(org.eclipse.swt.events.FocusListener listener)
listener
- Control.removeFocusListener(org.eclipse.swt.events.FocusListener)
public void addKeyListener(org.eclipse.swt.events.KeyListener listener)
addKeyListener
in class org.eclipse.swt.widgets.Control
public void removeKeyListener(org.eclipse.swt.events.KeyListener listener)
removeKeyListener
in class org.eclipse.swt.widgets.Control
public void addMouseListener(org.eclipse.swt.events.MouseListener listener)
addMouseListener
in class org.eclipse.swt.widgets.Control
public void removeMouseListener(org.eclipse.swt.events.MouseListener listener)
removeMouseListener
in class org.eclipse.swt.widgets.Control