1 14 package org.wings; 15 16 25 public abstract class SAbstractIcon implements SIcon { 26 27 31 protected int width = -1; 32 33 37 protected int height = -1; 38 39 42 protected String title = null; 43 44 45 protected SAbstractIcon() { 46 } 47 48 49 protected SAbstractIcon(int width, int height) { 50 setIconWidth(width); 51 setIconHeight(height); 52 } 53 54 public int getIconWidth() { 55 return width; 56 } 57 58 public int getIconHeight() { 59 return height; 60 } 61 62 public void setIconWidth(int w) { 63 width = w; 64 } 65 66 public void setIconHeight(int h) { 67 height = h; 68 } 69 70 public String getIconTitle() { 71 return (title!=null) ? title : ""; 72 } 73 74 public void setIconTitle(String title) { 75 this.title = title; 76 } 77 } 79 | Popular Tags |