Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
64 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...coders/wicket/extensions/markup/html/bootstrap/form/ColorPickerTextFieldCssReference.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package de.agilecoders.wicket.extensions.markup.html.bootstrap.form; | ||
|
||
import org.apache.wicket.request.resource.CssResourceReference; | ||
|
||
/** | ||
* Bootstrap {@link ColorPickerTextField} CSS reference. | ||
* | ||
* @author ceefour | ||
*/ | ||
public class ColorPickerTextFieldCssReference extends CssResourceReference { | ||
private static final long serialVersionUID = 1L; | ||
|
||
/** | ||
* Singleton instance of this reference | ||
*/ | ||
private static final ColorPickerTextFieldCssReference INSTANCE = new ColorPickerTextFieldCssReference(); | ||
|
||
/** | ||
* @return the single instance of the resource reference | ||
*/ | ||
public static ColorPickerTextFieldCssReference instance() { | ||
return INSTANCE; | ||
} | ||
|
||
/** | ||
* Private constructor. | ||
*/ | ||
private ColorPickerTextFieldCssReference() { | ||
super(ColorPickerTextFieldCssReference.class, "css/colorpicker.css"); | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
...wicket/extensions/markup/html/bootstrap/form/ColorPickerTextFieldJavaScriptReference.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package de.agilecoders.wicket.extensions.markup.html.bootstrap.form; | ||
|
||
import org.apache.wicket.request.resource.JavaScriptResourceReference; | ||
|
||
/** | ||
* Bootstrap {@link ColorPickerTextField} JavaScript reference. | ||
* | ||
* @author ceefour | ||
*/ | ||
public class ColorPickerTextFieldJavaScriptReference extends JavaScriptResourceReference { | ||
private static final long serialVersionUID = 1L; | ||
|
||
/** | ||
* Singleton instance of this reference | ||
*/ | ||
private static final ColorPickerTextFieldJavaScriptReference INSTANCE = new ColorPickerTextFieldJavaScriptReference(); | ||
|
||
/** | ||
* @return the single instance of the resource reference | ||
*/ | ||
public static ColorPickerTextFieldJavaScriptReference instance() { | ||
return INSTANCE; | ||
} | ||
|
||
/** | ||
* Private constructor. | ||
*/ | ||
private ColorPickerTextFieldJavaScriptReference() { | ||
super(ColorPickerTextFieldJavaScriptReference.class, "js/colorpicker.js"); | ||
} | ||
} |