1 package org.splat.wapp;
3 import java.io.Serializable;
6 public class Item implements Serializable {
8 private String mylabel;
11 private boolean selected = false;
16 private static final long serialVersionUID = -3505572710372809913L;
18 // ==============================================================================================================================
20 // ==============================================================================================================================
22 public Item (String label) {
23 // -------------------------
28 public Item (String label, String url) {
29 // -------------------------------------
34 public Item (String label, String icon, String url) {
35 // ---------------------------------------------------
40 public Item action (String url) {
41 // -------------------------------
45 public Item icon (String icon) {
46 // ------------------------------
51 // ==============================================================================================================================
53 // ==============================================================================================================================
55 public String getAction () {
56 // --------------------------
57 return myurl; // Null if not enabled
60 public String getIcon () {
61 // ------------------------
65 public String getLabel () {
66 // -------------------------
70 public boolean isEnabled () {
71 // ---------------------------
72 return (myurl != null);
75 public boolean isSelected () {
76 // ----------------------------
80 protected void select () {
81 // ------------------------
85 protected void unselect () {
86 // --------------------------