1 29 30 package nextapp.echo2.app; 31 32 42 public class Row extends Component { 43 44 public static final String PROPERTY_ALIGNMENT = "alignment"; 45 public static final String PROPERTY_BORDER = "border"; 46 public static final String PROPERTY_CELL_SPACING = "cellSpacing"; 47 public static final String PROPERTY_INSETS = "insets"; 48 49 52 public Row() { 53 super(); 54 } 55 56 62 public Alignment getAlignment() { 63 return (Alignment) getProperty(PROPERTY_ALIGNMENT); 64 } 65 66 71 public Border getBorder() { 72 return (Border) getProperty(PROPERTY_BORDER); 73 } 74 75 82 public Extent getCellSpacing() { 83 return (Extent) getProperty(PROPERTY_CELL_SPACING); 84 } 85 86 91 public Insets getInsets() { 92 return (Insets) getProperty(PROPERTY_INSETS); 93 } 94 95 101 public void setAlignment(Alignment newValue) { 102 setProperty(PROPERTY_ALIGNMENT, newValue); 103 } 104 105 110 public void setBorder(Border newValue) { 111 setProperty(PROPERTY_BORDER, newValue); 112 } 113 114 121 public void setCellSpacing(Extent newValue) { 122 setProperty(PROPERTY_CELL_SPACING, newValue); 123 } 124 125 130 public void setInsets(Insets newValue) { 131 setProperty(PROPERTY_INSETS, newValue); 132 } 133 } 134 | Popular Tags |