Java Doc for FxSelectList.java in  » J2EE » fleXive » com » flexive » shared » structure » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » fleXive » com.flexive.shared.structure 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.flexive.shared.structure.FxSelectList

All known Subclasses:   com.flexive.shared.structure.FxSelectListEdit,
FxSelectList
public class FxSelectList implements Serializable,ObjectWithLabel(Code)
Select list
author:
   Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)


Field Summary
final public static  StringCOUNTRIES
     A select list containing all countries and their codes.
protected  booleanallowDynamicItemCreation
    
protected  ACLcreateItemACL
    
protected  FxSelectListItemdefaultItem
    
protected  longdefaultItemId
    
protected  FxStringdescription
    
protected  longid
    
protected  Map<Long, FxSelectListItem>items
    
protected  FxStringlabel
    
protected  Stringname
    
protected  ACLnewItemACL
    
protected  FxSelectListparentList
    
protected  longparentListId
    

Constructor Summary
public  FxSelectList(long id, long parentListId, String name, FxString label, FxString description, boolean allowDynamicItemCreation, ACL createItemACL, ACL newItemACL, long defaultItemId)
    
public  FxSelectList(String name)
     Create a new in-memory select list.

Method Summary
protected  void_setDefaultItem(FxSelectListItem defaultItem)
    
public  void_synchronize(FxEnvironment env)
    
public  FxSelectListEditasEditable()
    
public  booleancontainsItem(long id)
    
public static  FxSelectListcreateList(String name, List<? extends SelectableObjectWithLabel> items)
     Factory method to create a select list based on a collection of SelectableObjectWithLabel objects.
public static  FxSelectListcreateListWithName(String name, List<? extends SelectableObjectWithName> items)
     Factory method to create a select list based on a collection of com.flexive.shared.SelectableObjectWithName objects.
public  ACLgetCreateItemACL()
    
public  FxSelectListItemgetDefaultItem()
    
public  FxStringgetDescription()
    
public  longgetId()
    
public  FxSelectListItemgetItem(long id)
    
public  FxSelectListItemgetItemByData(String data)
    
final protected  Map<Long, FxSelectListItem>getItemMap()
     Getter for the map containing items.
final public  List<FxSelectListItem>getItems()
    
public  FxStringgetLabel()
    
public  StringgetName()
    
public  ACLgetNewItemACL()
    
public  FxSelectListgetParentList()
    
public  booleanhasDefaultItem()
    
public  booleanhasParentList()
    
public  booleanisAllowDynamicItemCreation()
    

Field Detail
COUNTRIES
final public static String COUNTRIES(Code)
A select list containing all countries and their codes.



allowDynamicItemCreation
protected boolean allowDynamicItemCreation(Code)



createItemACL
protected ACL createItemACL(Code)



defaultItem
protected FxSelectListItem defaultItem(Code)



defaultItemId
protected long defaultItemId(Code)



description
protected FxString description(Code)



id
protected long id(Code)



items
protected Map<Long, FxSelectListItem> items(Code)



label
protected FxString label(Code)



name
protected String name(Code)



newItemACL
protected ACL newItemACL(Code)



parentList
protected FxSelectList parentList(Code)



parentListId
protected long parentListId(Code)




Constructor Detail
FxSelectList
public FxSelectList(long id, long parentListId, String name, FxString label, FxString description, boolean allowDynamicItemCreation, ACL createItemACL, ACL newItemACL, long defaultItemId)(Code)
Internal(!) Constructor to be used while loading from storage
Parameters:
  id - internal id
Parameters:
  parentListId - parent list if >= 0
Parameters:
  name - name (unique)
Parameters:
  label - label
Parameters:
  description - description
Parameters:
  allowDynamicItemCreation - is dynamic item creation allowed?
Parameters:
  createItemACL - ACL whose create flag is checked against for creating new list items
Parameters:
  newItemACL - ACL assigned to new items
Parameters:
  defaultItemId - the id of the default selected item, optional, can be null



FxSelectList
public FxSelectList(String name)(Code)
Create a new in-memory select list. Not suitable for creating select lists that will be stored in the database!
Parameters:
  name - the select list name




Method Detail
_setDefaultItem
protected void _setDefaultItem(FxSelectListItem defaultItem)(Code)
Set a new default item, setting null will clear the default item To be used internally from FxSelectListEdit only(!)
Parameters:
  defaultItem - a new default item, setting null will clear the default item



_synchronize
public void _synchronize(FxEnvironment env)(Code)
Internal method to synchronize/load parent lists and items
Parameters:
  env - environment



asEditable
public FxSelectListEdit asEditable()(Code)
Get this FxSelectList as editable FxSelectListEdit



containsItem
public boolean containsItem(long id)(Code)
Check if this list contains an selectlist item with the requested id
Parameters:
  id - requested item id if the requested item is contained in this list



createList
public static FxSelectList createList(String name, List<? extends SelectableObjectWithLabel> items)(Code)
Factory method to create a select list based on a collection of SelectableObjectWithLabel objects. This select list cannot be persisted to the DB, but may used e.g. for UI input components.
Parameters:
  name - name of the select list to be created
Parameters:
  items - selectable objects with label a new select list



createListWithName
public static FxSelectList createListWithName(String name, List<? extends SelectableObjectWithName> items)(Code)
Factory method to create a select list based on a collection of com.flexive.shared.SelectableObjectWithName objects. This select list cannot be persisted to the DB, but may used e.g. for UI input components.
Parameters:
  name - name of the select list to be created
Parameters:
  items - selectable objects a new select list



getCreateItemACL
public ACL getCreateItemACL()(Code)
Get the ACL used to check if a user is allowed to create new items for this list dynamically ACL used to check if a user is allowed to create new items for this list dynamically



getDefaultItem
public FxSelectListItem getDefaultItem()(Code)
Get the (optional!) default item for this list the (optional!) default item for this list, can be null



getDescription
public FxString getDescription()(Code)
Get the description description



getId
public long getId()(Code)
Get the internal id internal id



getItem
public FxSelectListItem getItem(long id)(Code)
Get the selectlist item with the given id
Parameters:
  id - requested select list item id select list item



getItemByData
public FxSelectListItem getItemByData(String data)(Code)
Get the (first) selectlist item with the given data
Parameters:
  data - requested select list item data select list item



getItemMap
final protected Map<Long, FxSelectListItem> getItemMap()(Code)
Getter for the map containing items. Used by FxSelectListItem to "add" itself to a list during construction. map of all items of this list



getItems
final public List<FxSelectListItem> getItems()(Code)



getLabel
public FxString getLabel()(Code)
Get the label label



getName
public String getName()(Code)
Get the name name



getNewItemACL
public ACL getNewItemACL()(Code)
Get the default ACL assigned to new created items default ACL assigned to new created items



getParentList
public FxSelectList getParentList()(Code)
Get the parent list parent list



hasDefaultItem
public boolean hasDefaultItem()(Code)
Is a default item set for this list? if a default item is set for this list



hasParentList
public boolean hasParentList()(Code)
Is a parent list set for this list? if a parent list is set for this list



isAllowDynamicItemCreation
public boolean isAllowDynamicItemCreation()(Code)
May items be created dynamically? (in UI's other than backends!) if items may be created dynamically



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.