Java Doc for SPageScroller.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 Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.wings.SComponent
      org.wings.SAbstractAdjustable
         org.wings.SPageScroller

SPageScroller
public class SPageScroller extends SAbstractAdjustable (Code)
A scroller component offering several pages for selection.

Apply i.e. to SScrollPane like
scrollbar = new SPageScroller(Adjustable.VERTICAL); scrollPane.setHorizontalScrollBar(scrollbar, SScrollPaneLayout.NORTH);
author:
   Armin Haaf



Field Summary
protected  SClickable[]clickables
    
protected  SClickable[]directPageClickables
     contains the direct page clickables.
protected  intdirectPages
     Actual amount of page clickables; depends on the number of elemnts in the model and on the models extent.
protected  intlayoutMode
    
protected  SLabelpageCountLabel
    

Constructor Summary
public  SPageScroller(int orientation, int value, int extent, int min, int max)
     Creates a scrollbar with the specified orientation, value, extent, mimimum, and maximum. The "extent" is the size of the viewable area.
public  SPageScroller(int orientation)
    
public  SPageScroller()
    

Method Summary
protected  voidadjust()
    
protected  StringformatDirectPageLabel(int page)
    
final public  intgetCurrentPage()
     gets the current page number according to the Position we are in.
final public  intgetDirectPages()
     Sets the amount of page clickables to count.
public  intgetLayoutMode()
    
final public  intgetPageCount()
    
public  SLabelgetPageCountLabel()
    
public  booleanisMarginVisible()
    
public  booleanisStepVisible()
    
public  voidsetDirectPages(int count)
     Sets the amount of page clickables to count.
public  voidsetExtent(int value)
     Set the visible amount of the scroller.
public  voidsetLayoutMode(int orientation)
    
public  voidsetMarginVisible(boolean marginVisible)
    
protected  voidsetPageCountText(int pages)
    
public  voidsetStepVisible(boolean stepVisible)
    
public  voidsetValue(int value)
     Set the current value of the scroller.
public  voidsetVisibleAmount(int value)
     Set the visible amount of the scroller.

Field Detail
clickables
protected SClickable[] clickables(Code)
contains the clickables forward, backward, first, last



directPageClickables
protected SClickable[] directPageClickables(Code)
contains the direct page clickables. Size of this array is extend



directPages
protected int directPages(Code)
Actual amount of page clickables; depends on the number of elemnts in the model and on the models extent.
See Also:   SPageScroller.setDirectPages



layoutMode
protected int layoutMode(Code)



pageCountLabel
protected SLabel pageCountLabel(Code)




Constructor Detail
SPageScroller
public SPageScroller(int orientation, int value, int extent, int min, int max)(Code)
Creates a scrollbar with the specified orientation, value, extent, mimimum, and maximum. The "extent" is the size of the viewable area. It is also known as the "visible amount".
throws:
  IllegalArgumentException - if orientation is not one of VERTICAL, HORIZONTAL
See Also:   SPageScroller.setOrientation
See Also:   SPageScroller.setValue
See Also:   SPageScroller.setVisibleAmount
See Also:   SPageScroller.setMinimum
See Also:   SPageScroller.setMaximum



SPageScroller
public SPageScroller(int orientation)(Code)
Creates a scrollbar with the specified orientation and the following initial values:
 minimum = 0
 maximum = 100
 value = 0
 extent = 10
 



SPageScroller
public SPageScroller()(Code)
Creates a vertical scrollbar with the following initial values:
 minimum = 0
 maximum = 100
 value = 0
 extent = 10
 




Method Detail
adjust
protected void adjust()(Code)



formatDirectPageLabel
protected String formatDirectPageLabel(int page)(Code)



getCurrentPage
final public int getCurrentPage()(Code)
gets the current page number according to the Position we are in. the current page number



getDirectPages
final public int getDirectPages()(Code)
Sets the amount of page clickables to count.



getLayoutMode
public int getLayoutMode()(Code)



getPageCount
final public int getPageCount()(Code)



getPageCountLabel
public SLabel getPageCountLabel()(Code)



isMarginVisible
public boolean isMarginVisible()(Code)



