javafx.beans.property.SimpleStringProperty Java Examples

The following examples show how to use javafx.beans.property.SimpleStringProperty. 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: ConversationController.java    From BetonQuest-Editor with GNU General Public License v3.0 6 votes vote down vote up
@FXML private void renamePlayerOption() {
	try {
		PlayerOption option = playerList.getSelectionModel().getSelectedItem();
		if (option != null) {
			StringProperty id = new SimpleStringProperty(option.getId().get());
			NameEditController.display(id, true);
			if (id.get().contains(".")) {
				BetonQuestEditor.showError("no-cross-conversation");
				return;
			}
			option.getId().set(id.get());
			BetonQuestEditor.getInstance().refresh();
		}
	} catch (Exception e) {
		ExceptionController.display(e);
	}
}
 
Example #2
Source File: EditableTreeTable.java    From Open-Lowcode with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * generates the root column showing label of line elements
 */
private void generateRootColumn() {

	TreeTableColumn<
			EditableTreeTableLineItem<Wrapper<E>>,
			String> rootcolumn = new TreeTableColumn<EditableTreeTableLineItem<Wrapper<E>>, String>("Item");
	rootcolumn.setCellValueFactory(new Callback<
			CellDataFeatures<EditableTreeTableLineItem<Wrapper<E>>, String>, ObservableValue<String>>() {

		@Override
		public ObservableValue<String> call(CellDataFeatures<EditableTreeTableLineItem<Wrapper<E>>, String> param) {
			return new SimpleStringProperty(param.getValue().getValue().getLabel());
		}
	});

	treetableview.getColumns().add(rootcolumn);
}
 
Example #3
Source File: ArchiveListPane.java    From phoebus with Eclipse Public License 1.0 6 votes vote down vote up
public ArchiveListPane()
{
    archive_list = new TableView<>(FXCollections.observableArrayList(Preferences.archive_urls));

    final TableColumn<ArchiveDataSource, String> arch_col = new TableColumn<>(Messages.ArchiveName);
    arch_col.setCellValueFactory(cell -> new SimpleStringProperty(cell.getValue().getName()));
    arch_col.setMinWidth(0);
    archive_list.getColumns().add(arch_col);

    final MenuItem item_info = new MenuItem(Messages.ArchiveServerInfo, Activator.getIcon("info_obj"));
    item_info.setOnAction(event -> showArchiveInfo());
    ContextMenu menu = new ContextMenu(item_info);
    archive_list.setContextMenu(menu);

    archive_list.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);
    archive_list.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);

    setCenter(archive_list);
}
 
Example #4
Source File: IndicatorParameter.java    From TAcharting with GNU Lesser General Public License v2.1 5 votes vote down vote up
public IndicatorParameter(String description, IndicatorParameterType type, String value){
    Objects.requireNonNull(description,"Must be not null");
    Objects.requireNonNull(type,"Must be not null");
    Objects.requireNonNull(value,"Must be not null");
    this.description = new SimpleStringProperty(description);
    this.type = new SimpleObjectProperty<IndicatorParameterType>(type);
    this.value = new SimpleStringProperty(value);
}
 
Example #5
Source File: InteractableScheduleItem.java    From G-Earth with MIT License 5 votes vote down vote up
@Override
public void constructFromString(String str) {
    String[] parts = str.split("\t");
    if (parts.length == 6) {
        int index = Integer.parseInt(parts[0]);
        boolean paused = parts[1].equals("true");
        Interval delay = new Interval(parts[2]);
        HPacket packet = new HPacket(parts[3]);
        HMessage.Direction direction = parts[4].equals(HMessage.Direction.TOSERVER.name()) ? HMessage.Direction.TOSERVER : HMessage.Direction.TOCLIENT;
        String packetAsString = parts[5];

        construct(index, paused, delay, packet, direction);
        this.packetAsStringProperty = new SimpleStringProperty(packetAsString);
    }
}
 
