Skip to content

Commit c66c29b

Browse files
committed
Change Maven groupId to io.github.parubok and package to io.github.parubok.stream.
1 parent 79e35cb commit c66c29b

21 files changed

+39
-39
lines changed

README.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
# swing-stream-utils
55
Utils for working with Java Swing components via Java 8 streams.
66

7-
Functionality of the library is provided by the static methods of class `io.github.swingk.stream.SwingStreamUtils`.
7+
Functionality of the library is provided by the static methods of class `io.github.parubok.stream.SwingStreamUtils`.
88
The methods may be divided into two categories: those which allow to iterate (or stream) over data items of Swing components
99
(e.g. `SwingStreamUtils.stream`) and collectors which allow to create Swing components from a stream data (e.g. `SwingStreamUtils.toTable`).
1010

1111
Example 1 (count how many times `JTable` cell value "London" appears in the selected cells of column 3):
1212
```java
13-
import io.github.swingk.stream.SwingStreamUtils;
14-
import io.github.swingk.stream.TableCellData;
13+
import io.github.parubok.stream.SwingStreamUtils;
14+
import io.github.parubok.stream.TableCellData;
1515

1616
JTable table = ...;
1717
long count = SwingStreamUtils.stream(table)
@@ -35,9 +35,9 @@ Example 2 (create table with 'Name' and 'Size' columns from a list of `File` obj
3535
import java.io.File;
3636
import java.util.List;
3737

38-
import io.github.swingk.stream.ColumnDef;
38+
import io.github.parubok.stream.ColumnDef;
3939

40-
import static io.github.swingk.stream.SwingStreamUtils.toTable;
40+
import static io.github.parubok.stream.SwingStreamUtils.toTable;
4141

4242
List<File> files = ...;
4343
/* FileTable is a subclass of JTable */
@@ -51,9 +51,9 @@ Example 3 (create a table with specific model class):
5151
import java.io.File;
5252
import java.util.List;
5353

54-
import io.github.swingk.stream.ColumnDef;
54+
import io.github.parubok.stream.ColumnDef;
5555

56-
import static io.github.swingk.stream.SwingStreamUtils.toTable;
56+
import static io.github.parubok.stream.SwingStreamUtils.toTable;
5757

5858
List<File> files = ...;
5959
FileTable table = files.stream()
@@ -71,9 +71,9 @@ Example:
7171
import java.io.File;
7272
import java.util.function.Supplier;
7373

74-
import io.github.swingk.stream.ColumnDef;
74+
import io.github.parubok.stream.ColumnDef;
7575

76-
import static io.github.swingk.stream.SwingStreamUtils.toTable;
76+
import static io.github.parubok.stream.SwingStreamUtils.toTable;
7777

7878
enum Column implements Supplier<ColumnDef<File>> {
7979
NAME(new ColumnDef<>("Name", File::getName, 100, String.class)),
@@ -110,7 +110,7 @@ import java.io.File;
110110
import java.util.List;
111111
import javax.swing.JComboBox;
112112

113-
import static io.github.swingk.stream.SwingStreamUtils.toComboBox;
113+
import static io.github.parubok.stream.SwingStreamUtils.toComboBox;
114114

115115
List<File> files = ...;
116116
JComboBox<String> = files.stream()
@@ -125,7 +125,7 @@ import java.util.stream.Collectors;
125125
import java.awt.Component;
126126
import java.awt.Container;
127127

128-
import static io.github.swingk.stream.SwingStreamUtils.streamDescendants;
128+
import static io.github.parubok.stream.SwingStreamUtils.streamDescendants;
129129

130130
Container container = ...;
131131
List<Component> visibleDescendants = streamDescendants(container)
@@ -138,7 +138,7 @@ Example 6 (find all unselected combo box items which start with a letter "z"):
138138
```java
139139

140140

141-
import io.github.swingk.stream.SwingStreamUtils;
141+
import io.github.parubok.stream.SwingStreamUtils;
142142

143143
JComboBox<String> comboBox = ...;
144144
List<String> visibleDescendants = SwingStreamUtils.stream(comboBox)
@@ -153,9 +153,9 @@ import java.util.Optional;
153153
import javax.swing.JTree;
154154
import javax.swing.tree.TreeNode;
155155

