|
|||||||||||
| 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
com.tensegrity.gui.swt.repository.AbstractSwtRepositoryItem
An is a
AbstractSwtRepositoryItem made of one
Composite for
the icon and a ImageWidget for the
text.
Label
| Field Summary | |
static int |
DEFAULT_WIDTH_AND_HEIGHT
Default icon width and height used by the constructor AbstractSwtRepositoryItem(Composite, int) |
protected boolean |
mouseIn
Indicates wether the mouse cursor is within this Icon. |
protected boolean |
mousePressed
Indicates wether the right mousebutton is pressed. |
| Fields inherited from class org.eclipse.swt.widgets.Control |
handle |
| Constructor Summary | |
AbstractSwtRepositoryItem(org.eclipse.swt.widgets.Composite arg0,
int arg1)
This constructor internally sets up and lays out the local Button and Label used to
represent this AbstractSwtRepositoryItem.
|
|
AbstractSwtRepositoryItem(org.eclipse.swt.widgets.Composite arg0,
int arg1,
int iconWidth,
int iconHeight)
This constructor internally sets up and lays out the local Button and Label used to
represent a AbstractSwtRepositoryItem.
|
|
| Method Summary | |
void |
dispose()
|
protected abstract AbstractSwtDragSourceListener |
getDragListener()
Returns the AbstractSwtDragSourceListener associated to
this repository item.
|
protected int |
getIconHeight()
TODO SGu (15.06.2005): Comment method |
protected ImageWidget |
getIconlabel()
Gives subclasses access to the ImageWidget. |
protected int |
getIconWidth()
TODO SGu (15.06.2005): Comment method |
protected abstract java.lang.Object |
getTooltip()
Returns the tooltip for this repository item. |
protected void |
initToolTipGenerator()
Initializes the tooltip generator. |
protected void |
installDragging()
This routine installs the "dragging" feature on both this Composite
and on the button holding the icon.
|
void |
mouseDoubleClick(org.eclipse.swt.events.MouseEvent arg0)
|
void |
mouseDown(org.eclipse.swt.events.MouseEvent arg0)
|
void |
mouseEnter(org.eclipse.swt.events.MouseEvent arg0)
|
void |
mouseExit(org.eclipse.swt.events.MouseEvent arg0)
|
void |
mouseHover(org.eclipse.swt.events.MouseEvent arg0)
|
void |
mouseUp(org.eclipse.swt.events.MouseEvent arg0)
|
void |
setImage(SwtIcon swtIcon)
Sets swtIcon as this repository item's image.
|
void |
setText(java.lang.String text)
Sets text as this repository item's text.
|
| Methods inherited from class org.eclipse.swt.widgets.Composite |
checkSubclass, computeSize, getChildren, getLayout, getTabList, layout, layout, setFocus, setLayout, setTabList |
| Methods inherited from class org.eclipse.swt.widgets.Scrollable |
computeTrim, getClientArea, getHorizontalBar, getVerticalBar |
| Methods inherited from class org.eclipse.swt.widgets.Control |
addControlListener, addFocusListener, addHelpListener, addKeyListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addPaintListener, addTraverseListener, computeSize, forceFocus, getAccessible, getBackground, getBorderWidth, getBounds, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, redraw, redraw, removeControlListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removePaintListener, removeTraverseListener, setBackground, setBounds, setBounds, setCapture, setCursor, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, update |
| Methods inherited from class org.eclipse.swt.widgets.Widget |
addDisposeListener, addListener, checkWidget, getData, getData, getDisplay, 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 |
| Field Detail |
public static final int DEFAULT_WIDTH_AND_HEIGHT
AbstractSwtRepositoryItem(Composite, int)
protected boolean mouseIn
protected boolean mousePressed
| Constructor Detail |
public AbstractSwtRepositoryItem(org.eclipse.swt.widgets.Composite arg0,
int arg1,
int iconWidth,
int iconHeight)
This constructor internally sets up and lays out
the local Button and Label used to
represent a AbstractSwtRepositoryItem.
arg0 - a widget which will be the parent of the new instance (cannot
be null)arg1 - the style of widget to constructiconWidth - the icon widthiconHeight - the icon height
public AbstractSwtRepositoryItem(org.eclipse.swt.widgets.Composite arg0,
int arg1)
This constructor internally sets up and lays out
the local Button and Label used to
represent this AbstractSwtRepositoryItem.
This constructor uses DEFAULT_WIDTH_AND_HEIGHT for the icon
width and height.
arg0 - a widget which will be the parent of the new instance (cannot
be null)arg1 - the style of widget to construct| Method Detail |
protected int getIconHeight()
TODO SGu (15.06.2005): Comment method
protected int getIconWidth()
TODO SGu (15.06.2005): Comment method
public void setText(java.lang.String text)
Sets text as this repository item's text.
text - this repository item's textpublic void mouseDown(org.eclipse.swt.events.MouseEvent arg0)
mouseDown in interface org.eclipse.swt.events.MouseListenerpublic void mouseEnter(org.eclipse.swt.events.MouseEvent arg0)
mouseEnter in interface org.eclipse.swt.events.MouseTrackListenerpublic void mouseExit(org.eclipse.swt.events.MouseEvent arg0)
mouseExit in interface org.eclipse.swt.events.MouseTrackListenerpublic void mouseUp(org.eclipse.swt.events.MouseEvent arg0)
mouseUp in interface org.eclipse.swt.events.MouseListenerpublic void mouseDoubleClick(org.eclipse.swt.events.MouseEvent arg0)
mouseDoubleClick in interface org.eclipse.swt.events.MouseListenerpublic void mouseHover(org.eclipse.swt.events.MouseEvent arg0)
mouseHover in interface org.eclipse.swt.events.MouseTrackListenerpublic void setImage(SwtIcon swtIcon)
Sets swtIcon as this repository item's image.
swtIcon - this repository item's imageprotected void installDragging()
This routine installs the "dragging" feature on both this Composite
and on the button holding the icon.
DragSource,
getDragListener()protected abstract AbstractSwtDragSourceListener getDragListener()
Returns the AbstractSwtDragSourceListener associated to
this repository item.
AbstractSwtDragSourceListener associated to
this repository item.protected abstract java.lang.Object getTooltip()
Returns the tooltip for this repository item.
protected void initToolTipGenerator()
Initializes the tooltip generator. By default it is set to the label and returns the tooltip text passed to the class constructor.
public void dispose()
protected ImageWidget getIconlabel()
Gives subclasses access to the ImageWidget.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||