|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.swt.widgets.Widget org.eclipse.swt.widgets.Control org.eclipse.swt.widgets.Button com.ibm.commons.swt.data.editors.support.DialogButton
public class DialogButton
A custom implementation of the standard SWT button control. The button either calls for a dialog or a script dialog to be invoked.
Field Summary |
---|
Fields inherited from class org.eclipse.swt.widgets.Control |
---|
handle |
Constructor Summary | |
---|---|
DialogButton(CompositeEditor parent,
java.lang.String text,
boolean script,
java.lang.String id)
Constructs a new instance of the class given the parent Composite, the text to be set on the button, a boolean to determine whether this button is to launch a custom dialog or a script dialog, and an id property that can be used to programatically identify the control. |
Method Summary | |
---|---|
protected void |
checkSubclass()
|
java.lang.String |
getId()
Returns the id that can be used to programmatically identify this control. |
void |
handleEvent(org.eclipse.swt.widgets.Event e)
|
protected void |
onClick()
|
void |
setId(java.lang.String id)
Sets an id that can be used to programmatically identify this control. |
Methods inherited from class org.eclipse.swt.widgets.Button |
---|
addSelectionListener, computeSize, getAlignment, getGrayed, getImage, getSelection, getText, removeSelectionListener, setAlignment, setGrayed, setImage, setSelection, setText |
Methods inherited from class org.eclipse.swt.widgets.Control |
---|
addControlListener, addDragDetectListener, addFocusListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getRegion, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTraverseListener, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFocus, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setRegion, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update |
Methods inherited from class org.eclipse.swt.widgets.Widget |
---|
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DialogButton(CompositeEditor parent, java.lang.String text, boolean script, java.lang.String id)
parent
- a Composite control which will be the parent of the new instance (CANNOT be null).text
- the text that is to appear on the buttonboolean
- determines whether to use a custom dialog or the script dialogid
- a String which can be used to programatically identify the controlMethod Detail |
---|
protected void checkSubclass()
checkSubclass
in class org.eclipse.swt.widgets.Widget
public void handleEvent(org.eclipse.swt.widgets.Event e)
handleEvent
in interface org.eclipse.swt.widgets.Listener
protected void onClick()
public java.lang.String getId()
public void setId(java.lang.String id)
id
- the id to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |