if (customColors.isEmpty()) { customColorLabel.setVisible(false); customColorLabel.setManaged(false); customColorGrid.setVisible(false); customColorGrid.setManaged(false); } else { customColorLabel.setVisible(true); customColorLabel.setManaged(true); customColorGrid.setVisible(true); customColorGrid.setManaged(true);
displayNode.setManaged(false); displayNode.setMouseTransparent(true);
/** * Called by {@link #updateFollowStatusText()} ()} to give, if pertinent, a simple text displaying if the target * user is already following the current user. */ private void updateFriendshipStatus() { CompletableFuture.supplyAsync(this::getRelationship) .thenAcceptAsync(relationship -> { String relStatusText = null; if (relationship.isTargetFollowingSource()) { if (relationship.isTargetFollowedBySource()) { relStatusText = "You follow each other!"; } else { relStatusText = "Follows you."; } } if (relStatusText == null) { userFriendshipStatus.setVisible(false); userFriendshipStatus.setManaged(false); } else { userFriendshipStatus.setText(relStatusText); userFriendshipStatus.setVisible(true); userFriendshipStatus.setManaged(true); } }, Platform::runLater); }
} else { userLocation.setVisible(false); userLocation.setManaged(false); } else { userWebsite.setVisible(false); userWebsite.setManaged(false);
lbMessage.getStyleClass().addAll("message-banner"); //$NON-NLS-1$ lbMessage.setVisible(false); lbMessage.setManaged(false); lbMessage.setManaged(false); hide(); lbMessage.setManaged(true); lbMessage.setText(ex.getMessage());
if (customColors.isEmpty()) { customColorLabel.setVisible(false); customColorLabel.setManaged(false); customColorGrid.setVisible(false); customColorGrid.setManaged(false); } else { customColorLabel.setVisible(true); customColorLabel.setManaged(true); customColorGrid.setVisible(true); customColorGrid.setManaged(true);
this.icon.setContentDisplay(ContentDisplay.GRAPHIC_ONLY); this.icon.getStyleClass().add("status-decorator-icon"); //$NON-NLS-1$ this.icon.setManaged(false);
displayNode.setManaged(false); displayNode.setMouseTransparent(true);