|
||||||||||
| 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.Item
org.eclipse.swt.widgets.ToolItem
net.xoetrope.swt.XToolItem
public class XToolItem
Draws a coolitem
Copyright (c) Xoetrope Ltd., 1998-2003
License: see license.txt $Revision: 2.18 $
| Field Summary | |
|---|---|
protected org.eclipse.swt.widgets.Menu |
menu
|
protected XModel |
model
|
protected XToolBar |
tb
|
| Constructor Summary | |
|---|---|
XToolItem(XToolBar parent,
int style)
Constructs a new toolitem for a toolbar |
|
| Method Summary | |
|---|---|
protected void |
checkSubclass()
Suppress the subclassing exception |
org.eclipse.swt.widgets.Menu |
getMenu()
|
XModel |
getModel()
Get the model |
java.lang.String |
getText(XModel xmodel,
int i)
Get the appropriate text inside the model |
void |
setAction(java.lang.Object action)
Set an Action for the toolitem - does nothing |
int |
setAttribute(java.lang.String attribName,
java.lang.Object attribValue)
Set one or more attributes of the component. |
void |
setModel(XModel xmodel)
Set the XModel which we will be generating the toolitem dropdown from |
void |
update()
Update the toolitem dropdown |
| Methods inherited from class org.eclipse.swt.widgets.ToolItem |
|---|
addSelectionListener, getBounds, getControl, getDisabledImage, getEnabled, getHotImage, getParent, getSelection, getToolTipText, getWidth, isEnabled, removeSelectionListener, setControl, setDisabledImage, setEnabled, setHotImage, setImage, setSelection, setText, setToolTipText, setWidth |
| Methods inherited from class org.eclipse.swt.widgets.Item |
|---|
getImage, getText |
| Methods inherited from class org.eclipse.swt.widgets.Widget |
|---|
addDisposeListener, addListener, checkWidget, dispose, 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 |
|---|
protected org.eclipse.swt.widgets.Menu menu
protected XModel model
protected final XToolBar tb
| Constructor Detail |
|---|
public XToolItem(XToolBar parent,
int style)
parent - parent toolbarstyle - the style| Method Detail |
|---|
protected void checkSubclass()
checkSubclass in class org.eclipse.swt.widgets.ToolItempublic void setAction(java.lang.Object action)
setAction in interface XActionableaction - the action object
public int setAttribute(java.lang.String attribName,
java.lang.Object attribValue)
setAttribute in interface XAttributedComponentattribName - the name of the attributeattribValue - the value of the attribute
public void setModel(XModel xmodel)
setModel in interface XModelHolderxmodel - the XModel of datapublic XModel getModel()
public void update()
update in interface XModelHolderpublic org.eclipse.swt.widgets.Menu getMenu()
public java.lang.String getText(XModel xmodel,
int i)
xmodel - parent modeli - index of the children
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||