public class EntryComposite extends org.eclipse.swt.widgets.Composite implements IUpdateableListener
This is an subclass of SWT's Composite class made specifically to work with ICE Entries.
Changes to this class are broadcasted using SWT's event system. Marking the FormEditor as dirty, for example, should be handled by registering an event listener with instances of this class and catching the signal.
The EntryComposite can post messages about its work with an Entry to a IMessageManager if it is set by calling setMessageManager().
component
Constructor and Description |
---|
EntryComposite(org.eclipse.swt.widgets.Composite parent,
int style,
Entry refEntry)
The Constructor
|
Modifier and Type | Method and Description |
---|---|
Entry |
getEntry()
Returns the entry stored on this composite
|
void |
refresh()
This operation directs the EntryComposite to refresh its view of the
Entry.
|
void |
setMessageManager(org.eclipse.ui.forms.IMessageManager manager)
This operation sets the Message Manager that should be used by the
EntryComposite to post messages about the Entry.
|
void |
toggleSaveDecoration()
This method is responsible for toggling a ControlDecoration on and off
on the EntryComposite.
|
void |
update(IUpdateable component)
Listen for updates from the Entry and redraw if needed.
|
changed, computeSize, 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, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, 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, 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
public EntryComposite(org.eclipse.swt.widgets.Composite parent, int style, Entry refEntry)
parent
- The parent Composite.style
- The style of the EntryComposite.refEntry
- An Entry that should be used to create the widget, to update
when changed by the user and to be updated from when changed
internally by ICE.public Entry getEntry()
public void refresh()
public void setMessageManager(org.eclipse.ui.forms.IMessageManager manager)
manager
- The Message Manager that the EntryComposite should use.public void update(IUpdateable component)
update
in interface IUpdateableListener
component
- The component that was updated in some way.public void toggleSaveDecoration()
currentSelection
). Otherwise, it will
toggle off.