1 2 package org.roller.presentation.bookmarks.formbeans; 3 4 import org.apache.struts.upload.FormFile; 5 import org.roller.RollerException; 6 import org.roller.pojos.FolderData; 7 import org.roller.presentation.forms.FolderForm; 8 9 10 16 public class FolderFormEx extends FolderForm 17 { 18 private boolean mMoveContents = false; 19 private String mMoveToFolderId = null; 20 private String [] mSelectedBookmarks = null; 21 private String [] mSelectedFolders = null; 22 private transient FormFile mBookmarksFile = null; 23 24 public FolderFormEx() 25 { 26 super(); 27 } 28 29 public FolderFormEx(FolderData folderData, java.util.Locale locale) throws RollerException 30 { 31 super(folderData, locale); 32 } 33 34 public String getShortenedDesc() 35 { 36 if ( getDescription().length() > 20 ) 37 { 38 return getDescription().substring(0,19)+"..."; 39 } 40 return getDescription(); 41 } 42 43 public void setShortenedDesc( String desc ) 44 { 45 } 47 48 50 51 public void setBookmarksFile(FormFile file) { mBookmarksFile = file; } 52 53 54 public FormFile getBookmarksFile() { return mBookmarksFile; } 55 56 58 59 public boolean getMoveContents() { return mMoveContents; } 60 61 62 public void setMoveContents( boolean flag ) { mMoveContents = flag;} 63 64 66 67 public String getMoveToFolderId() { return mMoveToFolderId; } 68 69 70 public void setMoveToFolderId( String id ) { mMoveToFolderId = id;} 71 72 74 75 public String [] getSelectedBookmarks() { return mSelectedBookmarks; } 76 77 78 public void setSelectedBookmarks( String [] b ) { mSelectedBookmarks = b; } 79 80 82 83 public String [] getSelectedFolders() { return mSelectedFolders; } 84 85 86 public void setSelectedFolders( String [] f ) { mSelectedFolders = f; } 87 } 88 89 | Popular Tags |