use of com.google.gwt.user.client.ui.SimplePanel in project che by eclipse.
the class NotificationContainerItem 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().notificationTitleWrapper());
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 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().notificationPopupMessageWrapper());
messageWrapper.ensureDebugId(MESSAGE_WRAPPER_DBG_ID + notification.getId());
return messageWrapper;
}
use of com.google.gwt.user.client.ui.SimplePanel in project che by eclipse.
the class PopupMenu method initPopupMenu.
/**
* Initialize popup menu.
*
* @param actionGroup action group
* @param presentationFactory presentation factory
* @param lockLayer lock layer, uses as root for attaching this popup menu
* @param actionSelectedHandler handler for action selected event
* @param keyBindingAgent agent for key binding
* @param itemIdPrefix id prefix of the item
*/
private void initPopupMenu(ActionGroup actionGroup, PresentationFactory presentationFactory, MenuLockLayer lockLayer, ActionSelectedHandler actionSelectedHandler, KeyBindingAgent keyBindingAgent, String itemIdPrefix) {
this.presentationFactory = presentationFactory;
this.keyBindingAgent = keyBindingAgent;
this.itemIdPrefix = itemIdPrefix;
this.lockLayer = lockLayer;
this.actionSelectedHandler = actionSelectedHandler;
List<Utils.VisibleActionGroup> visibleActionGroupList = Utils.renderActionGroup(actionGroup, presentationFactory, actionManager, managerProvider.get());
list = new ArrayList<>();
for (Utils.VisibleActionGroup groupActions : visibleActionGroupList) {
list.addAll(groupActions.getActionList());
}
popupMenuPanel = new SimplePanel();
disableTextSelection(popupMenuPanel.getElement(), true);
initWidget(popupMenuPanel);
popupMenuPanel.addDomHandler(new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
closeSubPopupTimer.cancel();
PopupMenu.this.setStyleNormal(hoveredTR);
hoveredTR = null;
if (subPopupAnchor != null) {
setStyleHovered(subPopupAnchor);
}
}
}, MouseOutEvent.getType());
popupMenuPanel.setStyleName(POPUP_RESOURCES.popup().popupMenuMain());
hasCheckedItems = hasCheckedItems();
}
use of com.google.gwt.user.client.ui.SimplePanel in project che by eclipse.
the class EditorPropertiesViewImpl method getEditorSectionsContainer.
@Override
public AcceptsOneWidget getEditorSectionsContainer() {
SimplePanel container = new SimplePanel();
sectionsPanel.add(container);
return container;
}
use of com.google.gwt.user.client.ui.SimplePanel in project libgdx by libgdx.
the class GwtApplication method getPreloaderCallback.
public PreloaderCallback getPreloaderCallback() {
final Panel preloaderPanel = new VerticalPanel();
preloaderPanel.setStyleName("gdx-preloader");
final Image logo = new Image(GWT.getModuleBaseURL() + "logo.png");
logo.setStyleName("logo");
preloaderPanel.add(logo);
final Panel meterPanel = new SimplePanel();
meterPanel.setStyleName("gdx-meter");
meterPanel.addStyleName("red");
final InlineHTML meter = new InlineHTML();
final Style meterStyle = meter.getElement().getStyle();
meterStyle.setWidth(0, Unit.PCT);
meterPanel.add(meter);
preloaderPanel.add(meterPanel);
getRootPanel().add(preloaderPanel);
return new PreloaderCallback() {
@Override
public void error(String file) {
System.out.println("error: " + file);
}
@Override
public void update(PreloaderState state) {
meterStyle.setWidth(100f * state.getProgress(), Unit.PCT);
}
};
}
Aggregations