Examples of validate()


Examples of javax.swing.JSplitPane.validate()

  protected JComponent createWidget() {
    JSplitPane jsp = new JSplitPane();
    Dimension size = new Dimension(100, 100);
    jsp.setSize(size);
    jsp.doLayout();
    jsp.validate();
    return jsp;
  }

  private boolean existsAndDesigning(JComponent comp) {
    return comp != null && WidgetAdapter.getWidgetAdapter(comp) != null;
View Full Code Here

Examples of javax.swing.JTabbedPane.validate()

  protected Component createWidget() {
    JTabbedPane tab = new JTabbedPane();
    Dimension size = new Dimension(100, 100);
    tab.setSize(size);
    tab.doLayout();
    tab.validate();
    return tab;
  }


  @Override
View Full Code Here

Examples of javax.swing.JTable.validate()

  protected Component createWidget() {
    JTable jtc = new JTable();
    jtc.setModel(new DefaultTableModel(new Object[][] { { Messages.JTableAdapter_0, Messages.JTableAdapter_1 }, { Messages.JTableAdapter_2, Messages.JTableAdapter_3 } }, new Object[] { Messages.JTableAdapter_Title_0, Messages.JTableAdapter_Title_1 }));
    jtc.setSize(getInitialSize());
    jtc.doLayout();
    jtc.validate();
    return jtc;
  }
  protected Dimension getInitialSize(){
    return new Dimension(200, 150);
  }
View Full Code Here

Examples of javax.swing.JTextArea.validate()

    r.waitForIdle();
    harness.check(area.isValid(), true);
    area.append("lineNEw\n");
    r.waitForIdle();
    harness.check(area.isValid(), false);
    area.validate();
   
    harness.checkPoint("setRows checks");
    area.setRows(area.getRows());
    r.waitForIdle();
    harness.check(area.isValid(), true);
View Full Code Here

Examples of javax.swing.JToolBar.validate()

  protected Component createWidget() {
    JToolBar toolBar = new JToolBar();
    Dimension size = new Dimension(100, 23);
    toolBar.setSize(size);
    toolBar.doLayout();
    toolBar.validate();
    return toolBar;
  }


  @Override
View Full Code Here

Examples of javax.swing.JTree.validate()

  protected Component createWidget() {
    JTree jtc = new JTree();
    jtc.setSize(getInitialSize());
    jtc.doLayout();
    jtc.validate();
    return jtc;
  }

  @Override
  protected Dimension getInitialSize() {
View Full Code Here

Examples of javax.swing.text.JTextComponent.validate()

    requestGlobalNewName();
    jtc.setText(getName());
    Dimension size = getInitialSize();
    jtc.setSize(size);
    jtc.doLayout();
    jtc.validate();
    return jtc;
  }
  @Override
  public String getBasename() {
    String className = getWidgetClass().getName();
View Full Code Here

Examples of javax.validation.Validator.validate()

      localesMap.put(clientLocale.toString(), interpolator);
    }

    Validator validator = factory.usingContext().messageInterpolator(interpolator).getValidator();
   
    Set<ConstraintViolation<ActionSupport>> constraintViolations = validator.validate(actionAs);
   
    List<Path> invalidFieldNames = new ArrayList<Path>();
    Map parameters = ActionContext.getContext().getParameters();
    for (ConstraintViolation<ActionSupport> constrantViolation : constraintViolations) {
      Path fieldPath = constrantViolation.getPropertyPath();
View Full Code Here

Examples of javax.xml.crypto.dsig.Reference.validate()

                LOG.debug("Signature Validation check: " + signatureValidationCheck);
                java.util.Iterator<?> referenceIterator =
                    xmlSignature.getSignedInfo().getReferences().iterator();
                while (referenceIterator.hasNext()) {
                    Reference reference = (Reference)referenceIterator.next();
                    boolean referenceValidationCheck = reference.validate(context);
                    String id = reference.getId();
                    if (id == null) {
                        id = reference.getURI();
                    }
                    LOG.debug("Reference " + id + " check: " + referenceValidationCheck);
View Full Code Here

Examples of javax.xml.crypto.dsig.XMLSignature.validate()

        DOMValidateContext dvc = new DOMValidateContext
        (ks, doc.getDocumentElement());
        XMLSignature sig2 = fac.unmarshalXMLSignature(dvc);

        assertTrue(sig.equals(sig2));
        assertTrue(sig2.validate(dvc));
    }

}
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.