1 54 55 package org.apache.jetspeed.portlet; 56 57 import org.apache.jetspeed.portlet.event.WindowListener; 58 59 69 70 public interface PortletWindow 71 { 72 76 77 public static class State implements java.io.Serializable 78 { 79 82 83 public final static State NORMAL = new State ("Normal", 0); 84 85 89 90 public final static State MAXIMIZED = new State ("Maximized", 1); 91 92 96 97 public final static State MINIMIZED = new State ("Minimized", 2); 98 99 104 105 public final static State DETACHED = new State ("Detached", 3); 106 107 110 111 public final static State MOVING = new State ("Moving", 4); 112 113 116 117 public final static State RESIZING = new State ("Resizing", 5); 118 119 123 124 public final static State CLOSED = new State ("Closed", 6); 125 126 private String identifier; 127 128 private int value; 129 130 private State (String identifier, int value) 131 { 132 this.identifier = identifier; 133 this.value = value; 134 } 135 136 public int getId() 137 { 138 return value; 139 } 140 141 public String toString () 142 { 143 return (identifier); 144 } 145 } 146 147 154 155 public String getTitle (); 156 157 163 164 public boolean isDetached (); 165 166 172 173 public boolean isMaximized (); 174 175 181 182 public boolean isMinimized (); 183 184 } 185 | Popular Tags |