1 package org.splat.wapp;
3 import java.io.Serializable;
6 public class Item implements Serializable {
8 private transient final String _mylabel;
9 private transient String _myicon;
10 private transient String _action;
11 private transient boolean _selected = false;
16 private static final long serialVersionUID = -3505572710372809913L;
18 // ==============================================================================================================================
20 // ==============================================================================================================================
22 public Item (final String label) {
27 public Item (final String label, final String url) {
32 public Item (final String label, final String icon, final String url) {
37 public Item action (final String url) {
41 public Item icon (final String icon) {
46 // ==============================================================================================================================
48 // ==============================================================================================================================
50 public String getAction () {
51 return _action; // Null if not enabled
54 public String getIcon () {
58 public String getLabel () {
62 public boolean isEnabled () {
63 return (_action != null);
66 public boolean isSelected () {
70 protected void select () {
74 protected void unselect () {