@Inject public AddCollectionView() { setWidget(uiBinder.createAndBindUi(this)); hideText.setText(i18n.GL0592()); hideText.getElement().setId("lblHideText"); hideText.getElement().setAttribute("alt", i18n.GL0592()); hideText.getElement().setAttribute("title", i18n.GL0592()); addcollectionText.getElement().setInnerHTML(i18n.GL0690()); addcollectionText.getElement().setId("pnlAddcollectionText"); addcollectionText.getElement().setAttribute("alt", i18n.GL0690()); addcollectionText.getElement().setAttribute("title", i18n.GL0690()); renameText.setText(i18n.GL0593()); renameText.getElement().setId("lblRenameText"); renameText.getElement().setAttribute("alt", i18n.GL0593()); renameText.getElement().setAttribute("title", i18n.GL0593()); addToShelfCollectionButton.setText(i18n.GL0590()); addToShelfCollectionButton.getElement().setId("btnAddToShelfCollectionButton"); addToShelfCollectionButton.getElement().setAttribute("alt", i18n.GL0590()); addToShelfCollectionButton.getElement().setAttribute("title", i18n.GL0590()); collectionAddedSuccessMessageContainer.setVisible(false); getAddToShelfCollectionButton().addClickHandler(new OnAddCollectionClick()); collectionTitleInCoverPage.addKeyUpHandler(new onKeyErrorMsg()); workSpaceLink.setText(i18n.GL0589()); workSpaceLink.getElement().setId("lnkWorkSpaceLink"); workSpaceLink.getElement().setAttribute("alt", i18n.GL0589()); workSpaceLink.getElement().setAttribute("title", i18n.GL0589()); addToCollectionWidgetContainer.getElement().setId("pnlAddToCollectionWidgetContainer"); collectionAddImageContainer.getElement().setId("pnlCollectionAddImageContainer"); addResourceInsteadLabelContainerInCollectionImage .getElement() .setId("pnlAddResourceInsteadLabelContainerInCollectionImage"); collectionAddedSuccessMessageContainer .getElement() .setId("pnlCollectionAddedSuccessMessageContainer"); successMessageLabelText.getElement().setId("lblSuccessMessageLabelText"); addCollectionInsteadLabelContainer.getElement().setId("pnlAddCollectionInsteadLabelContainer"); collectionTitleInCoverPage.getElement().setId("txtCollectionTitleInCoverPage"); StringUtil.setAttributes(collectionTitleInCoverPage, true); addingLabel.getElement().setId("lblAddingLabel"); addErrorLabel.getElement().setId("errlblAddErrorLabel"); hideButton.getElement().setId("epnlHideButton"); }
public void showCollectionAddImageWidget() { getAddToShelfCollectionButton().setText(i18n.GL0590()); successMessageLabelText.setText(i18n.GL0547()); successMessageLabelText.getElement().setAttribute("alt", i18n.GL0547()); successMessageLabelText.getElement().setAttribute("title", i18n.GL0547()); addResourceInsteadLabelContainerInCollectionImage.clear(); addResourceInsteadLabelContainerInCollectionImage.add(addResourceInsteadLabel); addResourceInsteadLabel.getElement().getStyle().clearMarginLeft(); addResourceInsteadLabel.getElement().getStyle().clearMarginTop(); collectionAddImageContainer.setVisible(true); collectionAddedSuccessMessageContainer.setVisible(false); }