@Override public void setNodeFullName(String name) { nodeName.setTitle(name); }
@Override public void setNodeFullName(String name) { nodeName.setTitle(name); }
@Override public ScreenErrorView showMessage(final String message) { this.message.setTitle(message); this.message.setText(message); return this; }
@Override public void setNodeFullName(String name) { nodeName.setTitle(name); nodeNameHelp.setTitle(name); nodeNameHelp.setClassName("acl-help-panel"); }
private Label getFormattedLabel(final String name, final String tooltip) { final Label label = new Label(name); label.setStyleName("formLabel"); label.setTitle(tooltip); return label; } }
@Override public void setNodeFullName(String name) { nodeName.setTitle(name); nodeNameHelp.setTitle(name); nodeNameHelp.setClassName("acl-help-panel"); }
public static Label createLabel(final String label, final String definition, final boolean isRequired) { Label propertyLabel; if (label == null || "".equals(label)) { propertyLabel = new Label(label); } else { propertyLabel = new Label(capitalizeFirst(label)); } if (isRequired) { propertyLabel.setStyleName("formLabelRequired"); } else { propertyLabel.setStyleName("formLabel"); } if (definition != null && !"".equals(definition) && !"NO DEFINITION".equals(definition)) { propertyLabel.setTitle(definition); } return propertyLabel; }
@Override protected void decorateSection(String sectionTitle, FlowPanel sectionPanel, EIEntity instanceEntity) { FlowPanel titlePanel = new FlowPanel(); Label title = new Label( ); title.setStyleName( "contactSectionTitle" ); titlePanel.add( title ); titlePanel.addStyleName( "contactSectionHeader" ); if ( sectionTitle.equals( PropertyOrderUtil.LOCAL_SECTION )) { title.setText( LOCAL_ONTOLOGY_TITLE ); title.setTitle( LOCAL_ONTOLOGY_TITLE_HELP ); title.setStyleName("annotationTitle"); sectionPanel.add( titlePanel ); } }
@Override protected void decorateSection(final String sectionTitle, final FlowPanel sectionPanel, final EIEntity instanceEntity) { FlowPanel titlePanel = new FlowPanel(); Label title = new Label( ); titlePanel.add( title ); titlePanel.addStyleName( "contactSectionHeader" ); //TODO remove if definitive (for now it doesn't make sense since we moved contact button out) // if ( sectionTitle.equalsIgnoreCase( PropertyOrderUtil.CONTACT_SECTION ) ) { // title.setStyleName( "contactSectionTitle" ); // title.setText( sectionTitle ); // } if ( sectionTitle.equals( PropertyOrderUtil.LOCAL_SECTION )) { title.setText( LOCAL_ONTOLOGY_TITLE ); title.setTitle( LOCAL_ONTOLOGY_TITLE_HELP ); title.setStyleName("annotationTitle"); } sectionPanel.add( titlePanel ); }
@Override protected void decorateSection(String sectionTitle, FlowPanel sectionPanel, EIEntity instanceEntity) { FlowPanel titlePanel = new FlowPanel(); Label title = new Label(); title.setStyleName( "contactSectionTitle" ); titlePanel.add( title ); titlePanel.addStyleName( "contactSectionHeader" ); if ( sectionTitle.equals( PropertyOrderUtil.LOCAL_SECTION ) ) { title.setText( LOCAL_ONTOLOGY_TITLE ); title.setTitle( LOCAL_ONTOLOGY_TITLE_HELP ); title.setStyleName( "annotationTitle" ); sectionPanel.add( titlePanel ); } }
@Override public void update(ActionEvent e) { panel.clear(); Project project = appContext.getRootProject(); if (project != null && project.getAttributes().containsKey(GIT_CURRENT_HEAD_NAME)) { Label projectNameLabel = new Label(project.getName()); projectNameLabel.ensureDebugId("statusBarProjectBranchRepositoryName"); projectNameLabel.getElement().getStyle().setMarginLeft(5., Unit.PX); panel.add(projectNameLabel); SVGImage branchIcon = new SVGImage(resources.checkoutReference()); branchIcon.getSvgElement().getStyle().setMarginLeft(5., Unit.PX); panel.add(branchIcon); Label headLabel = new Label(project.getAttribute(GIT_CURRENT_HEAD_NAME)); headLabel.ensureDebugId("statusBarProjectBranchName"); headLabel.setTitle(constant.branchesControlTitle()); Style headLabelStyle = headLabel.getElement().getStyle(); headLabelStyle.setCursor(Cursor.POINTER); headLabelStyle.setMarginLeft(5., Unit.PX); headLabel.addClickHandler(event -> branchPresenter.showBranches(project)); panel.add(headLabel); } } }
territoryLabel.setTitle(MESSAGES.securityGroupDetailTerritoryHint()); territoryLabel.setWordWrap(false);