Class PGroupToolItem

java.lang.Object
org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Item
org.eclipse.nebula.widgets.pgroup.PGroupToolItem

public class PGroupToolItem
extends org.eclipse.swt.widgets.Item
Instances of this class represent a selectable user interface object that represents a button in a PGroup.
  • Constructor Summary

    Constructors 
    Constructor Description
    PGroupToolItem​(PGroup parent, int style)  
  • Method Summary

    Modifier and Type Method Description
    void addSelectionListener​(org.eclipse.swt.events.SelectionListener listener)  
    org.eclipse.swt.graphics.Rectangle getBounds()  
    boolean getSelection()
    Returns true if the receiver is selected, and false otherwise.
    java.lang.String getToolTipText()  
    (package private) void onMouseDown​(org.eclipse.swt.widgets.Event e)  
    void removeSelectionListener​(org.eclipse.swt.events.SelectionListener listener)  
    void setBounds​(org.eclipse.swt.graphics.Rectangle bounds)  
    (package private) void setDropDownArea​(org.eclipse.swt.graphics.Rectangle dropdownArea)  
    void setSelection​(boolean selection)
    Sets the selection state of the receiver.
    void setToolTipText​(java.lang.String tooltip)  

    Methods inherited from class org.eclipse.swt.widgets.Item

    checkSubclass, getImage, getText, setImage, setText

    Methods inherited from class org.eclipse.swt.widgets.Widget

    addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, 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 Details

  • Method Details

    • setBounds

      public void setBounds​(org.eclipse.swt.graphics.Rectangle bounds)
    • getBounds

      public org.eclipse.swt.graphics.Rectangle getBounds()
    • setSelection

      public void setSelection​(boolean selection)
      Sets the selection state of the receiver.
      Parameters:
      selection - the new selection state
    • getSelection

      public boolean getSelection()
      Returns true if the receiver is selected, and false otherwise.
      Returns:
      the selection state
    • addSelectionListener

      public void addSelectionListener​(org.eclipse.swt.events.SelectionListener listener)
    • removeSelectionListener

      public void removeSelectionListener​(org.eclipse.swt.events.SelectionListener listener)
    • setDropDownArea

      void setDropDownArea​(org.eclipse.swt.graphics.Rectangle dropdownArea)
    • onMouseDown

      void onMouseDown​(org.eclipse.swt.widgets.Event e)
    • setToolTipText

      public void setToolTipText​(java.lang.String tooltip)
    • getToolTipText

      public java.lang.String getToolTipText()