Class DayEditorCalendarableItemControl
java.lang.Object
org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
org.eclipse.swt.widgets.Canvas
org.eclipse.nebula.widgets.compositetable.day.internal.DayEditorCalendarableItemControl
- All Implemented Interfaces:
ICalendarableItemControl,org.eclipse.swt.graphics.Drawable
public class DayEditorCalendarableItemControl extends org.eclipse.swt.widgets.Canvas implements ICalendarableItemControl
Represents a graphical item inside a multi-day event editor.
- Since:
- 3.2
-
Field Summary
-
Constructor Summary
Constructors Constructor Description DayEditorCalendarableItemControl(org.eclipse.swt.widgets.Composite parent, int style)Constructs a new instance of this class given its parent and a style value describing its behavior and appearance. -
Method Summary
Modifier and Type Method Description voidaddMouseListener(org.eclipse.swt.events.MouseListener listener)voiddispose()CalendarableItemgetCalendarableItem()intgetClipping()intgetContinued()voidremoveMouseListener(org.eclipse.swt.events.MouseListener listener)voidsetCalendarableItem(CalendarableItem calendarable)Method setCalendarable.voidsetClipping(int clipping)Sets the clipping style bitsvoidsetContinued(int continued)Sets the continued style bitsvoidsetImage(org.eclipse.swt.graphics.Image image)voidsetMenu(org.eclipse.swt.widgets.Menu menu)voidsetSelected(boolean selected)Set or clear the selection indicator in the UI.voidsetText(java.lang.String text)voidsetToolTipText(java.lang.String text)Methods inherited from class org.eclipse.swt.widgets.Canvas
drawBackground, getCaret, getIME, scroll, setCaret, setFont, setIMEMethods 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, getVerticalBarMethods inherited from class org.eclipse.swt.widgets.Control
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, 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, removeKeyListener, removeMenuDetectListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setForeground, setLayoutData, setLocation, setLocation, 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, checkWidget, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData
-
Constructor Details
-
DayEditorCalendarableItemControl
public DayEditorCalendarableItemControl(org.eclipse.swt.widgets.Composite parent, int style)Constructs a new instance of this class given its parent and a style value describing its behavior and appearance.The style value is either one of the style constants defined in class
SWTwhich is applicable to instances of this class, or must be built by bitwise OR'ing together (that is, using theint"|" operator) two or more of thoseSWTstyle constants. The class description lists the style constants that are applicable to the class. Style bits are also inherited from superclasses.- Parameters:
parent- a composite control which will be the parent of the new instance (cannot be null)style- the style of control to construct- Throws:
java.lang.IllegalArgumentException-- ERROR_NULL_ARGUMENT - if the parent is null
org.eclipse.swt.SWTException-- ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent
- ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass
- See Also:
Widget.checkSubclass(),Widget.getStyle()
-
-
Method Details
-
dispose
public void dispose()- Specified by:
disposein interfaceICalendarableItemControl- Overrides:
disposein classorg.eclipse.swt.widgets.Widget
-
setMenu
public void setMenu(org.eclipse.swt.widgets.Menu menu)- Specified by:
setMenuin interfaceICalendarableItemControl- Overrides:
setMenuin classorg.eclipse.swt.widgets.Control
-
setText
public void setText(java.lang.String text)- Specified by:
setTextin interfaceICalendarableItemControl
-
setImage
public void setImage(org.eclipse.swt.graphics.Image image)- Specified by:
setImagein interfaceICalendarableItemControl
-
setToolTipText
public void setToolTipText(java.lang.String text)- Specified by:
setToolTipTextin interfaceICalendarableItemControl- Overrides:
setToolTipTextin classorg.eclipse.swt.widgets.Control
-
setClipping
public void setClipping(int clipping)Description copied from interface:ICalendarableItemControlSets the clipping style bits- Specified by:
setClippingin interfaceICalendarableItemControl- Parameters:
clipping- One of SWT.TOP or SWT.BOTTOM
-
getClipping
public int getClipping()- Specified by:
getClippingin interfaceICalendarableItemControl- Returns:
- The clipping style bits
-
setContinued
public void setContinued(int continued)Description copied from interface:ICalendarableItemControlSets the continued style bits- Specified by:
setContinuedin interfaceICalendarableItemControl- Parameters:
continued- One of SWT.TOP or SWT.BOTTOM
-
getContinued
public int getContinued()- Specified by:
getContinuedin interfaceICalendarableItemControl- Returns:
- the continued style bits
-
setSelected
public void setSelected(boolean selected)Description copied from interface:ICalendarableItemControlSet or clear the selection indicator in the UI.- Specified by:
setSelectedin interfaceICalendarableItemControl- Parameters:
selected- true if this control should appear selected; false otherwise.
-
addMouseListener
public void addMouseListener(org.eclipse.swt.events.MouseListener listener)- Specified by:
addMouseListenerin interfaceICalendarableItemControl- Overrides:
addMouseListenerin classorg.eclipse.swt.widgets.Control
-
removeMouseListener
public void removeMouseListener(org.eclipse.swt.events.MouseListener listener)- Specified by:
removeMouseListenerin interfaceICalendarableItemControl- Overrides:
removeMouseListenerin classorg.eclipse.swt.widgets.Control
-
setCalendarableItem
Description copied from interface:ICalendarableItemControlMethod setCalendarable. Sets the associated model.- Specified by:
setCalendarableItemin interfaceICalendarableItemControl
-
getCalendarableItem
- Specified by:
getCalendarableItemin interfaceICalendarableItemControl- Returns:
- Returns the calendarable.
-