isStepVisible
public boolean isStepVisible()(Code)



setDirectPages
public void setDirectPages(int count)(Code)
Sets the amount of page clickables to count.
Parameters:
  count - : New amount of page clickables.



setExtent
public void setExtent(int value)(Code)
Set the visible amount of the scroller. This sets also the unitincrement and the blockIncrement!
Parameters:
  value - the new extent



setLayoutMode
public void setLayoutMode(int orientation)(Code)
set how to layout components SPageScroller.VERTICAL or SPageScroller.HORIZONTAL



setMarginVisible
public void setMarginVisible(boolean marginVisible)(Code)



setPageCountText
protected void setPageCountText(int pages)(Code)



setStepVisible
public void setStepVisible(boolean stepVisible)(Code)



setValue
public void setValue(int value)(Code)
Set the current value of the scroller. The value will be adjusted to a multiple of the extent.
Parameters:
  value - the new value



setVisibleAmount
public void setVisibleAmount(int value)(Code)
Set the visible amount of the scroller. This sets also the unitincrement and the blockIncrement!
Parameters:
  value - the new extent



Fields inherited from org.wings.SAbstractAdjustable
final public static int BLOCK(Code)(Java Doc)
final public static int MARGIN(Code)(Java Doc)
final public static int UNIT(Code)(Java Doc)
protected int blockIncrement(Code)(Java Doc)
protected boolean changeFromEvent(Code)(Java Doc)
protected SBoundedRangeModel model(Code)(Java Doc)
protected int orientation(Code)(Java Doc)
protected int unitIncrement(Code)(Java Doc)

Methods inherited from org.wings.SAbstractAdjustable
public void addAdjustmentListener(AdjustmentListener l)(Code)(Java Doc)
abstract protected void adjust()(Code)(Java Doc)
protected void fireAdjustmentValueChanged(int id, int type, int value)(Code)(Java Doc)
public void fireFinalEvents()(Code)(Java Doc)
public void fireIntermediateEvents()(Code)(Java Doc)
public int getBlockIncrement(int direction)(Code)(Java Doc)
final public int getBlockIncrement()(Code)(Java Doc)
final public int getExtent()(Code)(Java Doc)
final public int getMaximum()(Code)(Java Doc)
final public int getMinimum()(Code)(Java Doc)
final public SBoundedRangeModel getModel()(Code)(Java Doc)
final public int getOrientation()(Code)(Java Doc)
public int getUnitIncrement(int direction)(Code)(Java Doc)
final public int getUnitIncrement()(Code)(Java Doc)
final public int getValue()(Code)(Java Doc)
final public boolean getValueIsAdjusting()(Code)(Java Doc)
final public int getVisibleAmount()(Code)(Java Doc)
public boolean isChangeFromEvent()(Code)(Java Doc)
public boolean isEpochCheckEnabled()(Code)(Java Doc)
public void processLowLevelEvent(String action, String[] values)(Code)(Java Doc)
public void removeAdjustmentListener(AdjustmentListener l)(Code)(Java Doc)
public void setBlockIncrement(int blockIncrement)(Code)(Java Doc)
public void setEpochCheckEnabled(boolean epochCheckEnabled)(Code)(Java Doc)
public void setExtent(int value)(Code)(Java Doc)
public void setMaximum(int maximum)(Code)(Java Doc)
public void setMinimum(int minimum)(Code)(Java Doc)
public void setModel(SBoundedRangeModel newModel)(Code)(Java Doc)
public void setOrientation(int orientation)(Code)(Java Doc)
public void setUnitIncrement(int unitIncrement)(Code)(Java Doc)
public void setValue(int value)(Code)(Java Doc)
public void setValueIsAdjusting(boolean b)(Code)(Java Doc)
public void setValues(int newValue, int newExtent, int newMin, int newMax)(Code)(Java Doc)
public void setVisibleAmount(int extent)(Code)(Java Doc)

