use of com.google.gwt.user.client.ui.SimplePanel in project che by eclipse.
the class NotificationPopup method createIconWidget.
/**
* Create icon wrapper that contains an icon.
*
* @return {@link SimplePanel} as icon wrapper
*/
private SimplePanel createIconWidget() {
SimplePanel iconWrapper = new SimplePanel();
iconWrapper.setStyleName(resources.notificationCss().notificationPopupIconWrapper());
iconWrapper.ensureDebugId(ICON_DBG_ID + notification.getId());
return iconWrapper;
}
use of com.google.gwt.user.client.ui.SimplePanel in project che by eclipse.
the class NotificationPopup method createTitleWidget.
/**
* Create title widget that contains notification title.
*
* @return {@link SimplePanel} as title wrapper
*/
private SimplePanel createTitleWidget() {
SimplePanel titleWrapper = new SimplePanel();
Label titleLabel = new Label();
titleWrapper.add(titleLabel);
titleWrapper.setStyleName(resources.notificationCss().notificationPopupTitleWrapper());
titleWrapper.ensureDebugId(TITLE_DBG_ID + notification.getId());
return titleWrapper;
}
use of com.google.gwt.user.client.ui.SimplePanel in project che by eclipse.
the class NotificationPopup method createCloseWidget.
/**
* Create close icon widget that contains an close notification icon.
*
* @return {@link SimplePanel} as close icon wrapper
*/
private SimplePanel createCloseWidget() {
SimplePanel closeWrapper = new SimplePanel();
SVGImage closeImage = new SVGImage(resources.closeIcon());
closeImage.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
delegate.onClose(notification);
}
});
closeWrapper.add(closeImage);
closeWrapper.setStyleName(resources.notificationCss().notificationPopupCloseButtonWrapper());
closeWrapper.ensureDebugId(CLOSE_ICON_DBG_ID + notification.getId());
return closeWrapper;
}
use of com.google.gwt.user.client.ui.SimplePanel in project che by eclipse.
the class NotificationContainerItem method createContentWidget.
/**
* Create message widget that contains notification message.
*
* @return {@link SimplePanel} as message wrapper
*/
private SimplePanel createContentWidget() {
SimplePanel messageWrapper = new SimplePanel();
Label messageLabel = new Label();
messageWrapper.add(messageLabel);
messageWrapper.setStyleName(resources.notificationCss().notificationMessageWrapper());
messageWrapper.ensureDebugId(MESSAGE_WRAPPER_DBG_ID + notification.getId());
return messageWrapper;
}
use of com.google.gwt.user.client.ui.SimplePanel in project gerrit by GerritCodeReview.
the class ExtensionPanel method create.
private List<Context> create(List<String> panelNames) {
List<Context> contexts = new ArrayList<>();
for (Definition def : getOrderedDefs(panelNames)) {
SimplePanel p = new SimplePanel();
add(p);
contexts.add(Context.create(def, p));
}
return contexts;
}
Aggregations