*/
public abstract class PHPElement {
- private String ElementName;
- private String ElementDescription;
-
- //Setters
- public final void setName(String ElementName)
- { this.ElementName = ElementName; }
- public final void setDescription(String ElementDescription)
- { this.ElementDescription = ElementDescription; }
-
- //Getters
- public final String getName() { return ElementName; }
- public final String getDescription() { return ElementDescription; }
-
- public PHPElement(){}
- public PHPElement(String Name, String Description){
- setName(Name);
- if ((Description == null) || (Description.equals("")))
- {
- setDescription(Name +" - ");
- }
- else {
- setDescription(Description);
- }
- }
-
+ private String ElementName;
+ private String ElementUsage;
+
+ //Setters
+ public final void setName(String ElementName) {
+ this.ElementName = ElementName;
+ }
+ public final void setUsage(String ElementDescription) {
+ this.ElementUsage = ElementDescription;
+ }
+
+ //Getters
+ public final String getName() {
+ return ElementName;
+ }
+
+ public final String getUsage() {
+ return ElementUsage;
+ }
+
+ public String getHoverText() {
+ return getUsage();
+ }
+
+ public PHPElement() {
+ }
+
+ public PHPElement(String Name, String Usage) {
+ setName(Name);
+ if ((Usage == null) || (Usage.equals(""))) {
+ setUsage(Name + " - ");
+ } else {
+ setUsage(Usage);
+ }
+ }
+
}