home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 1999 April / DPPCPRO0499.ISO / April / Netobjs / Install.exe / data1.cab / Components / DynaButtons / ButtonObject.class (.txt) next >
Encoding:
Java Class File  |  1998-12-16  |  1.3 KB  |  88 lines

  1. public class ButtonObject {
  2.    private ButtonObject next = null;
  3.    private ButtonObject subButton;
  4.    private String text;
  5.    // $FF: renamed from: ID java.lang.String
  6.    private String field_0;
  7.    private String url;
  8.    private String target;
  9.    private boolean subButtonsExist;
  10.  
  11.    public final ButtonObject getSubButtons() {
  12.       return this.subButton;
  13.    }
  14.  
  15.    public final void setURL(String var1) {
  16.       this.url = var1;
  17.    }
  18.  
  19.    public ButtonObject() {
  20.       this.subButton = new ButtonObject(true);
  21.       this.subButton.setNext(new ButtonObject(true));
  22.       this.text = "";
  23.       this.url = "";
  24.       this.field_0 = "0";
  25.       this.subButtonsExist = false;
  26.       this.target = "";
  27.    }
  28.  
  29.    public ButtonObject(boolean var1) {
  30.       this.subButton = null;
  31.       this.text = "";
  32.       this.url = "";
  33.       this.field_0 = "0";
  34.    }
  35.  
  36.    public final String getURL() {
  37.       return this.url;
  38.    }
  39.  
  40.    public final void setSubButtons(ButtonObject var1) {
  41.       this.subButton = var1;
  42.    }
  43.  
  44.    public final void setID(String var1) {
  45.       this.field_0 = var1;
  46.    }
  47.  
  48.    public final String getID() {
  49.       return this.field_0;
  50.    }
  51.  
  52.    public final boolean getSubButtonsExist() {
  53.       return this.subButtonsExist;
  54.    }
  55.  
  56.    public final void setSubButtonsExist(boolean var1) {
  57.       this.subButtonsExist = var1;
  58.    }
  59.  
  60.    public final void setText(String var1) {
  61.       this.text = var1;
  62.    }
  63.  
  64.    public final String getText() {
  65.       return this.text;
  66.    }
  67.  
  68.    public final ButtonObject getNext() {
  69.       return this.next;
  70.    }
  71.  
  72.    public final void setNext(ButtonObject var1) {
  73.       this.next = var1;
  74.    }
  75.  
  76.    public String getTarget() {
  77.       if (this.target == null) {
  78.          this.target = "";
  79.       }
  80.  
  81.       return this.target;
  82.    }
  83.  
  84.    public void setTarget(String var1) {
  85.       this.target = var1;
  86.    }
  87. }
  88.