Source Code Cross Referenced for ObjectList.java in  » Workflow-Engines » osbl-1_0 » org » osbl » client » wings » form » 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 » Workflow Engines » osbl 1_0 » org.osbl.client.wings.form 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package org.osbl.client.wings.form;
002:
003:        import org.wings.SComponent;
004:        import org.osbl.client.action.ObjectAction;
005:        import org.osbl.client.wings.shell.Environment;
006:
007:        import javax.swing.*;
008:        import java.util.List;
009:
010:        /**
011:         * An ObjectList displays a list of objects in list manner or table manner.
012:         * It supports selection, navigation (link) and allows a user to perform actions on selected objects.
013:         * @author hengels
014:         */
015:        public interface ObjectList {
016:            public static final int SINGLE_SELECTION = ListSelectionModel.SINGLE_SELECTION;
017:            public static final int MULTIPLE_SELECTION = ListSelectionModel.MULTIPLE_INTERVAL_SELECTION;
018:
019:            /**
020:             * The environment provided by the editor.
021:             */
022:            Environment getEnvironment();
023:
024:            /**
025:             * Return the SComponent, that shows the list of objects.
026:             * Consecutive calls to this method must always return the same component instance. The implementor might choose to
027:             * create the component lazily on the first call.
028:             *
029:             * @return the component showing the list
030:             */
031:            SComponent getComponent();
032:
033:            Class getType();
034:
035:            /**
036:             * The content of the list is refreshed.
037:             * Call this method, if you expect, that the list's content has changed.
038:             * This method might perform expensive operations.
039:             */
040:            void refresh();
041:
042:            /**
043:             * Return the current object.
044:             * @return the current object
045:             */
046:            Object getCurrent();
047:
048:            /**
049:             * Set the currently selected object
050:             * @param object the current object
051:             */
052:            void setCurrent(Object object);
053:
054:            /**
055:             * Tell wether there is at least one object behind the current object in the list.
056:             * @return true, if the current object is not the last object, false otherwise
057:             */
058:            boolean hasNext();
059:
060:            /**
061:             * Set cursor to the the next object in the list.
062:             */
063:            void next();
064:
065:            /**
066:             * Tell wether there is at least one object before the current object in the list.
067:             * @return true, if the current object is not the first object, false otherwise
068:             */
069:            boolean hasPrevious();
070:
071:            /**
072:             * Set cursor to the previous object in the list.
073:             */
074:            void previous();
075:
076:            /**
077:             * Set the selection mode.
078:             * ObjectLists support single selection and multi selection. Consult the wingS- or Swing- documentation for further
079:             * information on selection models.
080:             *
081:             * @param selectionMode either STable.SINGLE_SELECTION or STable.MULTIPLE_SELECTION
082:             */
083:            void setSelectionMode(int selectionMode);
084:
085:            /**
086:             * Set the selected object.
087:             * SelectionListeners will be informed of this change!
088:             * @param object the object to be selected
089:             */
090:            void setSelectedObject(Object object);
091:
092:            /**
093:             * Retrieve the currently selected object.
094:             * @return the selected object or null, if nothing is selected. If there are multiple selected objects, return the
095:             * first one.
096:             */
097:            Object getSelectedObject();
098:
099:            /**
100:             * Set the selected object.
101:             * SelectionListeners will be informed of this change!
102:             * @param objects the objects to be selected
103:             */
104:            void setSelectedObjects(List objects);
105:
106:            /**
107:             * Retrieve a list of the currently selected objects.
108:             * @return a list of selected objects.
109:             */
110:            List getSelectedObjects();
111:
112:            /**
113:             * Expose an ObjectAction visually as a link.
114:             * ObjectList implementations should support a link notion. That is, one column (typically the key column) is
115:             * rendered in link style (ie. bold and blue). If a user clicks on a link, the ObjectAction will be called on the
116:             * object in the respective row.
117:             * @param name the column name (typically property name)
118:             * @param linkAction the action to called on click
119:             */
120:            void setLinkAction(String name, ObjectAction linkAction);
121:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.