1 32 33 package it.businesslogic.ireport; 34 35 import java.util.HashMap ; 36 37 41 public class ConditionedStyle extends Style { 42 43 44 public ConditionedStyle() { 45 } 46 47 51 public ConditionedStyle(Style s1) { 52 super(s1); 53 } 54 55 59 public String getCondition() 60 { 61 return (String )this.getAttribute( this.ATTRIBUTE_condition ); 62 } 63 64 68 public void setCondition(String condition) 69 { 70 if (condition != null && condition.trim().length() > 0) 71 { 72 this.getAttributes().put( this.ATTRIBUTE_condition, condition); 73 } 74 } 75 76 public String toString() 77 { 78 return getCondition(); 79 } 80 } 81 | Popular Tags |