extends VElement, VChild
33 | {
34 | /**
35 | * The value of the recurrence rule value part.
36 | *
37 | * For example, in the below part:
38 | * BYDAY=MO
39 | * The value is MO
40 | *
41 | * Note: the value's object must have an overridden toString method that complies
42 | * with iCalendar content line output.
43 | */
44 | T getValue();
45 |
46 | /** Set the value of this parameter */
47 | void setValue(T value);
48 | }
49 |
--------------------------------------------------------------------------------
/jfxtras-icalendarfx/src/main/java/jfxtras/icalendarfx/utilities/DefaultStringConverter.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2011-2024, JFXtras
3 | * All rights reserved.
4 | *
5 | * Redistribution and use in source and binary forms, with or without
6 | * modification, are permitted provided that the following conditions are met:
7 | * Redistributions of source code must retain the above copyright
8 | * notice, this list of conditions and the following disclaimer.
9 | * Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * Neither the name of the organization nor the
13 | * names of its contributors may be used to endorse or promote products
14 | * derived from this software without specific prior written permission.
15 | *
16 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 | * DISCLAIMED. IN NO EVENT SHALL JFXTRAS BE LIABLE FOR ANY
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | */
27 | package jfxtras.icalendarfx.utilities;
28 |
29 | import jfxtras.icalendarfx.utilities.StringConverter;
30 |
31 | /**
32 | * {@link StringConverter} implementation for {@link String} values.
33 | * Copied JavaFx implementation for use in Java EE
34 | */
35 | public class DefaultStringConverter implements StringConverter {
36 | /** {@inheritDoc} */
37 | @Override public String toString(String value) {
38 | return (value != null) ? value : "";
39 | }
40 |
41 | /** {@inheritDoc} */
42 | @Override public String fromString(String value) {
43 | return value;
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/jfxtras-icalendarfx/src/test/java/jfxtras/icalendarfx/calendar/ValidateCalendarTest.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2011-2024, JFXtras
3 | * All rights reserved.
4 | *
5 | * Redistribution and use in source and binary forms, with or without
6 | * modification, are permitted provided that the following conditions are met:
7 | * Redistributions of source code must retain the above copyright
8 | * notice, this list of conditions and the following disclaimer.
9 | * Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * Neither the name of the organization nor the
13 | * names of its contributors may be used to endorse or promote products
14 | * derived from this software without specific prior written permission.
15 | *
16 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 | * DISCLAIMED. IN NO EVENT SHALL JFXTRAS BE LIABLE FOR ANY
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | */
27 | package jfxtras.icalendarfx.calendar;
28 |
29 | import static org.junit.Assert.assertEquals;
30 |
31 | import org.junit.Test;
32 |
33 | import jfxtras.icalendarfx.VCalendar;
34 |
35 | public class ValidateCalendarTest
36 | {
37 | @Test
38 | public void canFindErrorsInEmptyVCalendar()
39 | {
40 | VCalendar c = new VCalendar();
41 | assertEquals(2, c.errors().size());
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/jfxtras-icalendarfx/src/test/java/jfxtras/icalendarfx/component/ComponentStatusTest.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2011-2024, JFXtras
3 | * All rights reserved.
4 | *
5 | * Redistribution and use in source and binary forms, with or without
6 | * modification, are permitted provided that the following conditions are met:
7 | * Redistributions of source code must retain the above copyright
8 | * notice, this list of conditions and the following disclaimer.
9 | * Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * Neither the name of the organization nor the
13 | * names of its contributors may be used to endorse or promote products
14 | * derived from this software without specific prior written permission.
15 | *
16 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 | * DISCLAIMED. IN NO EVENT SHALL JFXTRAS BE LIABLE FOR ANY
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | */
27 | package jfxtras.icalendarfx.component;
28 |
29 | import org.junit.Test;
30 |
31 | import jfxtras.icalendarfx.components.VEvent;
32 |
33 | public class ComponentStatusTest
34 | {
35 | @Test
36 | public void canCatchDuplicateProperty()
37 | {
38 | String contentLines = "BEGIN:VEVENT" + System.lineSeparator()
39 | + "SUMMARY:test summary1" + System.lineSeparator()
40 | + "SUMMARY:test summary2" + System.lineSeparator()
41 | + "END:VEVENT";
42 | try
43 | {
44 | VEvent.parse(contentLines);
45 | } catch (Exception e)
46 | {
47 | }
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/jfxtras-icalendarfx/src/test/java/jfxtras/icalendarfx/component/NonStandardComponentTest.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2011-2024, JFXtras
3 | * All rights reserved.
4 | *
5 | * Redistribution and use in source and binary forms, with or without
6 | * modification, are permitted provided that the following conditions are met:
7 | * Redistributions of source code must retain the above copyright
8 | * notice, this list of conditions and the following disclaimer.
9 | * Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * Neither the name of the organization nor the
13 | * names of its contributors may be used to endorse or promote products
14 | * derived from this software without specific prior written permission.
15 | *
16 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 | * DISCLAIMED. IN NO EVENT SHALL JFXTRAS BE LIABLE FOR ANY
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | */
27 | package jfxtras.icalendarfx.component;
28 |
29 | import org.junit.Test;
30 |
31 | public class NonStandardComponentTest
32 | {
33 | @Test
34 | public void canBuildNonStandardComponent()
35 | {
36 | // TODO
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/jfxtras-icalendarfx/src/test/java/jfxtras/icalendarfx/parameter/AlternateTextRepresentationTest.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2011-2024, JFXtras
3 | * All rights reserved.
4 | *
5 | * Redistribution and use in source and binary forms, with or without
6 | * modification, are permitted provided that the following conditions are met:
7 | * Redistributions of source code must retain the above copyright
8 | * notice, this list of conditions and the following disclaimer.
9 | * Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * Neither the name of the organization nor the
13 | * names of its contributors may be used to endorse or promote products
14 | * derived from this software without specific prior written permission.
15 | *
16 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 | * DISCLAIMED. IN NO EVENT SHALL JFXTRAS BE LIABLE FOR ANY
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | */
27 | package jfxtras.icalendarfx.parameter;
28 |
29 | import static org.junit.Assert.assertEquals;
30 |
31 | import org.junit.Test;
32 |
33 | import jfxtras.icalendarfx.parameters.AlternateText;
34 |
35 | public class AlternateTextRepresentationTest
36 | {
37 | @Test
38 | public void canParseAlternateText1()
39 | {
40 | String content = "\"cid:part1.0001@example.org\"";
41 | AlternateText p = AlternateText.parse(content);
42 | assertEquals(p.name() + "=" + content, p.toString());
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/jfxtras-icalendarfx/src/test/java/jfxtras/icalendarfx/parameter/DelegateesTest.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2011-2024, JFXtras
3 | * All rights reserved.
4 | *
5 | * Redistribution and use in source and binary forms, with or without
6 | * modification, are permitted provided that the following conditions are met:
7 | * Redistributions of source code must retain the above copyright
8 | * notice, this list of conditions and the following disclaimer.
9 | * Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * Neither the name of the organization nor the
13 | * names of its contributors may be used to endorse or promote products
14 | * derived from this software without specific prior written permission.
15 | *
16 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 | * DISCLAIMED. IN NO EVENT SHALL JFXTRAS BE LIABLE FOR ANY
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | */
27 | package jfxtras.icalendarfx.parameter;
28 |
29 | import static org.junit.Assert.assertEquals;
30 |
31 | import org.junit.Test;
32 |
33 | import jfxtras.icalendarfx.parameters.Delegatees;
34 |
35 | public class DelegateesTest
36 | {
37 | @Test // can copy list
38 | public void canCopyDelegatees()
39 | {
40 | Delegatees parameter = Delegatees.parse("\"mailto:jdoe@example.com\",\"mailto:jqpublic@example.com\"");
41 | Delegatees parameter2 = new Delegatees(parameter);
42 | assertEquals(parameter, parameter2);
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/jfxtras-icalendarfx/src/test/java/jfxtras/icalendarfx/parameter/DirectoryEntryReferenceTest.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2011-2024, JFXtras
3 | * All rights reserved.
4 | *
5 | * Redistribution and use in source and binary forms, with or without
6 | * modification, are permitted provided that the following conditions are met:
7 | * Redistributions of source code must retain the above copyright
8 | * notice, this list of conditions and the following disclaimer.
9 | * Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * Neither the name of the organization nor the
13 | * names of its contributors may be used to endorse or promote products
14 | * derived from this software without specific prior written permission.
15 | *
16 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 | * DISCLAIMED. IN NO EVENT SHALL JFXTRAS BE LIABLE FOR ANY
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | */
27 | package jfxtras.icalendarfx.parameter;
28 |
29 | import static org.junit.Assert.assertEquals;
30 |
31 | import org.junit.Test;
32 |
33 | import jfxtras.icalendarfx.parameters.DirectoryEntry;
34 |
35 | public class DirectoryEntryReferenceTest
36 | {
37 | @Test
38 | public void canCopyDirectory()
39 | {
40 | DirectoryEntry parameter = DirectoryEntry.parse("\"ldap://example.com:6666/o=ABC%20Industries,c=US???(cn=Jim%20Dolittle)\"");
41 | DirectoryEntry parameter2 = new DirectoryEntry(parameter);
42 | assertEquals(parameter, parameter2);
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/jfxtras-icalendarfx/src/test/java/jfxtras/icalendarfx/parameter/FormatTypeTest.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2011-2024, JFXtras
3 | * All rights reserved.
4 | *
5 | * Redistribution and use in source and binary forms, with or without
6 | * modification, are permitted provided that the following conditions are met:
7 | * Redistributions of source code must retain the above copyright
8 | * notice, this list of conditions and the following disclaimer.
9 | * Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * Neither the name of the organization nor the
13 | * names of its contributors may be used to endorse or promote products
14 | * derived from this software without specific prior written permission.
15 | *
16 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 | * DISCLAIMED. IN NO EVENT SHALL JFXTRAS BE LIABLE FOR ANY
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | */
27 | package jfxtras.icalendarfx.parameter;
28 |
29 | import static org.junit.Assert.assertEquals;
30 |
31 | import org.junit.Test;
32 |
33 | import jfxtras.icalendarfx.parameters.FormatType;
34 |
35 | public class FormatTypeTest
36 | {
37 | @Test
38 | public void canParseFormatType()
39 | {
40 | String content = "FMTTYPE=audio/basic";
41 | FormatType parameter = FormatType.parse(content);
42 | assertEquals(content, parameter.toString());
43 | }
44 |
45 | @Test
46 | public void canMakeEmptyFormatType()
47 | {
48 | FormatType parameter = new FormatType();
49 | assertEquals("FMTTYPE=", parameter.toString());
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/jfxtras-icalendarfx/src/test/java/jfxtras/icalendarfx/property/calendar/MethodTest.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2011-2024, JFXtras
3 | * All rights reserved.
4 | *
5 | * Redistribution and use in source and binary forms, with or without
6 | * modification, are permitted provided that the following conditions are met:
7 | * Redistributions of source code must retain the above copyright
8 | * notice, this list of conditions and the following disclaimer.
9 | * Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * Neither the name of the organization nor the
13 | * names of its contributors may be used to endorse or promote products
14 | * derived from this software without specific prior written permission.
15 | *
16 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 | * DISCLAIMED. IN NO EVENT SHALL JFXTRAS BE LIABLE FOR ANY
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | */
27 | package jfxtras.icalendarfx.property.calendar;
28 |
29 | import static org.junit.Assert.assertEquals;
30 |
31 | import org.junit.Test;
32 |
33 | import jfxtras.icalendarfx.properties.calendar.Method;
34 | import jfxtras.icalendarfx.properties.calendar.Method.MethodType;
35 |
36 | public class MethodTest
37 | {
38 | @Test
39 | public void canParseMethod()
40 | {
41 | Method madeProperty = Method.parse("method:publish");
42 | String expectedContent = "METHOD:PUBLISH";
43 | assertEquals(expectedContent, madeProperty.toString());
44 | assertEquals(MethodType.PUBLISH, madeProperty.getValue());
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/jfxtras-menu/.gitignore:
--------------------------------------------------------------------------------
1 | /_build
2 | /bin
3 |
--------------------------------------------------------------------------------
/jfxtras-menu/mvnw_test.cmd:
--------------------------------------------------------------------------------
1 | call ..\java_localOverride.cmd
2 | call ..\mvnw test
3 | pause
--------------------------------------------------------------------------------
/jfxtras-menu/src/main/java/module-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2011-2024, JFXtras
3 | * All rights reserved.
4 | *
5 | * Redistribution and use in source and binary forms, with or without
6 | * modification, are permitted provided that the following conditions are met:
7 | * Redistributions of source code must retain the above copyright
8 | * notice, this list of conditions and the following disclaimer.
9 | * Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * Neither the name of the organization nor the
13 | * names of its contributors may be used to endorse or promote products
14 | * derived from this software without specific prior written permission.
15 | *
16 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 | * DISCLAIMED. IN NO EVENT SHALL JFXTRAS BE LIABLE FOR ANY
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | */
27 | module jfxtras.menu {
28 | exports jfxtras.scene.menu;
29 |
30 | requires transitive jfxtras.common;
31 | }
--------------------------------------------------------------------------------
/jfxtras-menu/src/test/java/jfxtras/scene/menu/test/AllTests.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2011-2024, JFXtras
3 | * All rights reserved.
4 | *
5 | * Redistribution and use in source and binary forms, with or without
6 | * modification, are permitted provided that the following conditions are met:
7 | * Redistributions of source code must retain the above copyright
8 | * notice, this list of conditions and the following disclaimer.
9 | * Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * Neither the name of the organization nor the
13 | * names of its contributors may be used to endorse or promote products
14 | * derived from this software without specific prior written permission.
15 | *
16 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 | * DISCLAIMED. IN NO EVENT SHALL JFXTRAS BE LIABLE FOR ANY
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | */
27 | package jfxtras.scene.menu.test;
28 |
29 | import org.junit.runner.RunWith;
30 | import org.junit.runners.Suite;
31 | import org.junit.runners.Suite.SuiteClasses;
32 |
33 | @RunWith(Suite.class)
34 | @SuiteClasses({ CornerMenuTest.class
35 | , CirclePopupMenuTest.class
36 | })
37 | public class AllTests {
38 |
39 | }
40 |
--------------------------------------------------------------------------------
/jfxtras-menu/src/test/resources/jfxtras/scene/menu/test/social_facebook_button_blue.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFXtras/jfxtras/694a25b613b733350f8bce29a7702e50e7c10525/jfxtras-menu/src/test/resources/jfxtras/scene/menu/test/social_facebook_button_blue.png
--------------------------------------------------------------------------------
/jfxtras-menu/src/test/resources/jfxtras/scene/menu/test/social_google_button_blue.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFXtras/jfxtras/694a25b613b733350f8bce29a7702e50e7c10525/jfxtras-menu/src/test/resources/jfxtras/scene/menu/test/social_google_button_blue.png
--------------------------------------------------------------------------------
/jfxtras-menu/src/test/resources/jfxtras/scene/menu/test/social_skype_button_blue.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFXtras/jfxtras/694a25b613b733350f8bce29a7702e50e7c10525/jfxtras-menu/src/test/resources/jfxtras/scene/menu/test/social_skype_button_blue.png
--------------------------------------------------------------------------------
/jfxtras-menu/src/test/resources/jfxtras/scene/menu/test/social_twitter_button_blue.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFXtras/jfxtras/694a25b613b733350f8bce29a7702e50e7c10525/jfxtras-menu/src/test/resources/jfxtras/scene/menu/test/social_twitter_button_blue.png
--------------------------------------------------------------------------------
/jfxtras-menu/src/test/resources/jfxtras/scene/menu/test/social_windows_button.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JFXtras/jfxtras/694a25b613b733350f8bce29a7702e50e7c10525/jfxtras-menu/src/test/resources/jfxtras/scene/menu/test/social_windows_button.png
--------------------------------------------------------------------------------
/jfxtras-test-support/.gitignore:
--------------------------------------------------------------------------------
1 | /_build
2 |
--------------------------------------------------------------------------------
/jfxtras-test-support/src/main/java/module-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2011-2024, JFXtras
3 | * All rights reserved.
4 | *
5 | * Redistribution and use in source and binary forms, with or without
6 | * modification, are permitted provided that the following conditions are met:
7 | * Redistributions of source code must retain the above copyright
8 | * notice, this list of conditions and the following disclaimer.
9 | * Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * Neither the name of the organization nor the
13 | * names of its contributors may be used to endorse or promote products
14 | * derived from this software without specific prior written permission.
15 | *
16 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 | * DISCLAIMED. IN NO EVENT SHALL JFXTRAS BE LIABLE FOR ANY
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | */
27 | module jfxtras.test_support {
28 | exports jfxtras.test;
29 |
30 | requires transitive javafx.controls;
31 | requires transitive org.testfx;
32 | requires transitive org.testfx.junit;
33 | requires transitive junit;
34 | }
--------------------------------------------------------------------------------
/jfxtras-window/.gitignore:
--------------------------------------------------------------------------------
1 | /_build
2 | /bin/
3 |
--------------------------------------------------------------------------------
/jfxtras-window/mvnw_test.cmd:
--------------------------------------------------------------------------------
1 | call ..\java_localOverride.cmd
2 | call ..\mvnw test
3 | pause
--------------------------------------------------------------------------------
/jfxtras-window/src/main/java/jfxtras/scene/control/window/Clipboard.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2011-2024, JFXtras
3 | * All rights reserved.
4 | *
5 | * Redistribution and use in source and binary forms, with or without
6 | * modification, are permitted provided that the following conditions are met:
7 | * Redistributions of source code must retain the above copyright
8 | * notice, this list of conditions and the following disclaimer.
9 | * Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * Neither the name of the organization nor the
13 | * names of its contributors may be used to endorse or promote products
14 | * derived from this software without specific prior written permission.
15 | *
16 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 | * DISCLAIMED. IN NO EVENT SHALL JFXTRAS BE LIABLE FOR ANY
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | */
27 | package jfxtras.scene.control.window;
28 |
29 | import javafx.collections.ObservableList;
30 |
31 | /**
32 | *
33 | * @author Michael Hoffer <info@michaelhoffer.de>
34 | */
35 | public interface Clipboard {
36 | public boolean select(SelectableNode n, boolean selected);
37 | public void unselectAll();
38 | ObservableList getSelectedItems();
39 | }
40 |
--------------------------------------------------------------------------------
/jfxtras-window/src/main/java/jfxtras/scene/control/window/CloseIcon.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2011-2024, JFXtras
3 | * All rights reserved.
4 | *
5 | * Redistribution and use in source and binary forms, with or without
6 | * modification, are permitted provided that the following conditions are met:
7 | * Redistributions of source code must retain the above copyright
8 | * notice, this list of conditions and the following disclaimer.
9 | * Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * Neither the name of the organization nor the
13 | * names of its contributors may be used to endorse or promote products
14 | * derived from this software without specific prior written permission.
15 | *
16 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 | * DISCLAIMED. IN NO EVENT SHALL JFXTRAS BE LIABLE FOR ANY
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | */
27 | package jfxtras.scene.control.window;
28 |
29 | import javafx.event.ActionEvent;
30 |
31 | /**
32 | *
33 | * @author Michael Hoffer <info@michaelhoffer.de>
34 | */
35 | public class CloseIcon extends WindowIcon {
36 |
37 | public static final String DEFAULT_STYLE_CLASS = "window-close-icon";
38 |
39 | public CloseIcon(final Window w) {
40 |
41 | getStyleClass().setAll(DEFAULT_STYLE_CLASS);
42 |
43 | setOnAction((ActionEvent t) -> {
44 | w.close();
45 | });
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/jfxtras-window/src/main/java/jfxtras/scene/control/window/MinimizeIcon.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2011-2024, JFXtras
3 | * All rights reserved.
4 | *
5 | * Redistribution and use in source and binary forms, with or without
6 | * modification, are permitted provided that the following conditions are met:
7 | * Redistributions of source code must retain the above copyright
8 | * notice, this list of conditions and the following disclaimer.
9 | * Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * Neither the name of the organization nor the
13 | * names of its contributors may be used to endorse or promote products
14 | * derived from this software without specific prior written permission.
15 | *
16 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 | * DISCLAIMED. IN NO EVENT SHALL JFXTRAS BE LIABLE FOR ANY
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | */
27 | package jfxtras.scene.control.window;
28 |
29 | import javafx.event.ActionEvent;
30 | import javafx.event.EventHandler;
31 |
32 | /**
33 | *
34 | * @author Michael Hoffer <info@michaelhoffer.de>
35 | */
36 | public class MinimizeIcon extends WindowIcon {
37 |
38 | public static final String DEFAULT_STYLE_CLASS = "window-minimize-icon";
39 |
40 | private Window w;
41 |
42 | public MinimizeIcon(final Window w) {
43 |
44 | this.w = w;
45 |
46 | getStyleClass().setAll(DEFAULT_STYLE_CLASS);
47 |
48 | setOnAction((ActionEvent t) -> {
49 | w.setMinimized(!w.isMinimized());
50 | });
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/jfxtras-window/src/main/java/jfxtras/scene/control/window/SelectableNode.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2011-2024, JFXtras
3 | * All rights reserved.
4 | *
5 | * Redistribution and use in source and binary forms, with or without
6 | * modification, are permitted provided that the following conditions are met:
7 | * Redistributions of source code must retain the above copyright
8 | * notice, this list of conditions and the following disclaimer.
9 | * Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * Neither the name of the organization nor the
13 | * names of its contributors may be used to endorse or promote products
14 | * derived from this software without specific prior written permission.
15 | *
16 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 | * DISCLAIMED. IN NO EVENT SHALL JFXTRAS BE LIABLE FOR ANY
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | */
27 | package jfxtras.scene.control.window;
28 |
29 | /**
30 | * A node must implement this interface to be selectable. Usually, nodes/windows
31 | * are selected via selection rectangle gesture.
32 | *
33 | * @author Michael Hoffer <info@michaelhoffer.de>
34 | *
35 | */
36 | public interface SelectableNode {
37 |
38 | /**
39 | * Requests selection/deselection.
40 | *
41 | * @param select defines whether to select or deselect the node
42 | * @return true
if request is accepted;false
43 | * otherwise
44 | */
45 | public boolean requestSelection(boolean select);
46 | }
47 |
--------------------------------------------------------------------------------
/jfxtras-window/src/main/java/module-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2011-2024, JFXtras
3 | * All rights reserved.
4 | *
5 | * Redistribution and use in source and binary forms, with or without
6 | * modification, are permitted provided that the following conditions are met:
7 | * Redistributions of source code must retain the above copyright
8 | * notice, this list of conditions and the following disclaimer.
9 | * Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * Neither the name of the organization nor the
13 | * names of its contributors may be used to endorse or promote products
14 | * derived from this software without specific prior written permission.
15 | *
16 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 | * DISCLAIMED. IN NO EVENT SHALL JFXTRAS BE LIABLE FOR ANY
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | */
27 | module jfxtras.window {
28 | exports jfxtras.scene.control.window;
29 |
30 | opens jfxtras.internal.scene.control.skin.window to javafx.controls;
31 | requires transitive jfxtras.common;
32 | }
--------------------------------------------------------------------------------
/license-template.txt:
--------------------------------------------------------------------------------
1 | Copyright (c) 2011-${year}, JFXtras
2 | All rights reserved.
3 |
4 | Redistribution and use in source and binary forms, with or without
5 | modification, are permitted provided that the following conditions are met:
6 | Redistributions of source code must retain the above copyright
7 | notice, this list of conditions and the following disclaimer.
8 | Redistributions in binary form must reproduce the above copyright
9 | notice, this list of conditions and the following disclaimer in the
10 | documentation and/or other materials provided with the distribution.
11 | Neither the name of the organization nor the
12 | names of its contributors may be used to endorse or promote products
13 | derived from this software without specific prior written permission.
14 |
15 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
16 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18 | DISCLAIMED. IN NO EVENT SHALL JFXTRAS BE LIABLE FOR ANY
19 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 |
--------------------------------------------------------------------------------
/mvnw_cleanDeploy:
--------------------------------------------------------------------------------
1 | mvnw clean deploy -DskipTests -P sources-as-javadoc-jar
2 |
--------------------------------------------------------------------------------
/mvnw_cleanInstall:
--------------------------------------------------------------------------------
1 | mvnw clean install -DskipTests -P sources-as-javadoc-jar
2 |
--------------------------------------------------------------------------------
/mvnw_cleanInstall.cmd:
--------------------------------------------------------------------------------
1 | call mvnw clean install -DskipTests -P sources-as-javadoc-jar
2 | pause
3 |
--------------------------------------------------------------------------------
/mvnw_javadoc:
--------------------------------------------------------------------------------
1 | mvnw clean javadoc:javadoc -P asciidoc
2 |
--------------------------------------------------------------------------------
/mvnw_release:
--------------------------------------------------------------------------------
1 | export MAVEN_OPTS="--add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.text=ALL-UNNAMED --add-opens=java.desktop/java.awt.font=ALL-UNNAMED"
2 | mvnw clean -Darguments="-DskipTests -Dmaven.javadoc.skip=true -P sources-as-javadoc-jar" release:prepare release:perform
3 |
4 |
--------------------------------------------------------------------------------
/mvnw_setVersion:
--------------------------------------------------------------------------------
1 | mvnw versions:set -DskipTests
2 |
--------------------------------------------------------------------------------
/mvnw_test:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2011-2021, JFXtras
3 | # All rights reserved.
4 | #
5 | # Redistribution and use in source and binary forms, with or without
6 | # modification, are permitted provided that the following conditions are met:
7 | # Redistributions of source code must retain the above copyright
8 | # notice, this list of conditions and the following disclaimer.
9 | # Redistributions in binary form must reproduce the above copyright
10 | # notice, this list of conditions and the following disclaimer in the
11 | # documentation and/or other materials provided with the distribution.
12 | # Neither the name of the organization nor the
13 | # names of its contributors may be used to endorse or promote products
14 | # derived from this software without specific prior written permission.
15 | #
16 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17 | # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 | # DISCLAIMED. IN NO EVENT SHALL JFXTRAS BE LIABLE FOR ANY
20 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | #
27 |
28 | #./mvnw test -DfailIfNoTests=false -Dtest=ResponsivePane*Test -pl jfxtras-common
29 | #./mvnw test -DfailIfNoTests=false -Dtest=!ResponsivePane*Test
30 | ./mvnw clean test -DfailIfNoTests=false
31 |
32 |
--------------------------------------------------------------------------------
/mvnw_updateWrapper:
--------------------------------------------------------------------------------
1 | ./mvnw -N io.takari:maven:wrapper -Dmaven=3.8.1
2 |
--------------------------------------------------------------------------------