MetaDone
metadone.client.grasyla2.visuallibrary.ChooseMetaObjectPopup< M extends MetaObject > Class Reference
Inheritance diagram for metadone.client.grasyla2.visuallibrary.ChooseMetaObjectPopup< M extends MetaObject >:
Collaboration diagram for metadone.client.grasyla2.visuallibrary.ChooseMetaObjectPopup< M extends MetaObject >:

List of all members.

Classes

class  SelectAction

Public Member Functions

 ChooseMetaObjectPopup (MetaModel mm, Iterable<?extends M > it)
void setAutoSelectFirst (boolean b)
void show (Component invoker, int x, int y)
void onSelect (MapFct<?super M,?> action)

Private Member Functions

void selected (SelectAction action)

Private Attributes

boolean autoSelectFirst = false
MapFct<?super M,?> onSelect

Static Private Attributes

static final long serialVersionUID = 1L

Detailed Description

A metaobject chooser which is a popup.

Author:
kma
Parameters:
<M>The type of the metaobjects

Constructor & Destructor Documentation

metadone.client.grasyla2.visuallibrary.ChooseMetaObjectPopup< M extends MetaObject >.ChooseMetaObjectPopup ( MetaModel  mm,
Iterable<?extends M >  it 
)

Initializes this chooser.

Parameters:
mmThe metamodel
itThe metaobjects (where null is a separator)

Member Function Documentation

void metadone.client.grasyla2.visuallibrary.ChooseMetaObjectPopup< M extends MetaObject >.onSelect ( MapFct<?super M,?>  action)

Sets the action to execute when a metaobject has been selected.

Parameters:
actionThe action or null
void metadone.client.grasyla2.visuallibrary.ChooseMetaObjectPopup< M extends MetaObject >.selected ( SelectAction  action) [private]
void metadone.client.grasyla2.visuallibrary.ChooseMetaObjectPopup< M extends MetaObject >.setAutoSelectFirst ( boolean  b)

Whether to select automatically the first when showing and there is only one choice.

Parameters:
bThe new value
void metadone.client.grasyla2.visuallibrary.ChooseMetaObjectPopup< M extends MetaObject >.show ( Component  invoker,
int  x,
int  y 
)

Member Data Documentation

boolean metadone.client.grasyla2.visuallibrary.ChooseMetaObjectPopup< M extends MetaObject >.autoSelectFirst = false [private]
MapFct<? super M, ?> metadone.client.grasyla2.visuallibrary.ChooseMetaObjectPopup< M extends MetaObject >.onSelect [private]
final long metadone.client.grasyla2.visuallibrary.ChooseMetaObjectPopup< M extends MetaObject >.serialVersionUID = 1L [static, private]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations