Source Code Cross Referenced for SScrollBar.java in  » Swing-Library » wings3 » org » wings » 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 » Swing Library » wings3 » org.wings 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Copyright 2000,2005 wingS development team.
003:         *
004:         * This file is part of wingS (http://wingsframework.org).
005:         *
006:         * wingS is free software; you can redistribute it and/or modify
007:         * it under the terms of the GNU Lesser General Public License
008:         * as published by the Free Software Foundation; either version 2.1
009:         * of the License, or (at your option) any later version.
010:         *
011:         * Please see COPYING for the complete licence.
012:         */
013:        package org.wings;
014:
015:        import org.wings.plaf.ScrollBarCG;
016:        import org.wings.plaf.Update;
017:
018:        /**
019:         * Represents a scroll bar as used in a {@link SScrollPane}.
020:         * In contrast to {@link SPageScroller} this class is a graphical scroller component.
021:         *
022:         * @author <a href="mailto:haaf@mercatis.de">Armin Haaf</a>
023:         * @version $Revision: 3630 $
024:         * @see SScrollPane
025:         */
026:        public class SScrollBar extends SAbstractAdjustable {
027:            boolean marginVisisble;
028:            boolean stepVisisble;
029:            boolean blockVisisble;
030:
031:            /**
032:             * Creates a scrollbar with the specified orientation, value, extent, mimimum, and maximum.
033:             * The "extent" is the size of the viewable area. It is also known as the "visible amount".
034:             * <p/>
035:             * Note: Use <code>setBlockIncrement</code> to set the block
036:             * increment to a size slightly smaller than the view's extent.
037:             * That way, when the user jumps the knob to an adjacent position,
038:             * one or two lines of the original contents remain in view.
039:             *
040:             * @throws IllegalArgumentException if orientation is not one of VERTICAL, HORIZONTAL
041:             * @see #setOrientation
042:             * @see #setValue
043:             * @see #setVisibleAmount
044:             * @see #setMinimum
045:             * @see #setMaximum
046:             */
047:            public SScrollBar(int orientation, int value, int extent, int min,
048:                    int max) {
049:                super (value, extent, min, max);
050:                setOrientation(orientation);
051:            }
052:
053:            /**
054:             * Creates a scrollbar with the specified orientation
055:             * and the following initial values:
056:             * <pre>
057:             * minimum = 0
058:             * maximum = 100
059:             * value = 0
060:             * extent = 10
061:             * </pre>
062:             */
063:            public SScrollBar(int orientation) {
064:                this (orientation, 0, 10, 0, 100);
065:            }
066:
067:            /**
068:             * Creates a vertical scrollbar with the following initial values:
069:             * <pre>
070:             * minimum = 0
071:             * maximum = 100
072:             * value = 0
073:             * extent = 10
074:             * </pre>
075:             */
076:            public SScrollBar() {
077:                this (SConstants.VERTICAL);
078:            }
079:
080:            protected void adjust() {
081:                ScrollBarCG cg = (ScrollBarCG) getCG();
082:                if (cg != null) {
083:                    Update update = cg.getAdjustmentUpdate(this , getValue(),
084:                            getExtent(), getMaximum() - getMinimum());
085:                    if (update != null)
086:                        update(update);
087:                }
088:            }
089:
090:            public boolean isMarginVisisble() {
091:                return marginVisisble;
092:            }
093:
094:            public void setMarginVisisble(boolean marginVisisble) {
095:                this .marginVisisble = marginVisisble;
096:            }
097:
098:            public boolean isStepVisisble() {
099:                return stepVisisble;
100:            }
101:
102:            public void setStepVisisble(boolean stepVisisble) {
103:                this .stepVisisble = stepVisisble;
104:            }
105:
106:            public boolean isBlockVisisble() {
107:                return blockVisisble;
108:            }
109:
110:            public void setBlockVisisble(boolean blockVisisble) {
111:                this .blockVisisble = blockVisisble;
112:            }
113:
114:            public void setCG(ScrollBarCG cg) {
115:                super.setCG(cg);
116:            }
117:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.