Changeset 4797
- Timestamp:
- 06/09/08 07:21:27 (6 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
incubator/imap-portlet/src/com/itmill/toolkit/incubator/imapportlet/ImapPortlet.java
r4787 r4797 99 99 100 100 ExpandLayout mainLayout; 101 Window writeWin ;101 Window writeWin, readMailWin; 102 102 103 103 // Initializing buttons … … 644 644 private boolean closeMail() { 645 645 mailLayout.removeAllComponents(); 646 if (isPortlet && portletWindowState == WindowState.NORMAL) { 647 main.removeWindow(readMailWin); 648 } 646 649 return true; 647 650 } … … 890 893 // if portlet with normal window state, redefine where 891 894 // mailLayout is. It should be in new window. 892 Window readMailWin = new Window(); 895 readMailWin = new Window(); 896 readMailWin.setCaption(mailTable.getItem(target) 897 .getItemProperty( 898 ImapPortletConstants.PROPERTY_SUBJECT) 899 .toString()); 893 900 main.addWindow(readMailWin); 894 901 readMailWin.addComponent(mailLayout); … … 933 940 public void buttonClick(ClickEvent event) { 934 941 Component tab = event.getButton().getParent().getParent(); 935 // if (closeButtons.contains(event.getButton())) { 936 // // close the tab (and mail) 937 // if (closeMail(tab)) { 938 // // remove close button from list 939 // closeButtons.remove(event.getButton()); 940 // // remove reply button from ArrayList 941 // Iterator it = ((OrderedLayout) event.getButton().getParent()) 942 // .getComponentIterator(); 943 // while (it.hasNext()) { 944 // Object ob = it.next(); 945 // if (ob instanceof Button 946 // && ((Button) ob).getCaption().equals("Reply")) { 947 // // if correct component found 948 // replyButtons.remove(ob); 949 // } 950 // } 951 // } 942 952 943 if (event.getButton() == closeButton) { 953 944 closeMail(); … … 978 969 loggedIn = true; 979 970 } 980 build FullView();971 buildView(); 981 972 982 973 } else if (event.getButton() == cancelLoginButton) { … … 993 984 mailFolder = null; 994 985 buildView(); 995 // resetLoginForm();996 986 997 987 } else if (event.getButton() == writeButton) {
