Skip to content

JWebMP/Glyphicons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

130 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JWebMP Glyphicons

Maven Central License

Java 25+ Modular Angular

Glyphicons JWebMP

250+ monochromatic icons and symbols from Bootstrap 3's Glyphicons Halflings set for JWebMP applications. CSS web font rendering with glyphicon glyphicon- class prefix.

Built on Glyphicons · Angular 21 · JWebMP Core · JPMS module com.jwebmp.plugins.glyphicons · Java 25+

Version: 1.9.2 — Classic Bootstrap 3 icon set with type-safe Java enum API.

Installation

<dependency>
  <groupId>com.jwebmp.plugins</groupId>
  <artifactId>glyphicons</artifactId>
  <version>2.0.0-SNAPSHOT</version>
</dependency>
Gradle (Kotlin DSL)
implementation("com.jwebmp.plugins:glyphicons:2.0.0-SNAPSHOT")

Features

  • 250+ Monochromatic Icons — Classic Bootstrap 3 Glyphicons Halflings set
  • Type-Safe Java Enum APIGlyphicons enum with compile-time safety and IDE autocomplete
  • CSS Web Font Renderingglyphicon glyphicon- prefixed CSS classes
  • CRTP Fluent APIGlyphicon<J> component with type-safe method chaining
  • IIcon Interface — Implements JWebMP's standard icon interface for interoperability
  • Zero Configuration — Auto-registered via ServiceLoader SPI
  • Modular Architecture — JPMS module with explicit dependencies

Quick Start

Prerequisites

  • Java 25 LTS (required)
  • Maven 3.8+
  • Node.js 18+ (for frontend builds)
  • Angular 21+ (auto-integrated via JWebMP)

Basic Usage

import com.jwebmp.plugins.glyphicons.Glyphicon;
import com.jwebmp.plugins.glyphicons.Glyphicons;

// Create a home icon
var icon = new Glyphicon<>(Glyphicons.home);

// Search icon
var search = new Glyphicon<>(Glyphicons.search);

// Star icon
var star = new Glyphicon<>(Glyphicons.star);

Architecture

Module Structure

src/main/java/com/jwebmp/plugins/glyphicons/
+-- Glyphicon.java                      # CRTP icon component (span-based)
+-- Glyphicons.java                     # Enum with 250+ icon constants
+-- GlyphiconsPageConfigurator.java     # Auto-registration via ServiceLoader
+-- implementations/
    +-- GlyphiconInclusionModule.java
    +-- GlyphiconsExclusionsModule.java

API Reference

Glyphicon Component

public class Glyphicon<J extends Glyphicon<J>>
    extends Span<IComponentHierarchyBase<?,?>, NoAttributes, J>
    implements IIcon<IComponentHierarchyBase<?,?>, J>

// Constructor
new Glyphicon<>(Glyphicons.home)

// Methods
.setIcon(Glyphicons icon)  // Fluent setter, returns J
.getIcon()                  // Returns current icon
.getClassName()             // Returns CSS class string
.getIconComponent()         // Returns this component

Glyphicons Enum

Glyphicons.home.toString()    // ? "glyphicon glyphicon-home"
Glyphicons.search.toString()  // ? "glyphicon glyphicon-search"
Glyphicons.star.toString()    // ? "glyphicon glyphicon-star"

Configuration

The plugin is automatically configured when present on the classpath via @TsDependency and @NgStyleSheet.


Module Graph

com.jwebmp.plugins.glyphicons
 +-- com.jwebmp.core                    (JWebMP core)
 +-- com.jwebmp.core.base.angular.client (Angular client annotations)
 +-- com.guicedee.guicedinjection       (Guice DI)

Project Status

Aspect Status
Version 1.9.2 / 2.0.0-SNAPSHOT
Icons 250+ complete
Java 25 LTS (required)
Build Passing
License Apache 2.0
Maintenance Active

Links


License

Licensed under the Apache License 2.0.

Copyright 2025 JWebMP Contributors

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

Support


Made with JWebMP

About

The JWebSwing plugin for Glyphicons

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages