Examples of RichStyle


Examples of limelight.styles.RichStyle

  @Test
  public void openSceneLoadsStylesExtendingProductionStyles() throws Exception
  {
    production.loadProduction();
    production.getTheater().add(new MockStage("mock"));
    production.getStyles().put("newStyle", new RichStyle());
    Scene scene = new FakeScene();
    production.stubbedScene = scene;

    production.openScene("scenePath", "mock", Util.toMap());
View Full Code Here

Examples of limelight.styles.RichStyle

    return text.replaceAll("&gt;", ">").replaceAll("&lt;", "<").replaceAll("&amp;", "&");
  }

  private RichStyle buildStyle(String text)
  {
    RichStyle style = new RichStyle();
    if(text != null && text.length() > 0)
      parseAttributes(text, style);
    return style;
  }
View Full Code Here

Examples of limelight.styles.RichStyle

  private RichStyle style;

  public StyledText(String text, RichStyle style, List<String> styleNames)
  {
    setText(text);
    this.style = style == null ? new RichStyle() : style;
    this.styleNames = new LinkedList<String>(styleNames);
  }
View Full Code Here

Examples of limelight.styles.RichStyle

    if(style.hasObserver(observer))
      return;

    for(String styleName : styleNames)
    {
      RichStyle extension = styleMap.get(styleName);
      if(extension != null)
        style.addExtension(extension);
    }
    style.addExtension(defaultStyle);
    style.addObserver(observer);
View Full Code Here

Examples of limelight.styles.RichStyle

  public static final Pattern TAG_REGEX = Pattern.compile("<(\\w+)(\\s*(?:\\w+\\s*=(?:\\s*\"[^\"]*?\"|'[^']*?'|[^>'\"\\s]+)\\s*)*)>(.*?)</(\\1)>", Pattern.DOTALL);
  public static final Pattern ATTR_REGEX = Pattern.compile("(\\w+)\\s*=\\s*(\"[^\"]*?\"|'[^']*?'|[^>'\"\\s]+)");

  public LinkedList<StyledText> parse(String text)
  {
    return parse(text, new RichStyle(), new LinkedList<String>(), new LinkedList<StyledText>());
  }
View Full Code Here

Examples of limelight.styles.RichStyle

      handleUndecoratedText(parentStyle, styleNames, list, text.substring(index, matcher.start()));

      String styleName = matcher.group(1);
      String attributeContent = matcher.group(2);
      String content = matcher.group(3);
      RichStyle style = buildStyle(attributeContent);

      styleNames.addFirst(styleName);
      parse(content, style, styleNames, list);
      styleNames.removeFirst();
View Full Code Here

Examples of limelight.styles.RichStyle

  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);
  }
View Full Code Here

Examples of limelight.styles.RichStyle

    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 + "'");
View Full Code Here

Examples of limelight.styles.RichStyle

    return styles;
  }

  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;
  }
View Full Code Here

Examples of limelight.styles.RichStyle

    return style;
  }

  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;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.