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;
13 private static final long serialVersionUID = -3505572710372809913L;
15 // ==============================================================================================================================
17 // ==============================================================================================================================
19 public Item (String label) {
20 // -------------------------
25 public Item (String label, String url) {
26 // -------------------------------------
31 public Item (String label, String icon, String url) {
32 // ---------------------------------------------------
37 public Item action (String url) {
38 // -------------------------------
42 public Item icon (String icon) {
43 // ------------------------------
48 // ==============================================================================================================================
50 // ==============================================================================================================================
52 public String getAction () {
53 // --------------------------
54 return myurl; // Null if not enabled
57 public String getIcon () {
58 // ------------------------
62 public String getLabel () {
63 // -------------------------
67 public boolean isEnabled () {
68 // ---------------------------
69 return (myurl != null);
72 public boolean isSelected () {
73 // ----------------------------
77 protected void select () {
78 // ------------------------
82 protected void unselect () {
83 // --------------------------