This Gist contains a few of the TableCell and ListCells with factories I have written for JavaFX.
column.setCellFactory(
column -> new DatePickerTableCell<Person>(
DateTimeFormatter.ofLocalizedDate(FormatStyle.MEDIUM)));| /* | |
| * MIT License | |
| * | |
| * Copyright (c) 2020 Sebastian Teumert <https://sebastian.teumert.net> | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| * copies of the Software, and to permit persons to whom the Software is |
| eval "$(oh-my-posh init zsh --config $(brew --prefix oh-my-posh)/themes/polygnome.omp.json)" | |
| alias lsi='eza -al --icons --git --group-directories-first' | |
| # Completion system | |
| autoload -Uz compinit | |
| fpath=(/opt/homebrew/share/zsh/site-functions $fpath) | |
| compinit |
| { | |
| "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
| "console_title_template": "{{ .Shell }} in {{ .Folder }}", | |
| "blocks": [ | |
| { | |
| "type": "prompt", | |
| "alignment": "left", | |
| "newline": true | |
| }, | |
| { |
| # SETUP: | |
| # Install-Module posh-git -Scope CurrentUser | |
| # Install-Module Terminal-Icons -Scope CurrentUser | |
| # winget install JanDeDobbeleer.OhMyPosh -s winget | |
| # Install-Module DockerCompletion -Scope CurrentUser | |
| # Install-Module -Name PSReadLine -Scope CurrentUser | |
| # Install-Module oh-my-posh -Scope CurrentUser | |
| # TODO: https://ohmyposh.dev/docs/migrating |
| # docker-compose for local Overleaf with mailcatcher | |
| version: '2.2' | |
| services: | |
| sharelatex: | |
| volumes: | |
| - ~/.sharelatex/data:/var/lib/sharelatex | |
| links: | |
| - mongo | |
| - redis | |
| - mailcatcher |
| # My PowerShell style, as mashup between PowerLinePlus, Operator and Honukai | |
| #requires -Version 2 -Modules posh-git | |
| function Write-Theme { | |
| param( | |
| [bool] | |
| $lastCommandFailed, | |
| [string] | |
| $with | |
| ) |
| <template> | |
| <require from="components/navigation.html"></require> | |
| <h1>Aurelia Router Demo</h1> | |
| <navigation router.bind="router" class="primary-navigation"></navigation> | |
| <div class="page-host"> | |
| <router-view></router-view> | |
| </div> | |
| </template> |
| /* | |
| * Copyright (c) 2018 Sebastian Teumert (<http://teumert.net>) | |
| * Some rights reserved. | |
| * | |
| * Redistribution and use in source and binary forms, with or without | |
| * modification, are permitted provided that the following conditions are met: | |
| * | |
| * 1. Redistributions of source code must retain the above copyright notice, this | |
| * list of conditions and the following disclaimer. | |
| * 2. Redistributions in binary form must reproduce the above copyright notice, |
| import static org.junit.jupiter.api.Assertions.*; | |
| import java.util.ArrayList; | |
| import java.util.Collections; | |
| import java.util.Date; | |
| import java.util.List; | |
| import java.util.stream.Collectors; | |
| import java.util.stream.Stream; | |
| import org.junit.jupiter.params.ParameterizedTest; |