List of usage examples for com.google.gwt.user.client.ui Label addMouseOutHandler
public HandlerRegistration addMouseOutHandler(MouseOutHandler handler)
From source file:org.ednovo.gooru.client.mvp.assessments.play.collection.info.AssessmentsResourceInfoView.java
License:Open Source License
private void setGrades(List<String> gradesdetails) { gradesText.clear();/*from ww w.j a v a2 s. co m*/ if (gradesdetails != null && gradesdetails.size() > 0) { if (gradesdetails.size() == 1) { final Label gradesLabel = new Label(" " + gradesdetails.get(0)); gradesLabel.getElement().setAttribute("style", "float: left;"); gradesText.add(gradesLabel); isGrades = true; } else if (gradesdetails.size() == 2) { final Label gradesLabel = new Label(" " + gradesdetails.get(0) + "," + gradesdetails.get(1)); gradesLabel.getElement().setAttribute("style", "float: left;"); gradesText.add(gradesLabel); isGrades = true; } else if (gradesdetails.size() > 2) { final Label gradesLabelCountLabel = new Label("+" + (gradesdetails.size() - 2)); gradesLabelCountLabel.setStyleName(PlayerBundle.INSTANCE.getPlayerStyle().resourceCourseNum()); final Label gradesLabel = new Label(" " + gradesdetails.get(0) + "," + gradesdetails.get(1)); gradesLabel.getElement().setAttribute("style", "float:left;"); gradesText.add(gradesLabel); gradesText.add(gradesLabelCountLabel); Widget gradeswidget = getCommonwidget(gradesdetails); gradesLabelCountLabel.addMouseOverHandler(new MouseOverShowToolTip(gradeswidget)); gradesLabelCountLabel.addMouseOutHandler(new MouseOutHideToolTip()); isGrades = true; } } else { } }
From source file:org.ednovo.gooru.client.mvp.assessments.play.collection.info.AssessmentsResourceInfoView.java
License:Open Source License
private void setPublisherDetails(List<String> publisher) { lblPublisher.clear();//from ww w . j a v a2s . c o m if (publisher != null && publisher.size() > 0) { if (publisher.size() == 1) { final Label publisherLabel = new Label(" " + publisher.get(0)); publisherLabel.getElement().setAttribute("style", "float: left;"); lblPublisher.add(publisherLabel); isPublisher = true; } else if (publisher.size() == 2) { final Label publisherLabel = new Label(" " + publisher.get(0) + "," + publisher.get(1)); publisherLabel.getElement().setAttribute("style", "float: left;"); lblPublisher.add(publisherLabel); isPublisher = true; } else if (publisher.size() > 2) { final Label publisherLabelCountLabel = new Label("+" + (publisher.size() - 2)); publisherLabelCountLabel.setStyleName(PlayerBundle.INSTANCE.getPlayerStyle().resourceCourseNum()); final Label publisherLabel = new Label(" " + publisher.get(0) + "," + publisher.get(1)); publisherLabel.getElement().setAttribute("style", "float:left;"); lblPublisher.add(publisherLabel); lblPublisher.add(publisherLabelCountLabel); Widget publisherwidget = getCommonwidget(publisher); publisherLabelCountLabel.addMouseOverHandler(new MouseOverShowToolTip(publisherwidget)); publisherLabelCountLabel.addMouseOutHandler(new MouseOutHideToolTip()); isPublisher = true; } } else { } }
From source file:org.ednovo.gooru.client.mvp.assessments.play.collection.info.AssessmentsResourceInfoView.java
License:Open Source License
private void setAggregatorvalues(List<String> aggregatorlist) { aggregatorVal.clear();//from w w w .ja v a 2 s . c o m if (aggregatorlist != null && aggregatorlist.size() > 0) { if (aggregatorlist.size() == 1) { final Label aggregatorLabel = new Label(" " + aggregatorlist.get(0)); aggregatorLabel.getElement().setAttribute("style", "float: left;"); aggregatorVal.add(aggregatorLabel); isAggregator = true; } else if (aggregatorlist.size() == 2) { final Label aggregatorLabel = new Label(" " + aggregatorlist.get(0) + "," + aggregatorlist.get(1)); aggregatorLabel.getElement().setAttribute("style", "float: left;"); aggregatorVal.add(aggregatorLabel); isAggregator = true; } else if (aggregatorlist.size() > 2) { final Label aggregatorCountLabel = new Label("+" + (aggregatorlist.size() - 2)); aggregatorCountLabel.setStyleName(PlayerBundle.INSTANCE.getPlayerStyle().resourceCourseNum()); final Label aggregatorLabel = new Label(" " + aggregatorlist.get(0) + "," + aggregatorlist.get(1)); aggregatorLabel.getElement().setAttribute("style", "float:left;"); aggregatorVal.add(aggregatorLabel); aggregatorVal.add(aggregatorCountLabel); Widget aggregatorwidget = getCommonwidget(aggregatorlist); aggregatorCountLabel.addMouseOverHandler(new MouseOverShowToolTip(aggregatorwidget)); aggregatorCountLabel.addMouseOutHandler(new MouseOutHideToolTip()); isAggregator = true; } } else { } }
From source file:org.ednovo.gooru.client.mvp.assessments.play.collection.info.AssessmentsResourceInfoView.java
License:Open Source License
private void setaddsDetails(List<String> addsdetails) { addsInfo.clear();/* w ww . j av a 2 s . co m*/ if (addsdetails != null && addsdetails.size() > 0) { addsTitle.setText(i18n.GL1878().trim() + i18n.GL_SPL_SEMICOLON() + " "); addsTitle.getElement().setAttribute("alt", i18n.GL1878()); addsTitle.getElement().setAttribute("title", i18n.GL1878()); if (addsdetails.size() == 1) { final Label addsLabel = new Label(" " + addsdetails.get(0)); addsLabel.getElement().setAttribute("style", "float: left;"); addsInfo.add(addsLabel); addsPanel.setVisible(true); } else if (addsdetails.size() == 2) { final Label addsLabel = new Label(" " + addsdetails.get(0) + "," + addsdetails.get(1)); addsLabel.getElement().setAttribute("style", "float: left;"); addsInfo.add(addsLabel); addsPanel.setVisible(true); } else if (addsdetails.size() > 2) { final Label addscountLabel = new Label("+" + (addsdetails.size() - 2)); addscountLabel.setStyleName(PlayerBundle.INSTANCE.getPlayerStyle().resourceCourseNum()); final Label addsLabelNew = new Label(" " + addsdetails.get(0) + "," + addsdetails.get(1)); addsLabelNew.getElement().setAttribute("style", "float:left;"); addsInfo.add(addsLabelNew); addsInfo.add(addscountLabel); Widget addswidget = getCommonwidget(addsdetails); addscountLabel.addMouseOverHandler(new MouseOverShowToolTip(addswidget)); addscountLabel.addMouseOutHandler(new MouseOutHideToolTip()); addsPanel.setVisible(true); } } else { addsPanel.setVisible(false); } }
From source file:org.ednovo.gooru.client.mvp.assessments.play.collection.info.AssessmentsResourceInfoView.java
License:Open Source License
private void setmonentoflearningDetails(List<String> momentoflearningdetails) { momentsoflearningType.clear();//from www . ja v a 2 s . com if (momentoflearningdetails != null && momentoflearningdetails.size() > 0) { momentsoflearningLbl.setText(i18n.GL1678().trim() + i18n.GL_SPL_SEMICOLON() + " "); momentsoflearningLbl.getElement().setAttribute("alt", i18n.GL1678()); momentsoflearningLbl.getElement().setAttribute("title", i18n.GL1678()); if (momentoflearningdetails.size() == 1) { final Label momentsofLabel = new Label(" " + momentoflearningdetails.get(0)); momentsofLabel.getElement().setAttribute("style", "float: left;"); momentsoflearningType.add(momentsofLabel); momentsoflearningPanel.setVisible(true); } else if (momentoflearningdetails.size() == 2) { final Label momentsofLabel = new Label( " " + momentoflearningdetails.get(0) + "," + momentoflearningdetails.get(1)); momentsofLabel.getElement().setAttribute("style", "float: left;"); momentsoflearningType.add(momentsofLabel); momentsoflearningPanel.setVisible(true); } else if (momentoflearningdetails.size() > 2) { final Label momentsofLabel = new Label("+" + (momentoflearningdetails.size() - 2)); momentsofLabel.setStyleName(PlayerBundle.INSTANCE.getPlayerStyle().resourceCourseNum()); momentsoflearningType.add(momentsofLabel); Widget momentswidget = getCommonwidget(momentoflearningdetails); momentsofLabel.addMouseOverHandler(new MouseOverShowToolTip(momentswidget)); momentsofLabel.addMouseOutHandler(new MouseOutHideToolTip()); momentsoflearningPanel.setVisible(true); } } else { momentsoflearningPanel.setVisible(false); } }
From source file:org.ednovo.gooru.client.mvp.assessments.play.collection.info.AssessmentsResourceInfoView.java
License:Open Source License
private void setDepthofknowledgeDetails(List<String> depthOfKnowledgedetails) { dKnowledgeType.clear();//w w w. jav a 2s.c o m if (depthOfKnowledgedetails != null && depthOfKnowledgedetails.size() > 0) { dKnowledgeLbl.setText(i18n.GL1693().trim() + i18n.GL_SPL_SEMICOLON() + " "); dKnowledgeLbl.getElement().setAttribute("alt", i18n.GL1693()); dKnowledgeLbl.getElement().setAttribute("title", i18n.GL1693()); if (depthOfKnowledgedetails.size() == 1) { final Label deapthknowledgeLabel = new Label(" " + depthOfKnowledgedetails.get(0)); deapthknowledgeLabel.getElement().setAttribute("style", "float: left;"); dKnowledgeType.add(deapthknowledgeLabel); dKnowledgePanel.setVisible(true); } else if (depthOfKnowledgedetails.size() == 2) { final Label deapthknowledgeLabel = new Label( " " + depthOfKnowledgedetails.get(0) + "," + depthOfKnowledgedetails.get(1)); deapthknowledgeLabel.getElement().setAttribute("style", "float: left;"); dKnowledgeType.add(deapthknowledgeLabel); dKnowledgePanel.setVisible(true); } else if (depthOfKnowledgedetails.size() > 2) { final Label deapthknowledgeLabel = new Label("+" + (depthOfKnowledgedetails.size() - 2)); deapthknowledgeLabel.setStyleName(PlayerBundle.INSTANCE.getPlayerStyle().resourceCourseNum()); final Label deapthknowledgeLabelNew = new Label( " " + depthOfKnowledgedetails.get(0) + "," + depthOfKnowledgedetails.get(1)); deapthknowledgeLabelNew.getElement().setAttribute("style", "float:left;"); dKnowledgeType.add(deapthknowledgeLabelNew); dKnowledgeType.add(deapthknowledgeLabel); Widget depthofwidget = getCommonwidget(depthOfKnowledgedetails); deapthknowledgeLabel.addMouseOverHandler(new MouseOverShowToolTip(depthofwidget)); deapthknowledgeLabel.addMouseOutHandler(new MouseOutHideToolTip()); dKnowledgePanel.setVisible(true); } } else { dKnowledgePanel.setVisible(false); } }
From source file:org.ednovo.gooru.client.mvp.assessments.play.collection.info.AssessmentsResourceInfoView.java
License:Open Source License
private void seteducationaluseDetails(List<String> eduUsedetails) { eduUseType.clear();/*from w ww.j a v a 2s .co m*/ if (eduUsedetails != null) { educationallLbl.setText(i18n.GL1720()); educationallLbl.getElement().setAttribute("alt", i18n.GL1720()); educationallLbl.getElement().setAttribute("title", i18n.GL1720()); if (eduUsedetails.size() > 0) { final Label eduUseLabel = new Label(" " + eduUsedetails.get(0)); eduUseLabel.getElement().setAttribute("style", "float: left;"); eduUseType.add(eduUseLabel); eduUsePanel.setVisible(true); educationallLbl.setText(i18n.GL1720()); educationallLbl.getElement().setAttribute("alt", i18n.GL1720()); educationallLbl.getElement().setAttribute("title", i18n.GL1720()); eduUseLbl.setText(i18n.GL1664().trim() + i18n.GL_SPL_SEMICOLON() + " "); eduUseLbl.getElement().setAttribute("alt", i18n.GL1664()); eduUseLbl.getElement().setAttribute("title", i18n.GL1664()); educationallLbl.setVisible(true); } else if (eduUsedetails.size() > 2) { final Label eduUseLabel = new Label("+" + (eduUsedetails.size() - 2)); eduUseLabel.setStyleName(PlayerBundle.INSTANCE.getPlayerStyle().resourceCourseNum()); eduUseType.add(eduUseLabel); Widget eduusewidget = getCommonwidget(eduUsedetails); eduUseLabel.addMouseOverHandler(new MouseOverShowToolTip(eduusewidget)); eduUseLabel.addMouseOutHandler(new MouseOutHideToolTip()); eduUsePanel.setVisible(true); educationallLbl.setText(i18n.GL1720()); educationallLbl.getElement().setAttribute("alt", i18n.GL1720()); educationallLbl.getElement().setAttribute("title", i18n.GL1720()); eduUseLbl.setText(i18n.GL1664().trim() + i18n.GL_SPL_SEMICOLON() + " "); eduUseLbl.getElement().setAttribute("alt", i18n.GL1664()); eduUseLbl.getElement().setAttribute("title", i18n.GL1664()); educationallLbl.setVisible(true); } } else { eduUsePanel.setVisible(false); } }
From source file:org.ednovo.gooru.client.mvp.assessments.play.collection.info.AssessmentsResourceInfoView.java
License:Open Source License
private void setmediafeaturesDetails(List<String> mediaFeatures) { mediaFeatureType.clear();/* w w w .jav a 2 s .c o m*/ if (mediaFeatures != null && mediaFeatures.size() > 0) { mediaFeatureLbl.setText(i18n.GL1706().trim() + i18n.GL_SPL_SEMICOLON() + " "); mediaFeatureLbl.getElement().setAttribute("alt", i18n.GL1706()); mediaFeatureLbl.getElement().setAttribute("title", i18n.GL1706()); if (mediaFeatures.size() == 1) { final Label mediafeatureLabel = new Label(" " + mediaFeatures.get(0)); mediafeatureLabel.getElement().setAttribute("style", "float: left;"); mediaFeatureType.add(mediafeatureLabel); mediaFeaturePanel.setVisible(true); } else if (mediaFeatures.size() == 2) { final Label mediafeatureLabel = new Label(" " + mediaFeatures.get(0) + "," + mediaFeatures.get(1)); mediafeatureLabel.getElement().setAttribute("style", "float: left;"); mediaFeatureType.add(mediafeatureLabel); mediaFeaturePanel.setVisible(true); } else if (mediaFeatures.size() > 2) { final Label mediafetureCountLabel = new Label("+" + (mediaFeatures.size() - 2)); mediafetureCountLabel.setStyleName(PlayerBundle.INSTANCE.getPlayerStyle().resourceCourseNum()); final Label mediafeatureLabelNew = new Label( " " + mediaFeatures.get(0) + "," + mediaFeatures.get(1)); mediafeatureLabelNew.getElement().setAttribute("style", "float:left;"); mediaFeatureType.add(mediafeatureLabelNew); mediaFeatureType.add(mediafetureCountLabel); Widget mfwidget = getCommonwidget(mediaFeatures); mediafetureCountLabel.addMouseOverHandler(new MouseOverShowToolTip(mfwidget)); mediafetureCountLabel.addMouseOutHandler(new MouseOutHideToolTip()); mediaFeaturePanel.setVisible(true); } } else { mediaFeaturePanel.setVisible(false); } }
From source file:org.ednovo.gooru.client.mvp.assessments.play.collection.info.AssessmentsResourceInfoView.java
License:Open Source License
private void setacessmodeDetails(List<String> acessmode) { accessModeType.clear();/*from w w w . java 2s . c o m*/ if (acessmode != null && acessmode.size() > 0) { accessModelLbl.setText(i18n.GL1707().trim() + i18n.GL_SPL_SEMICOLON() + " "); accessModelLbl.getElement().setAttribute("alt", i18n.GL1707()); accessModelLbl.getElement().setAttribute("title", i18n.GL1707()); if (acessmode.size() == 1) { final Label accessmodeLabel = new Label(" " + acessmode.get(0)); accessmodeLabel.getElement().setAttribute("style", "float: left;"); accessModeType.add(accessmodeLabel); accessModePanel.setVisible(true); } else if (acessmode.size() == 2) { final Label accessmodeLabel = new Label(" " + acessmode.get(0) + "," + acessmode.get(1)); accessmodeLabel.getElement().setAttribute("style", "float: left;"); accessModeType.add(accessmodeLabel); accessModePanel.setVisible(true); } else if (acessmode.size() > 2) { final Label acessmodeCountLabel = new Label("+" + (acessmode.size() - 2)); acessmodeCountLabel.setStyleName(PlayerBundle.INSTANCE.getPlayerStyle().resourceCourseNum()); final Label accessmodeLabelNew = new Label(" " + acessmode.get(0) + "," + acessmode.get(1)); accessmodeLabelNew.getElement().setAttribute("style", "float:left;"); accessModeType.add(accessmodeLabelNew); accessModeType.add(acessmodeCountLabel); Widget accesswidget = getCommonwidget(acessmode); acessmodeCountLabel.addMouseOverHandler(new MouseOverShowToolTip(accesswidget)); acessmodeCountLabel.addMouseOutHandler(new MouseOutHideToolTip()); accessModePanel.setVisible(true); } } else { accessModePanel.setVisible(false); } }
From source file:org.ednovo.gooru.client.mvp.assessments.play.collection.info.AssessmentsResourceInfoView.java
License:Open Source License
private void showreadingLevelDetails(List<String> readinglevel) { readingLevelType.clear();// w w w . j av a2s .c o m if (readinglevel != null && readinglevel.size() > 0) { if (readinglevel.size() == 1) { readingLevelLbl.setText(i18n.GL1694().trim() + i18n.GL_SPL_SEMICOLON() + " "); readingLevelLbl.getElement().setAttribute("alt", i18n.GL1694()); readingLevelLbl.getElement().setAttribute("title", i18n.GL1694()); final Label readingLabel = new Label(" " + readinglevel.get(0)); readingLabel.getElement().setAttribute("style", "float: left;"); readingLevelType.add(readingLabel); readingLevelPanel.setVisible(true); } else if (readinglevel.size() == 2) { readingLevelLbl.setText(i18n.GL1694().trim() + i18n.GL_SPL_SEMICOLON() + " "); readingLevelLbl.getElement().setAttribute("alt", i18n.GL1694()); readingLevelLbl.getElement().setAttribute("title", i18n.GL1694()); final Label readingLabel = new Label(" " + readinglevel.get(0) + "," + readinglevel.get(1)); readingLabel.getElement().setAttribute("style", "float: left;"); readingLevelType.add(readingLabel); readingLevelPanel.setVisible(true); } else if (readinglevel.size() > 2) { readingLevelLbl.setText(i18n.GL1694().trim() + i18n.GL_SPL_SEMICOLON() + " "); readingLevelLbl.getElement().setAttribute("alt", i18n.GL1694()); readingLevelLbl.getElement().setAttribute("title", i18n.GL1694()); final Label readingCountLabel = new Label("+" + (readinglevel.size() - 2)); readingCountLabel.setStyleName(PlayerBundle.INSTANCE.getPlayerStyle().resourceCourseNum()); final Label readingLabelNew = new Label(" " + readinglevel.get(0) + "," + readinglevel.get(1)); readingLabelNew.getElement().setAttribute("style", "float:left;"); readingLevelType.add(readingLabelNew); readingLevelType.add(readingCountLabel); Widget readingwidget = getCommonwidget(readinglevel); readingCountLabel.addMouseOverHandler(new MouseOverShowToolTip(readingwidget)); readingCountLabel.addMouseOutHandler(new MouseOutHideToolTip()); readingLevelPanel.setVisible(true); } } else { readingLevelPanel.setVisible(false); } }