156-
import io.github.swingk.stream.KTreePath;
157-
import io.github.swingk.stream.SwingStreamUtils;
158-
import io.github.swingk.stream.TreeTraversalType;
156+
import io.github.parubok.stream.KTreePath;
157+
import io.github.parubok.stream.SwingStreamUtils;
158+
import io.github.parubok.stream.TreeTraversalType;
159159

160160
JTree tree = ...;
161161
TreeNode node = ...;
@@ -168,9 +168,9 @@ It is worth mentioning that in most cases (check JavaDoc) the utility ensures th
168168
```java
169169
import java.util.List;
170170
...
171-
import io.github.swingk.stream.ColumnDef;
171+
import io.github.parubok.stream.ColumnDef;
172172

173-
import static io.github.swingk.stream.SwingStreamUtils.toTable;
173+
import static io.github.parubok.stream.SwingStreamUtils.toTable;
174174

175175
// may be not EDT (for example, Swing worker background thread)
176176
List<Server> servers = ...;
@@ -184,9 +184,9 @@ JTable table = servers.parallelStream() // OK to use parallel stream!
184184
```java
185185
import java.util.List;
186186
...
187-
import io.github.swingk.stream.ColumnDef;
187+
import io.github.parubok.stream.ColumnDef;
188188

189-
import static io.github.swingk.stream.SwingStreamUtils.toTableModel;
189+
import static io.github.parubok.stream.SwingStreamUtils.toTableModel;
190190

191191
// may be executed on any thread
192192
List<User> users = ...;

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
44
<modelVersion>4.0.0</modelVersion>
55

6-
<groupId>io.github.swingk.stream</groupId>
6+
<groupId>io.github.parubok</groupId>
77
<artifactId>swing-stream-utils</artifactId>
88
<version>1.27-SNAPSHOT</version>
99

src/main/java/io/github/swingk/stream/AbstractCollector.java renamed to src/main/java/io/github/parubok/stream/AbstractCollector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.github.swingk.stream;
1+
package io.github.parubok.stream;
22

33
import java.util.ArrayList;
44
import java.util.Collections;

src/main/java/io/github/swingk/stream/AbstractTreeStructureIterator.java renamed to src/main/java/io/github/parubok/stream/AbstractTreeStructureIterator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.github.swingk.stream;
1+
package io.github.parubok.stream;
22

33
import java.util.ArrayList;
44
import java.util.Iterator;

src/main/java/io/github/swingk/stream/ColumnDef.java renamed to src/main/java/io/github/parubok/stream/ColumnDef.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.github.swingk.stream;
1+
package io.github.parubok.stream;
22

33
import java.util.Objects;
44
import java.util.function.Function;

src/main/java/io/github/swingk/stream/CombinedList.java renamed to src/main/java/io/github/parubok/stream/CombinedList.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.github.swingk.stream;
1+
package io.github.parubok.stream;
22

33
import java.util.AbstractList;
44
import java.util.List;

src/main/java/io/github/swingk/stream/ComboBoxItem.java renamed to src/main/java/io/github/parubok/stream/ComboBoxItem.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.github.swingk.stream;
1+
package io.github.parubok.stream;
22

33
import javax.swing.ComboBoxModel;
44
import javax.swing.JComboBox;

src/main/java/io/github/swingk/stream/ComponentTreeStructure.java renamed to src/main/java/io/github/parubok/stream/ComponentTreeStructure.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.github.swingk.stream;
1+
package io.github.parubok.stream;
22

33
import java.awt.Component;
44
import java.awt.Container;

src/main/java/io/github/swingk/stream/KTreePath.java renamed to src/main/java/io/github/parubok/stream/KTreePath.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.github.swingk.stream;
1+
package io.github.parubok.stream;
22

33
import javax.swing.tree.TreePath;
44
import java.util.ArrayList;

src/main/java/io/github/swingk/stream/SimpleTableModel.java renamed to src/main/java/io/github/parubok/stream/SimpleTableModel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.github.swingk.stream;
1+
package io.github.parubok.stream;
22

33
import javax.swing.table.DefaultTableModel;
44
import java.util.List;

0 commit comments

Comments
 (0)