EGF Engine
Release 0.1.0

org.eclipse.egf.common.ui.viewers
Class AbstractViewerWithButtons.ButtonData

java.lang.Object
  extended by org.eclipse.egf.common.ui.viewers.AbstractViewerWithButtons.ButtonData
Enclosing class:
AbstractViewerWithButtons

public class AbstractViewerWithButtons.ButtonData
extends Object

Button data.
Facade to a button creation for this viewer.
Label and style are mandatory to create a new widget.
The given user data is set to the created button widget, if not null.


Constructor Summary
AbstractViewerWithButtons.ButtonData(String label_p, int style_p, Object data_p, org.eclipse.egf.common.ui.toolkit.widgets.handler.SelectionChangedHandler selectionChangedHandler_p)
          Button data constructor.
 
Method Summary
protected  Object getData()
          Get user data.
protected  String getLabel()
          Get button label.
protected  org.eclipse.egf.common.ui.toolkit.widgets.handler.SelectionChangedHandler getSelectionChangedHandler()
          Get the selection changed handler.
protected  int getStyle()
          Get button style.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractViewerWithButtons.ButtonData

public AbstractViewerWithButtons.ButtonData(String label_p,
                                            int style_p,
                                            Object data_p,
                                            org.eclipse.egf.common.ui.toolkit.widgets.handler.SelectionChangedHandler selectionChangedHandler_p)
Button data constructor.

Parameters:
label_p - The label of the future button.
style_p - The style of the future button.
data_p - The user data of the future button, can be null.
selectionChangedHandler_p - The selection changed handler called when selection changes in the AbstractViewerWithButtons.
Method Detail

getLabel

protected String getLabel()
Get button label.

Returns:

getStyle

protected int getStyle()
Get button style.

Returns:

getData

protected Object getData()
Get user data.

Returns:

getSelectionChangedHandler

protected org.eclipse.egf.common.ui.toolkit.widgets.handler.SelectionChangedHandler getSelectionChangedHandler()
Get the selection changed handler.

Returns:

EGF Engine
Release 0.1.0

Copyright (c) Thales Corporate Services S.A.S, 2009.

This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.