@Source("gr/ebs/gss/resources/groupevent.png")\r
ImageResource groupImage();\r
\r
+ @Override\r
@Source("gr/ebs/gss/resources/editdelete.png")\r
ImageResource delete();\r
\r
}\r
- private boolean ctrlKeyPressed = false;\r
-\r
- private boolean leftClicked = false;\r
-\r
- private boolean rightClicked = false;\r
\r
/**\r
* cached latest group selection (for selecting and expanding on refresh)\r
private TreeItem previous;\r
\r
/**\r
- * A cached copy of the currently changed group widget.\r
- */\r
- private TreeItem changed;\r
-\r
- /**\r
* The widget's image bundle.\r
*/\r
private final Images images;\r
\r
private GroupContextMenu menu;\r
\r
- private boolean showMenu=false;\r
/**\r
* Constructs a new groups widget with a bundle of images.\r
*\r
menu.hide();\r
menu = new GroupContextMenu(images);\r
menu.setPopupPosition(x, y);\r
- showMenu=false;\r
menu.show();\r
}\r
\r
}\r
\r
/**\r
- * Modify the changed.\r
- *\r
- * @param newChanged the changed to set\r
- */\r
- private void setChanged(final TreeItem newChanged) {\r
- changed = newChanged;\r
- }\r
-\r
- /**\r
* Retrieve the previous.\r
*\r
* @return the previous\r
@Override\r
public void onOpen(OpenEvent event) {\r
final TreeItem item = (TreeItem) event.getTarget();\r
- setChanged(item);\r
updateUsers(item);\r
-\r
}\r
}\r