Examples of CheckList


Examples of org.apache.click.extras.control.CheckList

    // Constructor ------------------------------------------------------------

    public CheckListDemo() {
        form.setFieldStyle("width:20em;");

        standardCheckList = new CheckList("standardList", "Standard List ", true);
        standardCheckList.setOptionList(STANDARD_OPTIONS);
        form.add(standardCheckList);

        sortableCheckList = new CheckList("sortableList", "Sortable List ");
        sortableCheckList.setOptionList(SORTABLE_OPTIONS);
        sortableCheckList.addStyleClass("cl2");
        sortableCheckList.setSortable(true);
        sortableCheckList.setStyle("width", "100%;");
        form.add(sortableCheckList);
View Full Code Here

Examples of org.as.jtrello.checklists.Checklist

public class ChecklistServiceTest extends GenericServiceTest {

  @Test
  public void testGet() {
    Checklist checklist = null;
    try {
      checklist = client.getChecklists().get(props.getProperty("TRELLO_CHECKLIST1"));
      System.out.println("DEBUG checklist=" + checklist.toString());
    } catch (Exception e) {
      e.printStackTrace();
      fail();
    }
    assertThat(checklist.getId(),     equalTo("5112f4cb3fed01f255002873"));
    assertThat(checklist.getName(),   equalTo("Java Libs"));
    assertThat(checklist.getIdBoard(),   equalTo("5112f4b6c4cde7265f011fc9"));
    assertThat(checklist.getIdCard(),   equalTo("5112f4c131b1bf1a0b004177"));
  }
View Full Code Here

Examples of org.as.jtrello.checklists.Checklist

    assertThat(checklist.getIdCard(),   equalTo("5112f4c131b1bf1a0b004177"));
  }
 
  @Test
  public void testGetByCard() {
    Checklist checklist;
    try {
      List<Checklist> checklists = client.getChecklists().getByCard(props.getProperty("TRELLO_CARD1"));
      Iterator<Checklist> iterator = checklists.iterator();
      while (iterator.hasNext()) {
        checklist = iterator.next();
        System.out.println("DEBUG checklist=" + checklist.toString());
      }
    } catch (Exception e) {
      e.printStackTrace();
      fail();
    }
View Full Code Here

Examples of org.japura.gui.CheckList

  @Override
  public Component getListCellRendererComponent(JList list, Object value,
                        int index, boolean isSelected,
                        boolean cellHasFocus) {
  if (list instanceof CheckList) {
    CheckList cbl = (CheckList) list;
    ListCheckModel model = cbl.getModel();
    boolean checked = model.isChecked(value);
    boolean locked = model.isLocked(value);
    setSelected(checked);

    if (locked || cbl.isEnabled() == false) {
    setEnabled(false);
    } else {
    setEnabled(true);
    }
View Full Code Here

Examples of org.japura.gui.CheckList

  return TransferHandler.COPY;
  }

  protected boolean canTransfer(JComponent c) {
  if (c instanceof CheckList) {
    CheckList list = (CheckList) c;
    return CheckListTransferable.isAvailableToTransfer(list);
  }
  return false;
  }
View Full Code Here

Examples of org.trello4j.model.Checklist

    public void shouldCreateChecklist() throws Exception {
        // GIVEN
        InputStream json = getTestDataFromFile("checklist.json");

        // WHEN
        Checklist checklist = trelloObjFactory.createObject(new TypeToken<Checklist>(){}, json);

        // THEN
        assertEquals("4f92b89ea73738db6cdd4ed7", checklist.getId());
        assertEquals("Checklist", checklist.getName());
        assertEquals("4f92b80ba73738db6cdd4309", checklist.getIdBoard());
        assertEquals(3, checklist.getCheckItems().size());

        Checklist.CheckItem firstCheckItem = checklist.getCheckItems().get(0);
        assertEquals("First checkitem", firstCheckItem.getName());
        assertEquals("check", firstCheckItem.getType());
        assertEquals(8588, firstCheckItem.getPos(), 0);

        json.close();
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.