Search in sources :

Example 1 with CenterLayout

use of com.extjs.gxt.ui.client.widget.layout.CenterLayout in project activityinfo by bedatadriven.

the class DataEntryPage method createNewInterfaceLink.

private Component createNewInterfaceLink() {
    betaLinkPanel = new ContentPanel();
    betaLinkPanel.setHeaderVisible(false);
    betaLinkPanel.setLayout(new CenterLayout());
    Anchor betaLink = new Anchor(I18N.CONSTANTS.tryNewDataEntryInterface());
    betaLink.addClickHandler(clickEvent -> {
        if (!clickEvent.isControlKeyDown()) {
            navigateToNewNewInterface();
        } else {
            navigateToNewInterface();
        }
    });
    betaLinkPanel.add(betaLink);
    return betaLinkPanel;
}
Also used : Anchor(com.google.gwt.user.client.ui.Anchor) CenterLayout(com.extjs.gxt.ui.client.widget.layout.CenterLayout)

Aggregations

CenterLayout (com.extjs.gxt.ui.client.widget.layout.CenterLayout)1 Anchor (com.google.gwt.user.client.ui.Anchor)1