Fields inherited from org.wings.SComponent
final public static int DONE_RENDERING(Code)(Java Doc)
final public static Selector SELECTOR_ALL(Code)(Java Doc)
final public static int START_RENDERING(Code)(Java Doc)
final public static int WHEN_FOCUSED_OR_ANCESTOR_OF_FOCUSED_COMPONENT(Code)(Java Doc)
final public static int WHEN_IN_FOCUSED_FRAME(Code)(Java Doc)
protected Map<Selector, Style> dynamicStyles(Code)(Java Doc)
protected boolean enabled(Code)(Java Doc)
protected boolean visible(Code)(Java Doc)

Methods inherited from org.wings.SComponent
final public void addComponentListener(SComponentListener l)(Code)(Java Doc)
public void addDynamicStyle(Style style)(Code)(Java Doc)
final protected void addEventListener(Class<T> type, T listener)(Code)(Java Doc)
public void addNotify()(Code)(Java Doc)
final public void addParentFrameListener(SParentFrameListener l)(Code)(Java Doc)
final public void addRenderListener(SRenderListener renderListener)(Code)(Java Doc)
final public void addScriptListener(ScriptListener listener)(Code)(Java Doc)
public void addStyle(String additionalCssClassName)(Code)(Java Doc)
public Object clone()(Code)(Java Doc)
protected void fireComponentChangeEvent(SComponentEvent aEvent)(Code)(Java Doc)
public void fireFinalEvents()(Code)(Java Doc)
protected void fireKeyEvents()(Code)(Java Doc)
final public void fireRenderEvent(int type)(Code)(Java Doc)
public ActionMap getActionMap()(Code)(Java Doc)
public Color getBackground()(Code)(Java Doc)
public SBorder getBorder()(Code)(Java Doc)
public ComponentCG getCG()(Code)(Java Doc)
final public Object getClientProperty(Object key)(Code)(Java Doc)
public SPopupMenu getComponentPopupMenu()(Code)(Java Doc)
public Style getDynamicStyle(Selector selector)(Code)(Java Doc)
public Collection getDynamicStyles()(Code)(Java Doc)
public int getFocusTraversalIndex()(Code)(Java Doc)
public SFont getFont()(Code)(Java Doc)
public Color getForeground()(Code)(Java Doc)
public int getHorizontalAlignment()(Code)(Java Doc)
public InputMap getInputMap()(Code)(Java Doc)
public InputMap getInputMap(int condition)(Code)(Java Doc)
final protected int getListenerCount(Class type)(Code)(Java Doc)
final protected Object[] getListenerList()(Code)(Java Doc)
final public EventListener[] getListeners(Class<? extends EventListener> type)(Code)(Java Doc)
public String getLowLevelEventId()(Code)(Java Doc)
final public String getName()(Code)(Java Doc)
final public SContainer getParent()(Code)(Java Doc)
public SFrame getParentFrame()(Code)(Java Doc)
public SDimension getPreferredSize()(Code)(Java Doc)
public RequestURL getRequestURL()(Code)(Java Doc)
public boolean getResidesInForm()(Code)(Java Doc)
public List<ScriptListener> getScriptListenerList()(Code)(Java Doc)
public ScriptListener[] getScriptListeners()(Code)(Java Doc)
final public Session getSession()(Code)(Java Doc)
public boolean getShowAsFormComponent()(Code)(Java Doc)
public String getStyle()(Code)(Java Doc)
public String getToolTipText()(Code)(Java Doc)
public int getVerticalAlignment()(Code)(Java Doc)
public void invite(ComponentVisitor visitor) throws Exception(Code)(Java Doc)
protected static boolean isDifferent(Object oldObject, Object newObject)(Code)(Java Doc)
public boolean isEnabled()(Code)(Java Doc)
public boolean isFocusOwner()(Code)(Java Doc)
public boolean isRecursivelyVisible()(Code)(Java Doc)
public boolean isReloadForced()(Code)(Java Doc)
protected boolean isUpdatePossible()(Code)(Java Doc)
public boolean isVisible()(Code)(Java Doc)
protected String paramString()(Code)(Java Doc)
protected void processComponentEvent(SComponentListener listener, SComponentEvent e)(Code)(Java Doc)
protected boolean processKeyEvents(String[] values)(Code)(Java Doc)
protected void processLowLevelEvent(String name, String[] values)(Code)(Java Doc)
final public void putClientProperty(Object key, Object value)(Code)(Java Doc)
final void register()(Code)(Java Doc)
public void reload()(Code)(Java Doc)
final protected void reloadIfChange(Object oldVal, Object newVal)(Code)(Java Doc)
final protected void reloadIfChange(int oldVal, int newVal)(Code)(Java Doc)
final protected void reloadIfChange(boolean oldVal, boolean newVal)(Code)(Java Doc)
final protected void reloadIfChange(byte oldVal, byte newVal)(Code)(Java Doc)
final protected void reloadIfChange(short oldVal, short newVal)(Code)(Java Doc)
final protected void reloadIfChange(long oldVal, long newVal)(Code)(Java Doc)
final protected void reloadIfChange(float oldVal, float newVal)(Code)(Java Doc)
final protected void reloadIfChange(double oldVal, double newVal)(Code)(Java Doc)
final protected void reloadIfChange(char oldVal, char newVal)(Code)(Java Doc)
final public void removeComponentListener(SComponentListener l)(Code)(Java Doc)
public void removeDynamicStyle(Selector selector)(Code)(Java Doc)
final protected void removeEventListener(Class<T> type, T listener)(Code)(Java Doc)
public void removeNotify()(Code)(Java Doc)
final public void removeParentFrameListener(SParentFrameListener l)(Code)(Java Doc)
final public void removeRenderListener(SRenderListener renderListener)(Code)(Java Doc)
final public void removeScriptListener(ScriptListener listener)(Code)(Java Doc)
public void removeStyle(String cssStyleClassName)(Code)(Java Doc)
public void requestFocus()(Code)(Java Doc)
public void scrollRectToVisible(Rectangle aRect)(Code)(Java Doc)
public void setActionMap(ActionMap actionMap)(Code)(Java Doc)
public void setAttribute(String cssPropertyName, String value)(Code)(Java Doc)
public void setAttribute(CSSProperty property, String propertyValue)(Code)(Java Doc)
public void setAttribute(Selector selector, CSSProperty property, String propertyValue)(Code)(Java Doc)
public void setAttribute(Selector selector, CSSProperty property, SIcon icon)(Code)(Java Doc)
public void setAttribute(Selector selector, CSSProperty property, Color color)(Code)(Java Doc)
public void setAttributes(Selector selector, CSSAttributeSet attributes)(Code)(Java Doc)
public void setBackground(Color color)(Code)(Java Doc)
public void setBorder(SBorder border)(Code)(Java Doc)
public void setCG(ComponentCG newCG)(Code)(Java Doc)
public void setComponentPopupMenu(SPopupMenu popupMenu)(Code)(Java Doc)
public void setDynamicStyles(Collection dynamicStyles)(Code)(Java Doc)
public void setEnabled(boolean enabled)(Code)(Java Doc)
public void setFocusTraversalIndex(int index)(Code)(Java Doc)
public void setFont(SFont font)(Code)(Java Doc)
public void setForeground(Color color)(Code)(Java Doc)
public void setHorizontalAlignment(int alignment)(Code)(Java Doc)
public void setInputMap(InputMap inputMap)(Code)(Java Doc)
public void setInputMap(int condition, InputMap inputMap)(Code)(Java Doc)
public void setName(String uniqueName)(Code)(Java Doc)
public void setNameRaw(String uncheckedName)(Code)(Java Doc)
public void setParent(SContainer parent)(Code)(Java Doc)
protected void setParentFrame(SFrame parentFrame)(Code)(Java Doc)
public void setPreferredSize(SDimension preferredSize)(Code)(Java Doc)
public void setReloadForced(boolean forced)(Code)(Java Doc)
public void setShowAsFormComponent(boolean showAsFormComponent)(Code)(Java Doc)
public void setStyle(String cssClassName)(Code)(Java Doc)
public void setToolTipText(String t)(Code)(Java Doc)
public void setVerticalAlignment(int alignment)(Code)(Java Doc)
public void setVisible(boolean visible)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final void unregister()(Code)(Java Doc)
public void update(Update update)(Code)(Java Doc)
public void updateCG()(Code)(Java Doc)
public void write(Device s) throws IOException(Code)(Java Doc)

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.