/* (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 }
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 }
/* (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(242); // # if (removeTextBool != null) { // # this.isRemoveText = removeTextBool.booleanValue(); // # } // #if polish.css.fisheyeview-text-style // # Style textStyle = (Style) style.getObjectProperty(449); // # if (textStyle != null) { // # this.focusedLabelStyle = textStyle; // # if (this.focusedLabel != null) { // # this.focusedLabel.setStyle(textStyle); // # this.focusedLabelFocusedStyle = (Style) textStyle.getObjectProperty(1); // # } // # } // #endif // #endif // #if polish.css.fisheyeview-place-label-at-top // # Boolean placeLabelAtTopBool = style.getBooleanProperty(420); // # if (placeLabelAtTopBool != null) { // # this.isPlaceLabelAtTop = placeLabelAtTopBool.booleanValue(); // # } // #endif // #if polish.css.fisheyeview-scale && polish.midp2 // # Integer scaleInt = style.getIntProperty( 241 ); // # if (scaleInt != null) { // # this.scaleFactor = scaleInt.intValue(); // # } // #endif // #if polish.css.fisheyeview-scale-start && polish.midp2 // # Integer scaleStartInt = style.getIntProperty(293); // # if (scaleStartInt != null) { // # this.scaleFactor = scaleStartInt.intValue(); // # } // #endif // #if polish.css.fisheyeview-scale-end && polish.midp2 // # Integer scaleEndInt = style.getIntProperty(259); // # if (scaleEndInt != null) { // # this.scaleFactorEnd = scaleEndInt.intValue(); // # } else if (this.scaleFactorEnd == 0) { // # this.scaleFactorEnd = this.scaleFactor; // # } // #endif // #if polish.css.show-text-in-title // # Boolean showTextInTitleBool = style.getBooleanProperty(37); // # if (showTextInTitleBool != null) { // # this.isShowTextInTitle = showTextInTitleBool.booleanValue(); // # if (this.isShowTextInTitle) { // # this.isRemoveText = true; // # } // # } // #endif // #if polish.css.fisheyeview-transparency && polish.midp2 // # Boolean transparencyBool = style.getBooleanProperty(296); // # if (transparencyBool != null && !transparencyBool.booleanValue()) { // # this.startTranslucency = 255; // # this.endTranslucency = 255; // # } // #endif // #if polish.css.fisheyeview-max-visible // # Integer maxVisibleItemsInt = style.getIntProperty(302); // # if (maxVisibleItemsInt != null) { // # this.maxVisibleItems = maxVisibleItemsInt.intValue(); // # } // #endif }