Example #6
Source File: ChatMessage.java    From bisq with GNU Affero General Public License v3.0 5 votes vote down vote up
private ChatMessage(SupportType supportType,
                    String tradeId,
                    int traderId,
                    boolean senderIsTrader,
                    String message,
                    @Nullable List<Attachment> attachments,
                    NodeAddress senderNodeAddress,
                    long date,
                    boolean arrived,
                    boolean storedInMailbox,
                    String uid,
                    int messageVersion,
                    boolean acknowledged,
                    @Nullable String sendMessageError,
                    @Nullable String ackError,
                    boolean wasDisplayed) {
    super(messageVersion, uid, supportType);
    this.tradeId = tradeId;
    this.traderId = traderId;
    this.senderIsTrader = senderIsTrader;
    this.message = message;
    this.wasDisplayed = wasDisplayed;
    Optional.ofNullable(attachments).ifPresent(e -> addAllAttachments(attachments));
    this.senderNodeAddress = senderNodeAddress;
    this.date = date;
    arrivedProperty = new SimpleBooleanProperty(arrived);
    storedInMailboxProperty = new SimpleBooleanProperty(storedInMailbox);
    acknowledgedProperty = new SimpleBooleanProperty(acknowledged);
    sendMessageErrorProperty = new SimpleStringProperty(sendMessageError);
    ackErrorProperty = new SimpleStringProperty(ackError);
    notifyChangeListener();
}
 
Example #7
Source File: TimingLocationInput.java    From pikatimer with GNU General Public License v3.0 5 votes vote down vote up
public TimingLocationInput() {
     this.IDProperty = new SimpleIntegerProperty();
     this.timingLocationInputName = new SimpleStringProperty("Not Yet Set");
     this.timingInputString = new SimpleStringProperty();
     tailFileBooleanProperty = new SimpleBooleanProperty();
     timingReaderInitialized = new SimpleBooleanProperty();
     skewInput = new SimpleBooleanProperty();
     //attributes = new ConcurrentHashMap <>();
     skewDuration = Duration.ZERO;
     skewInput.setValue(Boolean.FALSE);

     
}
 
Example #8
Source File: RecordingDetailsController.java    From archivo with GNU General Public License v3.0 5 votes vote down vote up
public RecordingDetailsController(Archivo mainApp) {
    this.mainApp = mainApp;
    this.recordingSelection = mainApp.getRecordingListController().getRecordingSelection();
    imageCache = new HashMap<>();
    showPoster = new SimpleBooleanProperty(false);
    expectedRemovalText = new SimpleStringProperty();
}
 
Example #9
Source File: ReceptionTableModel.java    From RentLio with Apache License 2.0 5 votes vote down vote up
public ReceptionTableModel(SimpleStringProperty receptionId, SimpleStringProperty name, SimpleStringProperty branch, SimpleStringProperty address, SimpleStringProperty email, SimpleIntegerProperty tel, SimpleStringProperty nic) {
    this.receptionId = receptionId;
    this.name = name;
    this.branch = branch;
    this.address = address;
    this.email = email;
    this.tel = tel;
    this.nic = nic;
}
 
Example #10
Source File: WalletTransaction.java    From cate with MIT License 5 votes vote down vote up
protected WalletTransaction(final Network network, final Transaction transaction, final Coin balanceChange) {
    this.network = network;
    this.transaction = transaction;
    this.balanceChange = balanceChange;
    final MonetaryFormat monetaryFormatter = network.getParams().getMonetaryFormat();
    dateFormat = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT);
    networkNameProperty = new SimpleStringProperty(NetworkResolver.getName(network.getParams()));
    dateProperty = new SimpleStringProperty(dateFormat.format(transaction.getUpdateTime()));
    amountProperty = new SimpleStringProperty(monetaryFormatter.format(balanceChange).toString());
    memoProperty = new SimpleStringProperty(transaction.getMemo());
    memoProperty.addListener(change -> {
        transaction.setMemo(memoProperty.getValue());
    });
}
 
Example #11
Source File: LibrarySidebar.java    From phoenicis with GNU Lesser General Public License v3.0 5 votes vote down vote up
/**
 * Constructor
 *
 * @param filter The library filter utility class
 * @param items The items shown inside a toggle button group in the sidebar
 * @param selectedListWidget The currently selected {@link ListWidgetType} by the user
 */
public LibrarySidebar(LibraryFilter filter, ObservableList<ShortcutCategoryDTO> items,
        ObjectProperty<ListWidgetType> selectedListWidget) {
    super(items, filter.searchTermProperty(), selectedListWidget);

    this.applicationName = new SimpleStringProperty();
    this.onCreateShortcut = new SimpleObjectProperty<>();
    this.onScriptRun = new SimpleObjectProperty<>();
    this.onOpenConsole = new SimpleObjectProperty<>();
    this.filter = filter;

    this.selectedShortcutCategory = filter.selectedShortcutCategoryProperty();
}
 
