This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public Factory getFactory() { | |
return new Factory() { | |
Injector injector = Guice.createInjector(new MyModule()); | |
@Override | |
public <R extends FacadeReady> R call(Class<R> clazz) throws CoreException { | |
return injector.getInstance(clazz); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Max(value = 2013, groups = Warning.class) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.form-editor-invalid { | |
-fx-text-fill: red; | |
} | |
.form-label-invalid { | |
-fx-font-weight: bold; | |
} | |
.form-editor-warning { | |
-fx-text-fill: orange; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fxForm.setSource(new MultipleBeanSource(new MyBean1(), new MyBean2())); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Contact extends AbstractJcrEntity { | |
@JcrProperty | |
private StringProperty name = new SimpleStringProperty(); | |
@JcrProperty | |
private DoubleProperty height = new SimpleDoubleProperty(); | |
@JcrProperty | |
private ObjectProperty<Date> birthday = new SimpleObjectProperty<Date>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.jcrom.util.NodeFilter; | |
import org.junit.Assert; | |
import org.junit.Test; | |
public class NodeFilterTest { | |
@Test | |
public void testNodeFilterDepth() { | |
NodeFilter nodeFilter = new NodeFilter("b", NodeFilter.DEPTH_INFINITE, 0); | |
Assert.assertEquals(true, nodeFilter.isIncluded("b", 0)); // OK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.jcrom.modeshape; | |
import org.jcrom.Jcrom; | |
import org.jcrom.entities.Child; | |
import org.jcrom.entities.Parent; | |
import org.junit.Test; | |
import org.modeshape.test.ModeShapeSingleUseTest; | |
/** | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TestBigDecimalSerialization extends ModeShapeSingleUseTest { | |
public static class TestBean extends AbstractJcrEntity { | |
@JcrSerializedProperty | |
private BigDecimal bigDecimal; | |
public BigDecimal getBigDecimal() { | |
return bigDecimal; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. | |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |
* | |
* This code is free software; you can redistribute it and/or modify it | |
* under the terms of the GNU General Public License version 2 only, as | |
* published by the Free Software Foundation. Oracle designates this | |
* particular file as subject to the "Classpath" exception as provided | |
* by Oracle in the LICENSE file that accompanied this code. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sun.javafx.binding; | |
import javafx.beans.property.*; | |
import org.junit.Assert; | |
import org.junit.Test; | |
public class BidirectionalBindingTest { | |
@Test |
OlderNewer