}
public PopupItem (String label) {
// -------------------------------
- mylabel = label;
- myicon = "image.hold.gif"; // Default icon
+ _mylabel = label;
+ _myicon = "image.hold.gif"; // Default icon
}
// Optional attributes
public PopupItem action (String url) { // Enables the item
}
public PopupItem confirmation (String message) {
// ----------------------------------------------
- confirm = message;
+ _confirm = message;
return this;
}
public PopupItem icon (String icon) {
// -----------------------------------
- myicon = icon;
+ _myicon = icon;
return this;
}
public PopupItem rename (String label) {
// --------------------------------------
- mylabel = label;
+ _mylabel = label;
return this;
}
public String getConfirmationMessage () {
// ---------------------------------------
- return confirm; // Null if does not need any confirmation
+ return _confirm; // Null if does not need any confirmation
}
public String getLabel () {
// ------------------------
- return mylabel; // Null if this is a separator
+ return _mylabel; // Null if this is a separator
}
public boolean needConfirmation () {
// ----------------------------------
- return (confirm != null);
+ return (_confirm != null);
}
}
\ No newline at end of file