com.smartgwt.client.widgets.layout.HStack Java Examples

The following examples show how to use com.smartgwt.client.widgets.layout.HStack. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: LoginWindow.java    From proarc with GNU General Public License v3.0 6 votes vote down vote up
private Canvas createButtons() {
    IButton btnSubmit = new IButton(i18nSgwt.dialog_LoginButtonTitle(), new ClickHandler() {

        @Override
        public void onClick(ClickEvent event) {
            submitCredentials();
        }
    });

    HStack btnLayout = new HStack(5);
    btnLayout.setAutoHeight();
    btnLayout.setLayoutTopMargin(20);
    btnLayout.setLayoutAlign(Alignment.CENTER);
    btnLayout.setMembers(btnSubmit);
    return btnLayout;
}
 
Example #2
Source File: UploadFile.java    From proarc with GNU General Public License v3.0 5 votes vote down vote up
private Canvas createBrowseCanvas() {
    UploadHandler uploadHandler = new UploadHandler();
    uploader = new Uploader() {

        @Override
        protected void onLoad() {
            super.onLoad();
            openFileDialog(uploader);
        }

    };
    uploader.setUploadURL(RestConfig.URL_DIGOBJECT_DISSEMINATION)
            .setButtonImageURL(Page.getSkinImgDir() + "MultiUploadItem/icon_add_files.png")
            .setButtonWidth(16)
            .setButtonHeight(16)
            .setButtonCursor(Cursor.HAND)
            .setButtonAction(ButtonAction.SELECT_FILE)
            .setFileSizeLimit("1 GB")
            .setFilePostName(FIELD_FILE)
            .setFileUploadLimit(0)
            .setFileQueuedHandler(uploadHandler)
            .setFileQueueErrorHandler(uploadHandler)
            .setUploadCompleteHandler(uploadHandler)
            .setUploadErrorHandler(uploadHandler)
            .setUploadProgressHandler(uploadHandler)
            .setUploadSuccessHandler(uploadHandler)
            ;
    HStack hStack = new HStack(4);
    Label label = new Label(i18n.DigitalObjectEditor_MediaEditor_Uploader_Browse_Title() + ": ");
    label.setAutoFit(true);
    label.setWrap(false);
    hStack.addMember(label);
    hStack.addMember(uploader);
    return hStack;
}
 
Example #3
Source File: ProgressTracker.java    From proarc with GNU General Public License v3.0 5 votes vote down vote up
private Canvas createControls() {
    HStack btnLayout = new HStack(5);
    btnLayout.setAutoHeight();
    btnLayout.setMargin(10);
    btnLayout.setLayoutAlign(Alignment.RIGHT);
    btnLayout.setMembers(closeBtn);
    return btnLayout;
}