javafx.beans.property.ReadOnlyBooleanWrapper Java Examples
The following examples show how to use
javafx.beans.property.ReadOnlyBooleanWrapper.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ConnectionManagerTest.java From curly with Apache License 2.0 | 6 votes |
@Test public void getAuthenticatedConnection() throws IOException { webserver.requireLogin = true; AuthHandler handler = new AuthHandler( new ReadOnlyStringWrapper("localhost:"+webserver.port), new ReadOnlyBooleanWrapper(false), new ReadOnlyStringWrapper(TEST_USER), new ReadOnlyStringWrapper(TEST_PASSWORD) ); CloseableHttpClient client = handler.getAuthenticatedClient(); assertNotNull(client); HttpUriRequest request = new HttpGet("http://localhost:"+webserver.port+"/testUri"); client.execute(request); Header authHeader = webserver.lastRequest.getFirstHeader("Authorization"); assertNotNull(authHeader); String compareToken = "Basic "+Base64.getEncoder().encodeToString((TEST_USER + ":" + TEST_PASSWORD).getBytes()); assertEquals("Auth token should be expected format", authHeader.getValue(), compareToken); }
Example #2
Source File: DockNode.java From AnchorFX with GNU Lesser General Public License v3.0 | 6 votes |
private DockNode() { station = new SimpleObjectProperty<>(null); floatableProperty = new SimpleBooleanProperty(true); closeableProperty = new SimpleBooleanProperty(true); resizableProperty = new SimpleBooleanProperty(true); maximizableProperty = new SimpleBooleanProperty(true); floatingProperty = new ReadOnlyBooleanWrapper(false); draggingProperty = new ReadOnlyBooleanWrapper(false); resizingProperty = new ReadOnlyBooleanWrapper(false); maximizingProperty = new ReadOnlyBooleanWrapper(false); container = new ReadOnlyObjectWrapper<>(null); }
Example #3
Source File: ErrorBehaviorTest.java From curly with Apache License 2.0 | 5 votes |
@Before public void setUp() { ApplicationState.getInstance().runningProperty().set(true); handler = new AuthHandler( new ReadOnlyStringWrapper("localhost:" + webserver.port), new ReadOnlyBooleanWrapper(false), new ReadOnlyStringWrapper(TEST_USER), new ReadOnlyStringWrapper(TEST_PASSWORD) ); client = handler.getAuthenticatedClient(); }
Example #4
Source File: DefaultAudioRecordingService.java From attach with GNU General Public License v3.0 | 4 votes |
public DefaultAudioRecordingService() { recording = new ReadOnlyBooleanWrapper(); chunkList = new ReadOnlyListWrapper<>(FXCollections.observableArrayList()); }
Example #5
Source File: ActivatableSupport.java From gef with Eclipse Public License 2.0 | 3 votes |
/** * Creates a new {@link ActivatableSupport} for the given source * {@link IActivatable}. * * @param source * The {@link IActivatable} that encloses the to be created * {@link ActivatableSupport}, delegating calls to it. May not be * <code>null</code> */ public ActivatableSupport(IActivatable source) { if (source == null) { throw new IllegalArgumentException("source may not be null."); } this.activeProperty = new ReadOnlyBooleanWrapper(source, IActivatable.ACTIVE_PROPERTY, false); }