use of limelight.styles.RichStyle in project limelight by slagyr.
the class BuiltInStyles method buildDropDownPopupList.
private static RichStyle buildDropDownPopupList() {
RichStyle style = new RichStyle();
style.setFloat("on");
style.setBackgroundColor("#EEED");
style.setBorderWidth(1);
style.setRoundedCornerRadius(5);
style.setBorderColor("#dcdcdc");
style.setVerticalScrollbar("on");
style.setMinHeight(50);
style.setMaxHeight(200);
return style;
}
use of limelight.styles.RichStyle in project limelight by slagyr.
the class BuiltInStyles method buildDropDownPopupListItem.
private static RichStyle buildDropDownPopupListItem() {
RichStyle style = new RichStyle();
style.setWidth("100%");
style.setPadding(3);
style.setLeftPadding(10);
return style;
}
use of limelight.styles.RichStyle in project limelight by slagyr.
the class BuiltInStyles method buildCurtains.
private static RichStyle buildCurtains() {
RichStyle style = new RichStyle();
style.setFloat("on");
style.setX(0);
style.setY(0);
style.setWidth("100%");
style.setHeight("100%");
style.setBackgroundColor(Colors.toString(Colors.TRANSPARENT));
return style;
}
use of limelight.styles.RichStyle in project limelight by slagyr.
the class Xml method toStyle.
public static void toStyle(Element styleElement, Map<String, RichStyle> map, Map<String, RichStyle> extensions) {
String name = styleElement.getNodeName();
final Opts options = loadOptions(styleElement);
Object extensionNames = options.remove("extends");
RichStyle style = new RichStyle();
Options.apply(style, options);
applyExtensions(extensionNames, style, map, extensions);
map.put(name, style);
}
use of limelight.styles.RichStyle in project limelight by slagyr.
the class Xml method applyExtensions.
private static void applyExtensions(Object extensionNames, RichStyle style, Map<String, RichStyle> map, Map<String, RichStyle> extensions) {
if (extensionNames == null)
return;
String[] names = extensionNames.toString().split("[ ,]+");
for (String name : names) {
RichStyle extension = map.get(name);
if (extension == null)
extension = extensions.get(name);
if (extension == null)
throw new LimelightException("Can't extend missing style: '" + name + "'");
style.addExtension(extension);
}
}
Aggregations