Exemplo n.º 1
0
  /* (non-Javadoc)
   * @see de.enough.polish.ui.ContainerView#setStyle(de.enough.polish.ui.Style)
   */
  protected void setStyle(Style style) {
    super.setStyle(style);
    // #if polish.css.fisheyeview-remove-text
    Boolean removeTextBool = style.getBooleanProperty("fisheyeview-remove-text");
    if (removeTextBool != null) {
      this.isRemoveText = removeTextBool.booleanValue();
    }
    // #endif

    // #if polish.css.fisheyeview-scale && polish.midp2
    Integer scaleInt = style.getIntProperty("fisheyeview-scale");
    if (scaleInt != null) {
      this.scaleFactorWidth = scaleInt.intValue();
    }
    // #endif
    // #if polish.css.show-text-in-title
    Boolean showTextInTitleBool = style.getBooleanProperty("show-text-in-title");
    if (showTextInTitleBool != null) {
      this.isShowTextInTitle = showTextInTitleBool.booleanValue();
      if (this.isShowTextInTitle) {
        this.isRemoveText = true;
      }
    }
    // #endif
    // #if polish.css.fisheyeview-max-visible
    Integer maxVisibleItemsInt = style.getIntProperty("fisheyeview-max-visible");
    if (maxVisibleItemsInt != null) {
      this.maxVisibleItems = maxVisibleItemsInt.intValue();
    }
    // #endif

  }
Exemplo n.º 2
0
  protected void setStyle(Style style) {
    super.setStyle(style);

    // #ifdef polish.css.horizontalview-roundtrip
    Boolean allowRoundTripBool = style.getBooleanProperty("horizontalview-roundtrip");
    if (allowRoundTripBool != null) {
      this.allowRoundTrip = allowRoundTripBool.booleanValue();
    }
    // #endif
    // #if polish.css.horizontalview-align-heights
    Boolean alignHeightsBools = style.getBooleanProperty("horizontalview-align-heights");
    if (alignHeightsBools != null) {
      this.isAlignHeights = alignHeightsBools.booleanValue();
    }
    // #endif
    // #if polish.css.show-text-in-title
    Boolean showTextInTitleBool = style.getBooleanProperty("show-text-in-title");
    if (showTextInTitleBool != null) {
      this.isShowTextInTitle = showTextInTitleBool.booleanValue();
    }
    // #endif
    // #if polish.css.horizontalview-distribution
    Integer distribution = style.getIntProperty("horizontalview-distribution");
    if (distribution != null) {
      this.isDistributeEquals = (distribution.intValue() == DISTRIBUTE_EQUALS);
    }
    // #endif
    // #if polish.css.horizontalview-arrow-left
    String urlLeft = style.getProperty("horizontalview-arrow-left");
    if (urlLeft != null) {
      setArrowLeft(urlLeft);
    }
    // #endif
    // #if polish.css.horizontalview-arrow-right
    String urlRight = style.getProperty("horizontalview-arrow-right");
    if (urlRight != null) {
      setArrowRight(urlRight);
    }
    // #endif
  }