public class DropDownResource extends Object
Constructor and Description |
---|
DropDownResource(DropDownCreatorService dropDownCreatorService) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
getImage(String colorHex,
String backgroundColorHex)
Retrieve a dropdown arrow for the passed in color.
|
javax.ws.rs.core.Response |
getImageFromPath(String colorHex,
String backgroundColorHex)
Same as the /dropdowns?color&bgcolor url, but the colours are specified in the path not the query string.
|
public DropDownResource(DropDownCreatorService dropDownCreatorService)
public javax.ws.rs.core.Response getImage(String colorHex, String backgroundColorHex)
Input strings can ontain a leading hash (#) and can be a 3 char or 6 char hex string. See any web tutorial for what colour the string represents.
This is cached effectively forever
colorHex
- The main color of the dropdownbackgroundColorHex
- Thebackground colour of the dropdown. This will also be transparent. Useful for IE6Copyright © 2002-2015 Atlassian. All Rights Reserved.