/** * Instantiates a new loading chart animation. * * @param chartTexts the chart texts * @param chartResources the chart resources */ @Inject public QueryActiveAnimation(ChartTexts chartTexts, ChartResources chartResources) { mainPanel = new SimplePanel(); loadingImage = new Image(chartResources.loaderLoadingImage()); loadingImage.setAltText(chartTexts.loadingChart()); loadingImage.setTitle(chartTexts.loadingChart()); doneImage = new Image(chartResources.loaderDoneImage()); doneImage.setAltText(chartTexts.loadingChartDone()); doneImage.setTitle(chartTexts.loadingChartDone()); initWidget(mainPanel); setWidth("20px"); setHeight("20px"); setStylePrimaryName("daxplore-QueryActiveAnimation"); setLoading(false); }
private Image createRunIcon() { Image icon = new Image(ThemeResources.INSTANCE.runChunk()); icon.addStyleName(ThemeStyles.INSTANCE.highlightIcon()); icon.setTitle(commands_.executeCurrentChunk().getTooltip()); bindNativeClickToExecuteChunk(this, icon.getElement()); return icon; }
/** Wraps a RuleModellerWidget with an icon to delete the pattern */ private Widget wrapLHSWidget(final CompositeFactPattern model, int i, RuleModellerWidget w) { DirtyableHorizontalPane horiz = new DirtyableHorizontalPane(); final Image remove = GuidedRuleEditorImages508.INSTANCE.DeleteItemSmall(); remove.setTitle( Constants.INSTANCE.RemoveThisENTIREConditionAndAllTheFieldConstraintsThatBelongToIt()); final int idx = i; remove.addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { if (Window.confirm(Constants.INSTANCE.RemoveThisEntireConditionQ())) { if (pattern.removeFactPattern(idx)) { getModeller().refreshWidget(); } } } }); horiz.setWidth("100%"); w.setWidth("100%"); horiz.add(w); if (!(getModeller().lockLHS() || w.isReadOnly())) { horiz.add(remove); } return horiz; }
@Override protected void onAttach() { super.onAttach(); Image img = new Image( getBaseImageUrl() + "?merchant_id=" + getMerchantId() + "&w=" + getWidth() + "&h=" + getHeight() + "&style=" + getStyle() + "&variant=" + getVariant() + "&loc=" + getLoc()); img.setTitle("Fast checkout through Google"); PushButton pb = new PushButton(img); pb.addClickHandler(this); vpanel.clear(); vpanel.add(pb); }
private Widget getSetterLabel() { HorizontalPanel horiz = new HorizontalPanel(); if (model.state == ActionCallMethod.TYPE_UNDEFINED) { Image edit = DroolsGuvnorImages.INSTANCE.AddFieldToFact(); edit.setAltText(Constants.INSTANCE.AddAnotherFieldToThisSoYouCanSetItsValue()); edit.setTitle(Constants.INSTANCE.AddAnotherFieldToThisSoYouCanSetItsValue()); edit.addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { Widget w = (Widget) event.getSource(); showAddFieldPopup(w); } }); horiz.add( new SmallLabel( HumanReadable.getActionDisplayName("call") + " [" + model.variable + "]")); // NON-NLS if (!this.readOnly) { horiz.add(edit); } } else { horiz.add( new SmallLabel( HumanReadable.getActionDisplayName("call") + " [" + model.variable + "." + model.methodName + "]")); // NON-NLS } return horiz; }
public void createSocialBar(HorizontalPanel socialBar, final MAnnotation annotation) { try { socialBar.clear(); if (((BooleanPreference) _domeo .getPreferences() .getPreferenceItem(Domeo.class.getName(), Domeo.PREF_ALLOW_COMMENTING)) .getValue()) { Resources resource = Domeo.resources; Image commentIcon = new Image(resource.littleCommentIcon()); commentIcon.setTitle("Comment on Item"); commentIcon.setStyleName(ATileComponent.tileResources.css().button()); commentIcon.addClickHandler( ActionCommentAnnotation.getClickHandler(_domeo, this, annotation)); commentIcon.addClickHandler( new ClickHandler() { @Override public void onClick(ClickEvent event) { _curationPopup.hide(); } }); socialBar.add(commentIcon); socialBar.add(new Label("(10)")); Image usersIcon = new Image(resource.usersIcon()); usersIcon.setTitle("Involved users"); usersIcon.setStyleName(ATileComponent.tileResources.css().button()); usersIcon.addClickHandler( ActionCommentAnnotation.getClickHandler(_domeo, this, annotation)); usersIcon.addClickHandler( new ClickHandler() { @Override public void onClick(ClickEvent event) { _curationPopup.hide(); } }); socialBar.add(usersIcon); socialBar.setCellWidth(usersIcon, "24px"); socialBar.setCellHorizontalAlignment(usersIcon, HasHorizontalAlignment.ALIGN_RIGHT); socialBar.add(new Label("(2)")); } } catch (Exception e) { _domeo.getLogger().exception(this, "create social bar" + e.getMessage()); } }
@Override protected void onUpdateHeader(BlockHeaderWidget header) { Requirement requirement = getObject(); header.setDragHandle(requirement.getReference()); Image statusImage = null; if (requirement.isRejected()) { statusImage = Img.bundle.reqRejected().createImage(); statusImage.setTitle("Rejected."); } else if (requirement.isClosed()) { statusImage = Img.bundle.reqClosed().createImage(); statusImage.setTitle("Accepted."); } else if (requirement.isTasksClosed()) { statusImage = Img.bundle.reqTasksClosed().createImage(); statusImage.setTitle("All tasks done."); } statusIcon.setWidget(statusImage); }
public FactFieldEditor( final FieldMetaModel field, final List<FieldMetaModel> fields, final ModelNameHelper modelNameHelper) { this.field = field; this.fields = fields; this.modelNameHelper = modelNameHelper; initWidget(uiBinder.createAndBindUi(this)); fieldName.setStyleName("guvnor-bold-label"); setTypeText(field.type); fieldName.setText(field.name); editFieldIcon.setTitle(constants.Rename()); deleteFieldIcon.setTitle(constants.Delete()); }
private void doLayout() { layout.clear(); for (int i = 0; i < model.getFieldValues().length; i++) { ActionFieldValue val = model.getFieldValues()[i]; layout.setWidget(i, 0, getSetterLabel()); layout.setWidget(i, 1, fieldSelector(val)); layout.setWidget(i, 2, valueEditor(val)); final int idx = i; Image remove = GuidedRuleEditorImages508.INSTANCE.DeleteItemSmall(); remove.addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { if (Window.confirm(Constants.INSTANCE.RemoveThisItem())) { model.removeField(idx); setModified(true); getModeller().refreshWidget(); // Signal possible change in Template variables TemplateVariablesChangedEvent tvce = new TemplateVariablesChangedEvent(getModeller().getModel()); getEventBus().fireEventFromSource(tvce, getModeller().getModel()); } } }); if (!this.readOnly) { layout.setWidget(i, 3, remove); } } if (model.getFieldValues().length == 0) { HorizontalPanel h = new HorizontalPanel(); h.add(getSetterLabel()); if (!this.readOnly) { Image image = GuidedRuleEditorImages508.INSTANCE.Edit(); image.setAltText(Constants.INSTANCE.AddFirstNewField()); image.setTitle(Constants.INSTANCE.AddFirstNewField()); image.addClickHandler( new ClickHandler() { public void onClick(ClickEvent sender) { showAddFieldPopup(sender); } }); h.add(image); } layout.setWidget(0, 0, h); } // layout.setWidget( 0, 1, inner ); }
public static CheckBox addCheckBox(Panel p, String label, String infoMsg) { HorizontalPanel hp = new HorizontalPanel(); CheckBox cb = new CheckBox(label); cb.setText(label); hp.add(cb); Image info = new Image(ImporterPlugin.RESOURCES.info()); info.setTitle(infoMsg); hp.add(info); p.add(hp); return cb; }
public FactModelEditor(FactMetaModel factMetaModel, List<FactMetaModel> factModels) { this.factModels = factModels; this.factMetaModel = factMetaModel; add(uiBinder.createAndBindUi(this)); titleLabel.setText(getTitleText()); ClickHandler expandClickHandler = new ClickHandler() { public void onClick(ClickEvent event) { onTitleClicked(); } }; icon.addClickHandler(expandClickHandler); titleLabel.addClickHandler(expandClickHandler); setIconImage(); moveUpIcon.setTitle(constants.MoveUp()); moveDownIcon.setTitle(constants.MoveDown()); deleteIcon.setTitle(constants.RemoveThisFactType()); addOpenHandler( new OpenHandler<AbstractLazyStackPanelHeader>() { public void onOpen(OpenEvent<AbstractLazyStackPanelHeader> event) { expanded = true; setIconImage(); } }); addCloseHandler( new CloseHandler<AbstractLazyStackPanelHeader>() { public void onClose(CloseEvent<AbstractLazyStackPanelHeader> event) { expanded = false; setIconImage(); } }); }
/** {@inheritDoc} */ @Override protected ListItem<Attachment> getListItem(Attachment image) { ListItem<Attachment> imageItem = new ListItem<Attachment>(); imageItem.setData(image); Image htmlImage = new Image(image.getUrl() + "?width=135"); htmlImage.setTitle(new AttachmentReference(image.getReference()).getFileName()); FlowPanel previewPanel = new FlowPanel(); previewPanel.addStyleName("xImagePreview"); previewPanel.add(htmlImage); imageItem.add(previewPanel); return imageItem; }
private Image createRunPreviousIcon(boolean dark) { Image icon = new Image( dark ? ThemeResources.INSTANCE.runPreviousChunksDark() : ThemeResources.INSTANCE.runPreviousChunksLight()); icon.addStyleName(ThemeStyles.INSTANCE.highlightIcon()); icon.setTitle(commands_.executePreviousChunks().getTooltip()); bindNativeClickToExecutePreviousChunks(this, icon.getElement()); return icon; }
private Image createOptionsIcon(boolean dark, boolean setupChunk) { Image icon = new Image( dark ? ThemeResources.INSTANCE.chunkOptionsDark() : ThemeResources.INSTANCE.chunkOptionsLight()); icon.addStyleName(ThemeStyles.INSTANCE.highlightIcon()); if (setupChunk) icon.addStyleName(RES.styles().setupChunk()); icon.setTitle("Modify chunk options"); bindNativeClickToOpenOptions(this, icon.getElement()); return icon; }
@Override public void setPlatform(Platform platform) { Image image = new Image(Utils.getPlatformIcon(platform)); image.setTitle(Utils.getPlatformText(platform)); image.getElement().getStyle().setVerticalAlign(VerticalAlign.MIDDLE); Label label = new Label(Utils.getPlatformText(platform)); targetPlatformPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); targetPlatformPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); targetPlatformPanel.add(image); targetPlatformPanel.setCellWidth(image, "32px"); targetPlatformPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT); targetPlatformPanel.add(label); label.getElement().getStyle().setPaddingLeft(8, Unit.PX); }
private HorizontalPanel getConcept() { HorizontalPanel conceptHp = new HorizontalPanel(); conceptHp.add(conceptLabel); conceptLabel.addStyleName("gwt-Textbox"); conceptBrowse = new Image("images/browseButton3-grey.gif"); conceptBrowse.setStyleName(Style.Link); conceptBrowse.addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { final ConceptBrowser cb = ((MainApp) RootPanel.get().getWidget(0)).conceptBrowser; cb.showBrowser(); cb.addSubmitClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { conceptLabel.setValue(cb.getSelectedItem(), cb.getTreeObject()); exp.setConceptURI(cb.getTreeObject().getUri()); } }); } }); conceptHp.add(conceptBrowse); conceptClear = new Image("images/trash-grey.gif"); conceptClear.setTitle(constants.buttonClear()); conceptClear.setStyleName(Style.Link); conceptClear.addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { conceptLabel.setText(""); exp.setConceptURI(null); } }); conceptHp.add(conceptClear); conceptChildren = new CheckBox(constants.exportIncludeChildren(), true); conceptChildren.addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { exp.setIncludeChildren(((CheckBox) event.getSource()).getValue()); } }); conceptHp.add(conceptChildren); conceptHp.setSpacing(3); conceptHp.setWidth("100%"); conceptHp.setCellHorizontalAlignment(conceptLabel, HasHorizontalAlignment.ALIGN_LEFT); conceptHp.setCellHorizontalAlignment(conceptBrowse, HasHorizontalAlignment.ALIGN_RIGHT); conceptHp.setCellHorizontalAlignment(conceptChildren, HasHorizontalAlignment.ALIGN_LEFT); conceptHp.setCellWidth(conceptLabel, "80%"); return conceptHp; }
public static TextBox addTextBox(Panel p, String label, String infoMsg, boolean isPassword) { HorizontalPanel hp = new HorizontalPanel(); hp.add(new Label(label)); Image info = new Image(ImporterPlugin.RESOURCES.info()); info.setTitle(infoMsg); hp.add(info); hp.add(new Label(":")); Panel vp = new VerticalPanel(); vp.add(hp); TextBox tb = createTextBox(isPassword); vp.add(tb); p.add(vp); return tb; }
@Override protected void onUpdateHeader(BlockHeaderWidget header) { Task task = getObject(); header.setDragHandle(task.getReference()); Image statusImage = null; if (task.isClosed()) { statusImage = Img.bundle.tskClosed().createImage(); statusImage.setTitle("Closed."); } else if (task.isBlocked()) { statusImage = Img.bundle.tskBlocked().createImage(); statusImage.setTitle("Blocked by " + task.getImpediment().getReferenceAndLabel() + "."); } else if (task.isOwnerSet()) { statusImage = Img.bundle.tskClaimed().createImage(); statusImage.setTitle("Claimed by " + task.getOwner().getName() + "."); } statusIcon.setWidget(statusImage); if (requirementLabel != null) { Requirement req = task.getRequirement(); requirementLabel.setText(req.getReference() + " " + req.getLabel()); } if (ownerLabel != null) ownerLabel.setText(task.isOwnerSet() ? task.getOwner().getName() : null); header.setCenter(task.getLabel()); }
private void doActions() { VerticalPanel actions = new VerticalPanel(); Image add = GuvnorImages.INSTANCE.NewItem(); add.setAltText(ConstantsCore.INSTANCE.AssetCategoryEditorAddNewCategory()); add.setTitle(constants.AddANewCategory()); add.addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { doOKClick(); } }); actions.add(add); layout.setWidget(0, 1, actions); }
public SingleLightboxImagePanel() { VerticalPanel panel = new VerticalPanel(); panel.setHorizontalAlignment(VerticalPanel.ALIGN_CENTER); panel.setVerticalAlignment(VerticalPanel.ALIGN_MIDDLE); Label headerLabel = new Label("Single Image Demo"); panel.add(headerLabel); panel.add(getDescription()); Image image = new Image("image.jpg"); image.setTitle("Image Title"); // Not required, but will be used as caption LightboxImage lightboxImage = new LightboxImage(image); panel.add(lightboxImage); panel.add(getCodeSnippet()); initWidget(panel); }
protected Widget addRemoveButton(Widget w, ClickHandler listener) { DirtyableHorizontalPane horiz = new DirtyableHorizontalPane(); final Image remove = GuidedRuleEditorImages508.INSTANCE.DeleteItemSmall(); remove.setAltText(Constants.INSTANCE.RemoveThisBlockOfData()); remove.setTitle(Constants.INSTANCE.RemoveThisBlockOfData()); remove.addClickHandler(listener); horiz.setWidth("100%"); w.setWidth("100%"); horiz.add(w); if (!this.readOnly) { horiz.add(remove); } return horiz; }
private void loadData(FlexTable list) { for (int i = 0; i < data.getCategories().length; i++) { final int idx = i; list.setWidget(i, 0, new SmallLabel(data.getCategories()[i])); if (!readOnly) { Image del = GuvnorImages.INSTANCE.Trash(); del.setTitle(constants.RemoveThisCategory()); del.addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { removeCategory(idx); } }); list.setWidget(i, 1, del); } } }
public void init() { super.init(); searchWidget = new SearchWidget(watch); searchWidget.init(); refreshImage = new Image(watch.getSkinFile(Constants.IMAGE_REFRESH)); refreshImage.setStyleName(watch.getStyleName("titlebar", "refresh")); refreshImage.setTitle(watch.getTranslation("refresh")); refreshImage.addClickListener( new ClickListener() { public void onClick(Widget widget) { watch.refreshArticleList(); } }); title.setStyleName(watch.getStyleName("titlebar", "title")); panel.add(title); panel.add(refreshImage); panel.add(searchWidget); refreshData(); }
@Override public void setFeatures(List<Feature> features) { for (int i = 0; i < features.size(); i++) { Feature feature = features.get(i); Image image = new Image(Utils.getFeatureIcon(feature)); image.setTitle(Utils.getFeatureText(feature)); image.getElement().getStyle().setVerticalAlign(VerticalAlign.MIDDLE); Label label = new Label(Utils.getFeatureText(feature)); featuresPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); featuresPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); featuresPanel.add(image); featuresPanel.setCellWidth(image, "32px"); featuresPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT); featuresPanel.add(label); if (i < features.size() - 1) { label.getElement().getStyle().setPaddingRight(10, Unit.PX); } label.getElement().getStyle().setPaddingLeft(8, Unit.PX); } }
public ToolsButtonsPanel(final TopBarView.Presenter presenter) { super(); if (LocationHelper.isAnalysisAvailable()) { analysisButton = new CustomButton(); analysisButton.setTitle("Analyse your data"); analysisButton.setResourceNoBorder(ReactomeImages.INSTANCE.analysisTool()); analysisButton.addClickHandler( new ClickHandler() { @Override public void onClick(ClickEvent clickEvent) { presenter.analysisToolSelected(); } }); add(analysisButton); } else { Image img = new Image(ReactomeImages.INSTANCE.analysisToolsDisabled()); img.getElement().getStyle().setWidth(28, Style.Unit.PX); img.getElement().getStyle().setHeight(28, Style.Unit.PX); img.setTitle("Analysis tool not available in this server"); add(img); } }
private Widget getSetterLabel() { HorizontalPanel horiz = new HorizontalPanel(); if (mCall.getState() == ActionCallMethod.TYPE_UNDEFINED) { Image edit = TestScenarioAltedImages.INSTANCE.AddFieldToFact(); edit.setTitle(TestScenarioConstants.INSTANCE.AddAnotherFieldToThisSoYouCanSetItsValue()); edit.addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { Image w = (Image) event.getSource(); showAddFieldPopup(w); } }); horiz.add( new SmallLabel( HumanReadable.getActionDisplayName("call") + " [" + mCall.getVariable() + "]")); // NON-NLS horiz.add(edit); } else { horiz.add( new SmallLabel( HumanReadable.getActionDisplayName("call") + " [" + mCall.getVariable() + "." + mCall.getMethodName() + "]")); // NON-NLS } return horiz; }
@Test public void checkTitle() { Image i = new Image(); i.setTitle("title"); Assert.assertEquals("title", i.getTitle()); }
/* * Creates the panel of audit fields. * * @return the panel of audit fields. */ public VerticalPanel createContent() { final VerticalPanel panel = new VerticalPanel(); panel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); add(panel); final Label auditLabel = new Label(CONSTANTS.auditLabel()); auditLabel.addStyleName(AbstractField.CSS.cbtAbstractPopupLabel()); panel.add(auditLabel); final Label closeButton = new Label(); closeButton.addClickHandler( new ClickHandler() { @Override public void onClick(ClickEvent event) { hide(); } }); closeButton.addStyleName(AbstractField.CSS.cbtAbstractPopupClose()); panel.add(closeButton); final HorizontalPanel content = new HorizontalPanel(); content.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); panel.add(content); final VerticalPanel form = new VerticalPanel(); content.add(form); // ----------------------------------------------- // Audit Date field // ----------------------------------------------- dateField = new DateField(this, null, CONSTANTS.dateLabel(), tab++); dateField.setHelpText(CONSTANTS.dateHelp()); form.add(dateField); // ----------------------------------------------- // Audit Name field // ----------------------------------------------- nameField = new SuggestField( this, null, new NameIdAction(Service.ATTRIBUTE), CONSTANTS.nameLabel(), 20, tab++); nameField.setState(AbstractRoot.getOrganizationid()); nameField.setType(Value.Type.AuditName.name()); nameField.setHelpText(CONSTANTS.nameHelp()); final Image nameButton = new Image(AbstractField.BUNDLE.plus()); nameButton.addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { if (AbstractRoot.noOrganizationid()) { AbstractField.addMessage( Level.ERROR, AbstractField.CONSTANTS.errOrganizationid(), nameField); } else { ValuePopup.getInstance() .show( Value.Type.AuditName, CONSTANTS.nameLabel(), AbstractRoot.getOrganizationid(), nameField); } } }); nameButton.setTitle(CONSTANTS.namebuttonHelp()); nameField.addButton(nameButton); form.add(nameField); // ----------------------------------------------- // Rating range with one anchor slider // ----------------------------------------------- ratingField = new RatingField(this, null, CONSTANTS.ratingLabel(), 10, tab++) {}; ratingField.setLo(CONSTANTS.ratingLo()); ratingField.setHi(CONSTANTS.ratingHi()); ratingField.setDefaultValue(5); ratingField.setHelpText(CONSTANTS.ratingHelp()); form.add(ratingField); // ----------------------------------------------- // Comment field // ----------------------------------------------- notesField = new TextAreaField(this, null, CONSTANTS.notesLabel(), tab++); notesField.setFieldStyle(CSS.notesField()); notesField.setMaxLength(255); notesField.setHelpText(CONSTANTS.notesHelp()); form.add(notesField); form.add(createCommands()); onRefresh(); return panel; }
private HorizontalPanel getFunctionButton(final TermObject tObj) { HorizontalPanel hp = new HorizontalPanel(); hp.setSpacing(2); // Edit Term boolean permission = permissionTable.contains( OWLActionConstants.TERMEDIT, OWLStatusConstants.getOWLStatusID(tObj.getStatus()), tObj.getLang(), MainApp.getPermissionCheck(tObj.getLang())); ImageAOS edit = new ImageAOS( constants.conceptEditTerm(), "images/edit-grey.gif", "images/edit-grey-disabled.gif", permission, new ClickHandler() { public void onClick(ClickEvent event) { if (editTerm == null || !editTerm.isLoaded) editTerm = new EditTerm(tObj); editTerm.show(); } }); hp.add(edit); // Delete Term permission = permissionTable.contains( OWLActionConstants.TERMDELETE, OWLStatusConstants.getOWLStatusID(tObj.getStatus()), tObj.getLang(), MainApp.getPermissionCheck(tObj.getLang())); ImageAOS delete = new ImageAOS( constants.conceptDeleteTerm(), "images/delete-grey.gif", "images/delete-grey-disabled.gif", permission, new ClickHandler() { public void onClick(ClickEvent event) { if (deleteTerm == null || !deleteTerm.isLoaded) deleteTerm = new DeleteTerm(tObj); deleteTerm.show(); } }); hp.add(delete); /*// Move Term ImageAOS move = new ImageAOS(constants.conceptMove(), "images/moveconcept-grey.gif", "images/moveconcept-grey.gif", permissionTable.contains(OWLActionConstants.TERMDELETE), new ClickHandler(){ public void onClick(ClickEvent event) { MoveTerm moveTerm; if(tObj.isMainLabel()) { moveTerm = new MoveTerm(); } else { moveTerm = new MoveTerm(tObj); } moveTerm.show(); } }); if(tObj.getStatus().equals(OWLStatusConstants.DEPRECATED) || tObj.getStatus().equals(OWLStatusConstants.DELETED) || tObj.getStatus().equals(OWLStatusConstants.PROPOSED_DEPRECATED)) move.setVisible(false); hp.add(move); */ final HTMLAOS term = new HTMLAOS(); term.setHTML(getTermColorByStatus(tObj.getLabel(), tObj.getStatus(), tObj.isMainLabel()), tObj); term.setStyleName(Style.Link); term.setTitle(tObj.getStatus()); term.addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { if (termDetail == null || !termDetail.isLoaded) termDetail = new TermDetail(conceptObject, (TermObject) term.getValue()); termDetail.show(); } }); hp.add(term); Image wiki = new Image(MainApp.aosImageBundle.wikiIcon()); wiki.setStyleName("cursor-hand"); wiki.setTitle(constants.conceptWikipedia()); wiki.addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { openURL( "http://www.wikipedia.org/search-redirect.php?search=" + tObj.getLabel() + "&language=" + tObj.getLang(), "wikiWindow"); } }); hp.add(wiki); return hp; }
/** @param consumedEvents */ public RecommendedChartCell(String... consumedEvents) { super(consumedEvents); image.setTitle(COModuleRecommenderResources.TEXT.recommendationFromStudentsLong()); }