Class TagTableColumnModelBuilder
java.lang.Object
org.openstreetmap.josm.gui.tagging.TagTableColumnModelBuilder
Builder class allowing to construct customized tag table column models.
All columns are resizable and share the same renderer.
- Since:
- 9847
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTagTableColumnModelBuilder(TableCellRenderer renderer, String... headerValues) Construct a newTagTableColumnModelBuilder. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns the new tag table column model.setCellEditor(TableCellEditor editor, int... indexes) Sets cell editor of specified columns.setMaxWidth(int width, int... indexes) Sets max width of specified columns.setPreferredWidth(int width, int... indexes) Sets preferred width of specified columns.setSelectionModel(ListSelectionModel selectionModel) Sets selection model.setWidth(int width, int... indexes) Sets width of specified columns.
-
Field Details
-
model
-
-
Constructor Details
-
TagTableColumnModelBuilder
Construct a newTagTableColumnModelBuilder.- Parameters:
renderer- rendered used for all columnsheaderValues- header values of each column, determining the number of columns- See Also:
-
-
Method Details
-
setWidth
Sets width of specified columns.- Parameters:
width- the new widthindexes- indexes of columns to setup- Returns:
this- See Also:
-
setPreferredWidth
Sets preferred width of specified columns.- Parameters:
width- the new widthindexes- indexes of columns to setup- Returns:
this- See Also:
-
setMaxWidth
Sets max width of specified columns.- Parameters:
width- the new widthindexes- indexes of columns to setup- Returns:
this- See Also:
-
setCellEditor
Sets cell editor of specified columns.- Parameters:
editor- the new cell editorindexes- indexes of columns to setup- Returns:
this- See Also:
-
setSelectionModel
Sets selection model.- Parameters:
selectionModel- new selection model- Returns:
this- See Also:
-
build
Returns the new tag table column model.- Returns:
- the new tag table column model
-