Example #12
Source File: HistoryController.java    From JFX-Browser with MIT License 5 votes vote down vote up
public HistoryStoreView(String email,String date, String link, String time, String domain, String title) {
	
	
	this.email1 = new SimpleStringProperty(email);
	this.date1 = new SimpleStringProperty(date);
	this.link1 = new SimpleStringProperty(link);
	this.time1 = new SimpleStringProperty(time);
	this.domain1 = new SimpleStringProperty(domain);
	this.title1 = new SimpleStringProperty(title);
}
 
Example #13
Source File: AbstractEditorFactory.java    From constellation with Apache License 2.0 5 votes vote down vote up
protected AbstractEditor(final EditOperation editOperation, final DefaultGetter<V> defaultGetter, final ValueValidator<V> validator, final String editedItemName, final V initialValue) {
    this.editOperation = editOperation;
    this.defaultGetter = defaultGetter;
    this.validator = validator;
    this.disableEditProperty = new SimpleBooleanProperty();
    this.errorMessageProperty = new SimpleStringProperty();
    this.editedItemName = editedItemName;
    setCurrentValue(initialValue);
}
 
Example #14
Source File: DrawingImpl.java    From latexdraw with GNU General Public License v3.0 5 votes vote down vote up
DrawingImpl() {
	super();
	title = new SimpleStringProperty("");
	shapes = new SimpleListProperty<>(FXCollections.observableArrayList());
	selection = ShapeFactory.INST.createGroup();
	modified = false;
}
 
Example #15
Source File: BranchTableModel.java    From RentLio with Apache License 2.0 5 votes vote down vote up
public BranchTableModel(SimpleStringProperty branchId, SimpleStringProperty registerId, SimpleStringProperty address, SimpleStringProperty email, SimpleIntegerProperty tel, SimpleStringProperty postalCode) {
    this.branchId = branchId;
    this.registerId = registerId;
    this.address = address;
    this.email = email;
    this.tel = tel;
    this.postalCode = postalCode;
}
 
Example #16
Source File: ConvolutionKernel.java    From MyBox with Apache License 2.0 5 votes vote down vote up
public void setName(String name) {
    if (name == null) {
        this.name = null;
    } else {
        this.name = new SimpleStringProperty(name);
    }
}
 
Example #17
Source File: GlobalVariable.java    From BetonQuest-Editor with GNU General Public License v3.0 5 votes vote down vote up
public GlobalVariable(QuestPackage pack, String id) throws PackageNotFoundException {
	if (pack == null) {
		throw new PackageNotFoundException();
	}
	this.pack = pack;
	this.id = new SimpleStringProperty(id.replace(" ", "_"));
}
 
Example #18
Source File: UserViewModel.java    From TelegramClone with MIT License 5 votes vote down vote up
public UserViewModel(String userName, String lastMessage, String time, String notificationsNumber, Image avatarImage) {
    this.userName = userName;
    this.lastMessage = new SimpleStringProperty(lastMessage);
    this.time = new SimpleStringProperty(time);
    this.notificationsNumber = new SimpleStringProperty(notificationsNumber);
    this.avatarImage = avatarImage;
    messagesList = FXCollections.observableArrayList();
}
 
Example #19
Source File: ChartItemBuilder.java    From charts with Apache License 2.0 4 votes vote down vote up
public final B unit(final String UNIT) {
    properties.put("unit", new SimpleStringProperty(UNIT));
    return (B)this;
}
 
Example #20
Source File: CrawlConfig.java    From visual-spider with MIT License 4 votes vote down vote up
public static SimpleStringProperty getPolitenessDelay() {
    return politenessDelay;
}
 
Example #21
Source File: CheckBoxTreeTableSample.java    From marathonv5 with Apache License 2.0 4 votes vote down vote up
private Employee(boolean invited, String name, String email) {
    this.invited = new SimpleBooleanProperty(invited);
    this.name = new SimpleStringProperty(name);
    this.email = new SimpleStringProperty(email);
}
 
Example #22
Source File: Luggage.java    From Corendon-LostLuggage with MIT License 4 votes vote down vote up
/**
 * @return the labelnumberField
 */
public SimpleStringProperty getLabelnumberField() {
    return labelnumberField;
}
 
Example #23
Source File: TileBuilder.java    From tilesfx with Apache License 2.0 4 votes vote down vote up
public final B title(final String TITLE) {
    properties.put("title", new SimpleStringProperty(TITLE));
    return (B)this;
}
 
