Examples of List


Examples of com.badlogic.gdx.scenes.scene2d.ui.List

        });

        Label difficultyLabel = new Label("-- DIFFICULTY --", game.getSkin());

        String[] resolutionsArray = {"LOW", "MEDIUM", "HIGH"};
        final List difficultyList = new List(resolutionsArray, game.getSkin());

        difficultyList.addListener(new ClickListener() {
            public void touchUp(InputEvent event, float x, float y, int pointer, int button) {

                switch (difficultyList.getSelectedIndex()) {
                    case 0:
                        prefs.putString("difficulty", "low");
                        break;
                    case 1:
                        prefs.putString("difficulty", "medium");
View Full Code Here

Examples of com.cumulocity.me.lang.List

    private String findQueryURI(List uriTemplates, Set parameters) {
        Iterator i = uriTemplates.iterator();
        while (i.hasNext()) {
            String uri = (String) i.next();
            List queryParams = getQueryParams(uri);

            List queryDelta = findDelta(parameters, queryParams);
            List paramDelta = findDelta(queryParams, parameters);

            // if no extra parameters found then both are matching
            if (queryDelta.isEmpty() && paramDelta.isEmpty()) {
                return uri;
            }

            // if more parameters then definitely not matching
            if (!paramDelta.isEmpty()) {
                continue;
            }

            // if query has more parameters and the delta is optional we can use this uri.
            if (queryDelta.size() == getOptionalCount(queryDelta)) {
View Full Code Here

Examples of com.deitel.jhtp6.ch17.List

public class ListTest
{
   public static void main( String args[] )
   {
      List list = new List(); // create the List container

      // insert integers in list
      list.insertAtFront( -1 );
      list.print();
      list.insertAtFront( 0 );
      list.print();
      list.insertAtBack( 1 );
      list.print();
      list.insertAtBack( 5 );
      list.print();

      // remove objects from list; print after each removal
      try
      {
         Object removedObject = list.removeFromFront();
         System.out.printf( "%s removed\n", removedObject );
         list.print();

         removedObject = list.removeFromFront();
         System.out.printf( "%s removed\n", removedObject );
         list.print();

         removedObject = list.removeFromBack();
         System.out.printf( "%s removed\n", removedObject );
         list.print();

         removedObject = list.removeFromBack();
         System.out.printf( "%s removed\n", removedObject );
         list.print();
      } // end try
      catch ( EmptyListException emptyListException )
      {
         emptyListException.printStackTrace();
      } // end catch
View Full Code Here

Examples of com.hlcl.rql.as.List

      throw new WrongTypeException("You try to link page with wrong template " + responsibleTableRowPg.getTemplateName()
          + ". You can link only pages of content class " + templateName + ".");
    }

    // remove and connect
    List responsibleList = getResponsibleList();
    responsibleList.disconnectAllChilds();
    responsibleList.connectToExistingPage(responsibleTableRowPg, false);

    // force re-read
    deleteResponsibleRowCache();
  }
View Full Code Here

Examples of com.itextpdf.text.List

                    break;
                }
                case Element.LIST: {
                    // we cast the element to a List
                    List list = (List) element;
                    if (list.isAlignindent()) {
                      list.normalizeIndentation();
                    }
                    // we adjust the document
                    indentation.listIndentLeft += list.getIndentationLeft();
                    indentation.indentRight += list.getIndentationRight();
                    // we process the items in the list
                    element.process(this);
                    // some parameters are set back to normal again
                    indentation.listIndentLeft -= list.getIndentationLeft();
                    indentation.indentRight -= list.getIndentationRight();
                    carriageReturn();
                    break;
                }
                case Element.LISTITEM: {
                  leadingCount++;
View Full Code Here

Examples of com.lowagie.text.List

                    break;
                }
                case Element.LIST: {
                    // we cast the element to a List
                    List list = (List) element;
                    if (list.isAlignindent()) {
                      list.normalizeIndentation();
                    }
                    // we adjust the document
                    indentation.listIndentLeft += list.getIndentationLeft();
                    indentation.indentRight += list.getIndentationRight();
                    // we process the items in the list
                    element.process(this);
                    // some parameters are set back to normal again
                    indentation.listIndentLeft -= list.getIndentationLeft();
                    indentation.indentRight -= list.getIndentationRight();
                    carriageReturn();
                    break;
                }
                case Element.LISTITEM: {
                  leadingCount++;
View Full Code Here

Examples of com.scratchdisk.list.List

  }

  @SuppressWarnings("unchecked")
  public void put(int index, Scriptable start, Object value) {
    if (javaObject != null && javaObject instanceof List) {
      List list = ((List) javaObject);
      int size = list.size();
      value = coerceComponentType(value);
      if (index >= size) {
        for (int i = size; i < index; i++)
          list.add(i, null);
        list.add(index, value);
      } else {
        list.set(index, value);
      }
      if (changeReceiver != null)
        updateChangeReceiver();
    }
  }
View Full Code Here

Examples of com.sun.dtv.lwuit.List

        loadForm.setY(130);
        loadForm.setStyle(style);
        Label lblStatus = new Label("Escolha qual jar voce vai carregar:");
        lblStatus.setY(0);

        final List list = new List();
        String[] arquivos = File.getAllFilesWithExtensions("/home/mos/xlets/", new String[] {"jar"});
        if (arquivos != null){
            for (int i=0;i<arquivos.length;i++)
                list.addItem(arquivos[i]);
        }
        list.setY(15);
        list.setHeight(10);
        Style stylebotao = new Style();
        stylebotao.setBgColor(0x000000, true);
        stylebotao.setBgSelectionColor(0x090909, true);
        list.setStyle(stylebotao);

        final Button btnLoadXlet = new Button("Carregar >>");
        btnLoadXlet.setY(143);
        btnLoadXlet.setX(160);
        final Button btnVoltar = new Button("<< Voltar");
        btnVoltar.setY(143);
        btnVoltar.setX();

        // Criando actionListener
        ActionListener listener = new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                if (evt.getSource() == btnLoadXlet) {
                    context.notifyPaused();
                    ApplicationManager.loadXlet("/home/mos/xlets/" + (String)list.getSelectedItem());
                } else if (evt.getSource() == btnVoltar) {
                    loadForm.setVisible(false);
                    mainForm.show();

                }
View Full Code Here

Examples of com.sun.tools.txw2.model.List

            l.merge(simpleType(st.getMember(i)));
        return l;
    }

    public Leaf listSimpleType(XSListSimpleType st) {
        return new List(st.getLocator(),simpleType(st.getItemType()));
    }
View Full Code Here

Examples of com.sun.xml.bind.v2.schemagen.xmlschema.List

                        TypeRef<T,C> t = ep.getTypes().get(0);
                        LocalElement e = parent.element();
                        e.block(); // we will write occurs later
                        QName tn = t.getTagName();
                        e.name(tn.getLocalPart());
                        List lst = e.simpleType().list();
                        writeTypeRef(lst,t, "itemType");
                        elementFormDefault.writeForm(e,tn);
                        writeOccurs(e,isOptional||!ep.isRequired(),repeated);
                    }
                };
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.