public void setBorder(String spec) {
   if (!properties.containsKey(PROPERTY_BORDER)) {
     properties.put(PROPERTY_BORDER, renderable.getBorder());
   }
   renderable.setBorder(spec);
   onRenderSetProperties.put(PROPERTY_BORDER, renderable.getBorder());
 }
 public void setFgcolor(String clr) {
   if (!properties.containsKey(PROPERTY_FGCOLOR)) {
     properties.put(PROPERTY_FGCOLOR, renderable.getFgcolor());
   }
   renderable.setFgcolor(clr);
   onRenderSetProperties.put(PROPERTY_FGCOLOR, renderable.getFgcolor());
 }
 public void setFont(String spec) {
   if (!properties.containsKey(PROPERTY_FONT)) {
     properties.put(PROPERTY_FONT, renderable.getFont());
   }
   renderable.setFont(spec);
   onRenderSetProperties.put(PROPERTY_FONT, renderable.getFont());
 }
  /** IMPORTANT: This method should only be called while onRender is being fired. See SVY-2571. */
  void resetProperties() {
    Iterator<String> propertiesIte = properties.keySet().iterator();
    String property;
    while (propertiesIte.hasNext()) {
      property = propertiesIte.next();

      if (PROPERTY_BGCOLOR.equals(property)) {
        renderable.setBgcolor((String) properties.get(PROPERTY_BGCOLOR));
      } else if (PROPERTY_BORDER.equals(property)) {
        renderable.setBorder((String) properties.get(PROPERTY_BORDER));
      } else if (PROPERTY_ENABLED.equals(property)) {
        renderable.setEnabled(((Boolean) properties.get(PROPERTY_ENABLED)).booleanValue());
      } else if (PROPERTY_FGCOLOR.equals(property)) {
        renderable.setFgcolor((String) properties.get(PROPERTY_FGCOLOR));
      } else if (PROPERTY_FONT.equals(property)) {
        renderable.setFont((String) properties.get(PROPERTY_FONT));
      } else if (PROPERTY_TOOLTIP.equals(property)) {
        renderable.setToolTipText((String) properties.get(PROPERTY_TOOLTIP));
      } else if (PROPERTY_TRANSPARENT.equals(property)) {
        renderable.setTransparent(((Boolean) properties.get(PROPERTY_TRANSPARENT)).booleanValue());
      } else if (PROPERTY_VISIBLE.equals(property)) {
        renderable.setVisible(((Boolean) properties.get(PROPERTY_VISIBLE)).booleanValue());
      } else if (PROPERTY_FORMAT.equals(property)) {
        if (renderable instanceof HasRuntimeFormat) {
          ((HasRuntimeFormat) renderable).setFormat((String) properties.get(PROPERTY_FORMAT));
        }
      } else if (PROPERTY_IMAGE_URL.equals(property)) {
        if (renderable instanceof HasRuntimeImageURL) {
          ((HasRuntimeImageURL) renderable)
              .setImageURL((String) properties.get(PROPERTY_IMAGE_URL));
        }
      }
    }
    properties.clear();
  }
 public boolean isTransparent() {
   return renderable.isTransparent();
 }
 public String getFont() {
   return renderable.getFont();
 }
 public void setToolTipText(String tooltip) {
   if (!properties.containsKey(PROPERTY_TOOLTIP)) {
     properties.put(PROPERTY_TOOLTIP, renderable.getToolTipText());
   }
   renderable.setToolTipText(tooltip);
 }
 public int getAbsoluteFormLocationY() {
   return renderable.getAbsoluteFormLocationY();
 }
 public String getFgcolor() {
   return renderable.getFgcolor();
 }
 public Object getClientProperty(Object key) {
   return renderable.getClientProperty(key);
 }
 public String getElementType() {
   return renderable.getElementType();
 }
 public void putClientProperty(Object key, Object value) {
   renderable.putClientProperty(key, value);
 }
 public String getName() {
   return renderable.getName();
 }
 public int getHeight() {
   return renderable.getHeight();
 }
 public int getWidth() {
   return renderable.getWidth();
 }
 public void setTransparent(boolean b) {
   if (!properties.containsKey(PROPERTY_TRANSPARENT)) {
     properties.put(PROPERTY_TRANSPARENT, Boolean.valueOf(renderable.isTransparent()));
   }
   renderable.setTransparent(b);
 }
 public String getBorder() {
   return renderable.getBorder();
 }
 public String getDataProviderID() {
   return renderable.getDataProviderID();
 }
 public boolean isVisible() {
   return renderable.isVisible();
 }
 @Override
 public String toString() {
   return renderable.toString();
 }
 public void setEnabled(boolean b) {
   if (!properties.containsKey(PROPERTY_ENABLED)) {
     properties.put(PROPERTY_ENABLED, Boolean.valueOf(renderable.isEnabled()));
   }
   renderable.setEnabled(b);
 }
 public String getToolTipText() {
   return renderable.getToolTipText();
 }
 public int getLocationY() {
   return renderable.getLocationY();
 }
 public void setVisible(boolean b) {
   if (!properties.containsKey(PROPERTY_VISIBLE)) {
     properties.put(PROPERTY_VISIBLE, Boolean.valueOf(renderable.isVisible()));
   }
   renderable.setVisible(b);
 }
 public boolean isEnabled() {
   return renderable.isEnabled();
 }