Example #24
Source File: IntersectingSourceStateOpener.java    From paintera with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void accept(PainteraBaseView viewer, Supplier<String> projectDirectory) {
	final ObjectProperty<SourceState<?, ?>> labelSourceState = new SimpleObjectProperty<>();
	final ObjectProperty<ThresholdingSourceState<?, ?>> thresholdingState = new SimpleObjectProperty<>();
	final StringProperty name = new SimpleStringProperty(null);
	final ObjectProperty<Color> color = new SimpleObjectProperty<>(Color.WHITE);
	final Alert dialog = makeDialog(viewer, labelSourceState, thresholdingState, name, color);
	final Optional<ButtonType> returnType = dialog.showAndWait();
	if (
			Alert.AlertType.CONFIRMATION.equals(dialog.getAlertType())
					&& ButtonType.OK.equals(returnType.orElse(ButtonType.CANCEL))) {
		try {
			final SourceState<?, ?> labelState = labelSourceState.get();
			final IntersectingSourceState intersectingState;
			if (labelState instanceof ConnectomicsLabelState<?, ?>) {
				intersectingState = new IntersectingSourceState(
						thresholdingState.get(),
						(ConnectomicsLabelState) labelState,
						new ARGBCompositeAlphaAdd(),
						name.get(),
						viewer.getQueue(),
						0,
						viewer.viewer3D().meshesGroup(),
						viewer.viewer3D().viewFrustumProperty(),
						viewer.viewer3D().eyeToWorldTransformProperty(),
						viewer.viewer3D().meshesEnabledProperty(),
						viewer.getMeshManagerExecutorService(),
						viewer.getMeshWorkerExecutorService());
			} else if (labelState instanceof LabelSourceState<?, ?>) {
				intersectingState = new IntersectingSourceState(
						thresholdingState.get(),
						(LabelSourceState) labelState,
						new ARGBCompositeAlphaAdd(),
						name.get(),
						viewer.getQueue(),
						0,
						viewer.viewer3D().meshesGroup(),
						viewer.viewer3D().viewFrustumProperty(),
						viewer.viewer3D().eyeToWorldTransformProperty(),
						viewer.viewer3D().meshesEnabledProperty(),
						viewer.getMeshManagerExecutorService(),
						viewer.getMeshWorkerExecutorService());
			} else {
				intersectingState = null;
			}

			if (intersectingState != null) {
				intersectingState.converter().setColor(Colors.toARGBType(color.get()));
				viewer.addState(intersectingState);
			} else {
				LOG.error(
						"Unable to create intersecting state. Expected a label state of class {} or {} but got {} instead.",
						ConnectomicsLabelState.class,
						LabelSourceState.class,
						labelState);
			}
		} catch (final Exception e) {
			LOG.error("Unable to create intersecting state", e);
			Exceptions.exceptionAlert(Paintera.Constants.NAME, "Unable to create intersecting state", e).show();
		}
	}
}
 
Example #25
Source File: Luggage.java    From Corendon-LostLuggage with MIT License 4 votes vote down vote up
/**
 * @param postalcodeField the postalcodeField to set
 */
public void setPostalcodeField(SimpleStringProperty postalcodeField) {
    this.postalcodeField = postalcodeField;
}
 
Example #26
Source File: Luggage.java    From Corendon-LostLuggage with MIT License 4 votes vote down vote up
/**
 * @param addressField the addressField to set
 */
public void setAddressField(SimpleStringProperty addressField) {
    this.addressField = addressField;
}
 
Example #27
Source File: MatrixItemSeriesBuilder.java    From charts with Apache License 2.0 4 votes vote down vote up
public final B name(final String NAME) {
    properties.put("name", new SimpleStringProperty(NAME));
    return (B)this;
}
 
Example #28
Source File: Luggage.java    From Corendon-LostLuggage with MIT License 4 votes vote down vote up
/**
 * @return the flightnumberField
 */
public SimpleStringProperty getFlightnumberField() {
    return flightnumberField;
}
 
Example #29
Source File: Luggage.java    From Corendon-LostLuggage with MIT License 4 votes vote down vote up
/**
 * @param flightnumberField the flightnumberField to set
 */
public void setFlightnumberField(SimpleStringProperty flightnumberField) {
    this.flightnumberField = flightnumberField;
}
 
Example #30
Source File: Luggage.java    From Corendon-LostLuggage with MIT License 4 votes vote down vote up
/**
 * @return the postalcodeField
 */
public SimpleStringProperty getPostalcodeField() {
    return postalcodeField;
}