Source Code Cross Referenced for SubItemCompositeHolder.java in  » IDE-Eclipse » ui » org » eclipse » ui » internal » cheatsheets » views » 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 » IDE Eclipse » ui » org.eclipse.ui.internal.cheatsheets.views 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*******************************************************************************
002:         * Copyright (c) 2002, 2007 IBM Corporation and others.
003:         * All rights reserved. This program and the accompanying materials
004:         * are made available under the terms of the Eclipse Public License v1.0
005:         * which accompanies this distribution, and is available at
006:         * http://www.eclipse.org/legal/epl-v10.html
007:         *
008:         * Contributors:
009:         *     IBM Corporation - initial API and implementation
010:         *******************************************************************************/package org.eclipse.ui.internal.cheatsheets.views;
011:
012:        import org.eclipse.swt.widgets.*;
013:        import org.eclipse.ui.forms.widgets.ImageHyperlink;
014:        import org.eclipse.ui.internal.cheatsheets.CheatSheetPlugin;
015:        import org.eclipse.ui.internal.cheatsheets.ICheatSheetResource;
016:        import org.eclipse.ui.internal.cheatsheets.data.SubItem;
017:
018:        public class SubItemCompositeHolder {
019:            private Label checkDoneLabel;
020:            private boolean skipped;
021:            private boolean completed;
022:            private ImageHyperlink startButton;
023:            private String this Value;
024:            private SubItem subItem;
025:            private Control skipButton;
026:            private Control completeButton;
027:            private Control subitemLabel;
028:
029:            SubItemCompositeHolder(SubItem subItem) {
030:                super ();
031:                this .subItem = subItem;
032:            }
033:
034:            /**
035:             * @return Label
036:             */
037:            /*package*/Label getCheckDoneLabel() {
038:                return checkDoneLabel;
039:            }
040:
041:            /**
042:             * @return
043:             */
044:            public boolean isCompleted() {
045:                return completed;
046:            }
047:
048:            /**
049:             * @return
050:             */
051:            public boolean isSkipped() {
052:                return skipped;
053:            }
054:
055:            /**
056:             * @param isCompleted
057:             */
058:            /*package*/void setCompleted(boolean isCompleted) {
059:                completed = isCompleted;
060:                if (isCompleted && checkDoneLabel != null) {
061:                    checkDoneLabel
062:                            .setImage(CheatSheetPlugin
063:                                    .getPlugin()
064:                                    .getImage(
065:                                            ICheatSheetResource.CHEATSHEET_ITEM_COMPLETE));
066:                }
067:                checkDoneLabel.setVisible(completed || skipped);
068:            }
069:
070:            /**
071:             * @param isSkipped
072:             */
073:            /*package*/void setSkipped(boolean isSkipped) {
074:                skipped = isSkipped;
075:                if (isSkipped && checkDoneLabel != null) {
076:                    checkDoneLabel
077:                            .setImage(CheatSheetPlugin.getPlugin().getImage(
078:                                    ICheatSheetResource.CHEATSHEET_ITEM_SKIP));
079:                }
080:                checkDoneLabel.setVisible(completed || skipped);
081:            }
082:
083:            /**
084:             * @return Returns the thisValue.
085:             */
086:            public String getThisValue() {
087:                return this Value;
088:            }
089:
090:            /**
091:             * @param thisValue The thisValue to set.
092:             */
093:            public void setThisValue(String this Value) {
094:                this .this Value = this Value;
095:            }
096:
097:            /**
098:             * @return Returns the subItem.
099:             */
100:            public SubItem getSubItem() {
101:                return subItem;
102:            }
103:
104:            /**
105:             * Hide or reveal all the action/complete/skip buttons
106:             * @param isVisible
107:             */
108:            public void setButtonsVisible(boolean isVisible) {
109:                if (startButton != null) {
110:                    startButton.setVisible(isVisible);
111:                }
112:                if (skipButton != null) {
113:                    skipButton.setVisible(isVisible);
114:                }
115:                if (completeButton != null) {
116:                    completeButton.setVisible(isVisible);
117:                }
118:            }
119:
120:            public void setSubitemLabel(Control label) {
121:                this .subitemLabel = label;
122:            }
123:
124:            public Control getSubitemLabel() {
125:                return subitemLabel;
126:            }
127:
128:            public void setStartButton(ImageHyperlink startButton) {
129:                this .startButton = startButton;
130:            }
131:
132:            public ImageHyperlink getStartButton() {
133:                return startButton;
134:            }
135:
136:            public void setSkipButton(Control skipButton) {
137:                this .skipButton = skipButton;
138:            }
139:
140:            public Control getSkipButton() {
141:                return skipButton;
142:            }
143:
144:            public void setCompleteButton(Control completeButton) {
145:                this .completeButton = completeButton;
146:            }
147:
148:            public Control getCompleteButton() {
149:                return completeButton;
150:            }
151:
152:            public void setCheckDoneLabel(Label checkDoneLabel) {
153:                this.checkDoneLabel = checkDoneLabel;
154:            }
155:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.