Examples of Label


Examples of com.buschmais.xo.neo4j.api.annotation.Label

*/
public class Neo4jMetadataFactory implements DatastoreMetadataFactory<NodeMetadata, org.neo4j.graphdb.Label, RelationshipMetadata, RelationshipType> {

    @Override
    public NodeMetadata createEntityMetadata(AnnotatedType annotatedType, Map<Class<?>, TypeMetadata> metadataByType) {
        Label labelAnnotation = annotatedType.getAnnotation(Label.class);
        org.neo4j.graphdb.Label label = null;
        IndexedPropertyMethodMetadata<?> indexedProperty = null;
        if (labelAnnotation != null) {
            String value = labelAnnotation.value();
            if (Label.DEFAULT_VALUE.equals(value)) {
                value = annotatedType.getName();
            }
            label = DynamicLabel.label(value);
            Class<?> usingIndexOf = labelAnnotation.usingIndexedPropertyOf();
            if (!Object.class.equals(usingIndexOf)) {
                TypeMetadata typeMetadata = metadataByType.get(usingIndexOf);
                indexedProperty = typeMetadata.getIndexedProperty();
            }
        }
View Full Code Here

Examples of com.dodo.blog.ui.component.simple.Label

        this( text, component, false );
    }

    public FormRow( String text, HtmlComponent component, boolean componentFirst )
    {
        Label label = new Label( text + ( componentFirst ? "" : ":" ), component.getId() );

        if ( componentFirst )
        {
            add( component );
            add( label );
View Full Code Here

Examples of com.dtrules.automapping.Label

        LabelMap labelMap = autoDataMapDef.findLabelMap(node.getLabel());
        while(labelMap != null && labelMap.getTargetGroup() != autoDataMap.getCurrentGroup()){
            labelMap = labelMap.getNext();
        }
        if(labelMap == null){
            Label sourceLabel = node.getSourceLabel();
            String targetLabelname = node.getLabel();
            Label.newLabel(
                    autoDataMap.getCurrentGroup(),
                    targetLabelname,
                    targetLabelname,
                    sourceLabel.getKey(),
                    false);
            labelMap = new LabelMap(autoDataMapDef, node.getLabel(), targetLabelname);
            labelMap.setSourceGroup(node.getGroup());
            labelMap.setTargetGroup(autoDataMap.getCurrentGroup());
           
View Full Code Here

Examples of com.eagerlogic.cubee.client.components.Label

        });
        pnlName.heightProperty().bind(heightProperty());
        root.getChildren().add(pnlName);
       
        // TODO make styleable
        Label lblName = new Label();
        lblName.textProperty().set(attribute.getName());
        lblName.widthProperty().bind(pnlName.clientWidthProperty());
        lblName.maxWidthProperty().bind(pnlName.clientWidthProperty());
        lblName.translateYProperty().bind(new AlignMiddleExp(pnlName, lblName));
        lblName.textOverflowProperty().set(ETextOverflow.ELLIPSIS);
        pnlName.getChildren().add(lblName);
       
        root.addEmptyCell(10);
       
        pnlValue = new Panel();
View Full Code Here

Examples of com.elasticinbox.core.model.Label

        // add counters for each of the labels
        for (int labelId : message.getLabels())
        {
          if (!labels.containsId(labelId)) {
            Label label = new Label(labelId).setCounters(message.getLabelCounters());
            labels.put(label);
          } else {
            labels.get(labelId).incrementCounters(message.getLabelCounters());
          }
View Full Code Here

Examples of com.eteks.sweethome3d.model.Label

    List<Selectable> itemsWithText = new ArrayList<Selectable>();
    List<TextStyle> oldTextStyles = new ArrayList<TextStyle>();
    List<TextStyle> textStyles = new ArrayList<TextStyle>();
    for (Selectable item : this.home.getSelectedItems()) {
      if (item instanceof Label) {
        Label label = (Label)item;
        itemsWithText.add(label);
        TextStyle oldTextStyle = getItemTextStyle(label, label.getStyle());
        oldTextStyles.add(oldTextStyle);
        textStyles.add(oldTextStyle.deriveBoldStyle(selectionBoldStyle));
      } else if (item instanceof HomePieceOfFurniture) {
        HomePieceOfFurniture piece = (HomePieceOfFurniture)item;
        if (piece.isVisible()) {
View Full Code Here

Examples of com.extjs.gxt.charts.client.model.axis.Label

    public ChartModel getChartModel(int segments) {
      ChartModel cm = new ChartModel("Sales by Month 2007", "font-size: 14px; font-family: Verdana;");
      cm.setBackgroundColour("-1");
      XAxis xa = new XAxis();
      for (String m : TestData.getMonths()) {
        Label l = new Label(m, 45);
        l.setSize(10);
        l.setColour("#000000");
        xa.addLabels(l);
      }
      xa.setGridColour("-1");
      cm.setXAxis(xa);
      YAxis ya = new YAxis();
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.Label

  layoutContainer_0.setLayout(new TableLayout(2));
  TableData col1 = new TableData();
  col1.setWidth("600px");
  TableData col2 = new TableData();
  col2.setWidth("600px");
  labelChantier = new Label();
  labelChantier.setText("Chantier:" + chantier.getNom());
  labelRefTransfertpp = new Label();
  labelRefTransfertpp.setVisible(false);
  layoutContainer_0.add(labelChantier, col1);
  layoutContainer_0.add(labelRefTransfertpp, col2);
  setDefaultBackgroundColor(layoutContainer_0);
  setDefaultBackgroundColor(inforFieldset);
  inforFieldset.add(layoutContainer_0);
  formDetails = new CustomFormPanel();
  formDetails.add(inforFieldset);
  fsTransfertPp = new FieldSet();
  fsTransfertPp.setHeading("TRANSFERTS PP");
  fsTransfertPp.setLayout(new RowLayout(Orientation.VERTICAL));
  LayoutContainer layoutContainer_10 = new LayoutContainer();
  layoutContainer_10.setLayout(new BorderLayout());
  LayoutContainer buttonPanel = new LayoutContainer();
  buttonPanel.setId("buttonPanel");
  buttonPanel.setLayout(new RowLayout(Orientation.HORIZONTAL));
  Label label = new Label();
  label.setWidth("135px");
  buttonPanel.add(label);
  HTML space3 = new HTML(SPACES_3);
  buttonPanel.add(space3);
  saveButton = new HTML("<img src='./images/sauvegarder.png'/> " + messages.saveForm(), false);
  saveButton.setStyleName("actionHTML");
  saveButton.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
  saveButton.setVisible(true);
  saveButton.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent arg0) {
    Listener<MessageBoxEvent> callback = new Listener<MessageBoxEvent>() {
        @Override
        public void handleEvent(MessageBoxEvent be) {
      Button btt = be.getButtonClicked();
      if (Dialog.OK.equals(btt.getItemId())) {
          if (isSave == false) {
        saveAction(chantier.getId(), transfertPpId);
        isSave = true;
          }
      }
        }
    };
    createConfirmBox(callback, messages.deleteConfirmTitle(), messages.confirmSupprimer());
      }
  });
  buttonPanel.add(saveButton);
  layoutContainer_10.add(buttonPanel, new BorderLayoutData(LayoutRegion.EAST, 320.0f));
  layoutContainer_10.setHeight("30");
  fsTransfertPp.add(layoutContainer_10);
  LayoutContainer layoutContainer_11 = new LayoutContainer();
  Label label1 = new Label();
  label1.setText("Details des transferts PP:");
  Label label2 = new Label();
  label2.setText("Total des transferts PP");
  fsTransfertPp.add(label2);
  fsTransfertPp.add(gridligTotal);
  fsTransfertPp.add(new Html("<br/><br/><br/>"));
  fsTransfertPp.add(label1);
  fsTransfertPp.add(layoutContainer_11);
View Full Code Here

Examples of com.github.api.v2.schema.Label

  @Override
  public Label addLabel(String userName, String repositoryName, String label,
      String color) {
    GitHubApiUrlBuilder builder = createGitHubApiUrlBuilder(GitHubApiUrls.IssueApiUrls.ADD_LABEL_URL);
        String                apiUrl  = builder.withField(ParameterNames.USER_NAME, userName).withField(ParameterNames.REPOSITORY_NAME, repositoryName).buildUrl();
        Label bean = new Label();
        bean.setName(label);
        bean.setColor(color);
        JsonObject json = unmarshall(callApiMethod(apiUrl, marshall(bean), ApplicationConstants.CONTENT_TYPE_JSON, HttpMethod.POST, 201));
       
        return unmarshall(new TypeToken<Label>(){}, json);
  }
View Full Code Here

Examples of com.github.gwtbootstrap.client.ui.Label

    private void setup() {
        //Setup table
        table.setStriped( true );
        table.setCondensed( true );
        table.setBordered( true );
        table.setEmptyTableWidget( new Label( GlobalsEditorConstants.INSTANCE.noGlobalsDefined() ) );

        //Columns
        final TextColumn<Global> aliasColumn = new TextColumn<Global>() {

            @Override
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.